Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
0abb3c4
1
Parent(s):
764991c
Update app.py
Browse files
app.py
CHANGED
@@ -191,7 +191,7 @@ def search(prompt: str):
|
|
191 |
generation_kwargs = {"max_tokens": 512}
|
192 |
)
|
193 |
querying = Pipeline()
|
194 |
-
querying.add_component("sparse_text_embedder", FastembedSparseTextEmbedder(model="Qdrant/bm42-all-minilm-l6-v2-attentions
|
195 |
querying.add_component("dense_text_embedder", FastembedTextEmbedder(
|
196 |
model="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", prefix="Represent this sentence for searching relevant passages: ")
|
197 |
)
|
|
|
191 |
generation_kwargs = {"max_tokens": 512}
|
192 |
)
|
193 |
querying = Pipeline()
|
194 |
+
querying.add_component("sparse_text_embedder", FastembedSparseTextEmbedder(model="Qdrant/bm42-all-minilm-l6-v2-attentions"))
|
195 |
querying.add_component("dense_text_embedder", FastembedTextEmbedder(
|
196 |
model="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", prefix="Represent this sentence for searching relevant passages: ")
|
197 |
)
|