From ea149dbd898cb0499fe4338e1e725eae16e24396 Mon Sep 17 00:00:00 2001 From: Hanit <37485638+hanit-com@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:58:54 +0300 Subject: [PATCH] Allowing outside parameters for Qdrant. (#7910) @baskaryan @rlancemartin, @eyurtsev --- langchain/vectorstores/qdrant.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/langchain/vectorstores/qdrant.py b/langchain/vectorstores/qdrant.py index 7832c8adf3f..e0cba41ee78 100644 --- a/langchain/vectorstores/qdrant.py +++ b/langchain/vectorstores/qdrant.py @@ -149,8 +149,7 @@ class Qdrant(VectorStore): texts, metadatas, ids, batch_size ): self.client.upsert( - collection_name=self.collection_name, - points=points, + collection_name=self.collection_name, points=points, **kwargs ) added_ids.extend(batch_ids) @@ -266,7 +265,7 @@ class Qdrant(VectorStore): Returns: List of Documents most similar to the query. """ - results = await self.asimilarity_search_with_score(query, k, filter) + results = await self.asimilarity_search_with_score(query, k, filter, **kwargs) return list(map(itemgetter(0), results)) def similarity_search_with_score(