Closed Farid-Ullah closed 2 months ago
Let me see
Hi @liugddx , Have you checked the issue? Thank
Hi @jarib @zeke , Hope you all doing well.
Could you help me sort out this problem sloution because if it did not work in chain then i will do it customly step by step to acheive this functionality.
Your help would be appreciated. thank you
@Farid-Ullah, no random tagging, please.
Hi @Farid-Ullah, did you get the solution for this problem? I am facing similar problem in my RAG also.
Checked other resources
Example Code
python... here is the code that i use: i ahve index data on azure cognitive search and each chunk has searchable type of metadata which is location if i use the use
acs.as_retriever()
function along with filter it retrieve different location data as well like you can see in below code output is have print each retrieve doc location metadata.but i use the
acs.similarity_search()
and inside we pass filter it will only retrieve that location data and not retrieve mix location data.OUTPUT
USE acs.similarity_search()
OUTPUT:
you can see this function give exact filter data and not mixed data .
what would be the solution because we are use the first function inside chain and we are unable to get filter data.
Error Message and Stack Trace (if applicable)
inside langchain_core > vectorstores.py i have place this print but the filter did not work:
OUTPUT:
we are unable to get filter data while using
as_retriever()
function inside chain the doc return by this is given in first code outputDescription
i use the below versions
System Info