langchain-ai / langchain-weaviate

MIT License
35 stars 15 forks source link

Provide ability to specify a similarity score threshold when performing similarity search #204

Closed shashankram closed 4 days ago

shashankram commented 3 months ago

I can't seem to find a way to specify the score threshold when using the similarity_search() API provided by the vector store impl. E.g., The Redis implementation exposes this as a distance_threshold argument.

hsm207 commented 3 months ago

The integration uses weaviate's hybrid search to perform the search. At the moment, hybrid search does not have a score threshold argument. It is a feature that's being worked on (see this bounty)

dudanogueira commented 4 days ago

Closing as this was already implemented: https://github.com/weaviate/weaviate/pull/5643 edit: link to docs