Skip to content

Commit

Permalink
Allowing outside parameters for Qdrant. (langchain-ai#7910)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanit-com authored Jul 20, 2023
1 parent d649359 commit ea149db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions langchain/vectorstores/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ def add_texts(
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)

Expand Down Expand Up @@ -266,7 +265,7 @@ async def asimilarity_search(
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(
Expand Down

0 comments on commit ea149db

Please sign in to comment.