dinhquangson commited on
Commit
457ad86
1 Parent(s): 1cf8559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="Represent this sentence for searching relevant passages: ")
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))