Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
457ad86
1
Parent(s):
1cf8559
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ def search(prompt: str):
|
|
216 |
querying = Pipeline()
|
217 |
querying.add_component("sparse_text_embedder", FastembedSparseTextEmbedder(model="Qdrant/bm42-all-minilm-l6-v2-attentions"))
|
218 |
querying.add_component("dense_text_embedder", FastembedTextEmbedder(
|
219 |
-
model="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", prefix="
|
220 |
)
|
221 |
querying.add_component(instance=metadata_extractor, name="metadata_extractor")
|
222 |
querying.add_component("retriever", QdrantHybridRetriever(document_store=document_store))
|
|
|
216 |
querying = Pipeline()
|
217 |
querying.add_component("sparse_text_embedder", FastembedSparseTextEmbedder(model="Qdrant/bm42-all-minilm-l6-v2-attentions"))
|
218 |
querying.add_component("dense_text_embedder", FastembedTextEmbedder(
|
219 |
+
model="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", prefix="Đại diện cho câu này để tìm kiếm các đoạn văn có liên quan: ")
|
220 |
)
|
221 |
querying.add_component(instance=metadata_extractor, name="metadata_extractor")
|
222 |
querying.add_component("retriever", QdrantHybridRetriever(document_store=document_store))
|