AzureSearch with Retriever is not working #21755
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: retriever
Related to retriever module
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
from the below file, under "_get_relevant_documents", while retrieving the documents we are not sending the filter condition from retriever rather the "_get_relevant_documents" expects the filter condition as kwargs. This is not possible while using the retriever with LLM chain which has memory.
https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/vectorstores/azuresearch.py
Existing code:
docs = self.vectorstore.hybrid_search(query, k=self.k, **kwargs)
New code suggested:
docs = self.vectorstore.hybrid_search(query, k=self.k, **self.search_kwargs)
Please update the code for all the search type.
System Info
NA
The text was updated successfully, but these errors were encountered: