langchain-ai / langchain-weaviate

MIT License
32 stars 13 forks source link

Add "properties" and "fusionType" Variables to WeaviateVectorStore #193

Open AlSaltAlBahri opened 2 months ago

AlSaltAlBahri commented 2 months ago

Is your feature request related to a problem? Please describe. The WeaviateVectorStore class in Langchain-Weaviate currently doesn't accept properties and fusionType, limiting the use of Weaviate's full hybrid search capabilities.

Describe the solution you'd like Add properties (to specify search properties) and fusionType (to choose the hybrid fusion algorithm) for better search results

Describe alternatives you've considered N/A

Additional context N/A

hsm207 commented 1 month ago

From the documentation:

The similarity_search function allows you to pass additional arguments as kwargs. See this reference doc for the available arguments.

So you can just the necessary extra args to it and it will get passed to weaviate's hybrid function