Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ docs = documents
|
|
157 |
|
158 |
|
159 |
# sparse_embeddings = FastEmbedSparse(model_name="Qdrant/bm25")
|
160 |
-
|
161 |
|
162 |
client = QdrantClient(path="tmp/langchain_qdrant")
|
163 |
|
@@ -173,7 +173,8 @@ client.create_collection(
|
|
173 |
qdrant = QdrantVectorStore(
|
174 |
client=client,
|
175 |
collection_name="my_documents",
|
176 |
-
|
|
|
177 |
# retrieval_mode=RetrievalMode.SPARSE,
|
178 |
# sparse_vector_name="sparse",
|
179 |
|
|
|
157 |
|
158 |
|
159 |
# sparse_embeddings = FastEmbedSparse(model_name="Qdrant/bm25")
|
160 |
+
embeddings = FastEmbedEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2")
|
161 |
|
162 |
client = QdrantClient(path="tmp/langchain_qdrant")
|
163 |
|
|
|
173 |
qdrant = QdrantVectorStore(
|
174 |
client=client,
|
175 |
collection_name="my_documents",
|
176 |
+
embedding=embeddings,
|
177 |
+
# sparse_embedding=sparse_embeddings,
|
178 |
# retrieval_mode=RetrievalMode.SPARSE,
|
179 |
# sparse_vector_name="sparse",
|
180 |
|