Azure Search Service Metadata-Based Filtering for Vector Search in Langchain not working #29756
Unanswered
dilippanampilly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I have a vector store in Azure Search Service. the vector store is also having metadata like below. Right now i am facing issue in filtering the metadata.
base_retriever = vector_store.as_retriever(search_kwargs={'filter': {'doc_Title':'Corporations Act 2001'}})
filter is not working in above line. @dosu-bot.
"value": [
{
"@search.score": 1,
"id": "qrqra24424234",
"content": "doc_Title: Corporations Act 2001\nmandateClause_Title: Presumption in certain cases that property is offence",
"metadata": "{"doc_Title": "Corporations Act 2001"}",
"content_vector": [
-0.010611576,
-0.009440079,
....
]
}
]
System Info
azure-search-documents==11.6.0b3
azure-identity
langchain==0.1.16
langchain-openai==0.1.3
Python 3.11.9
Beta Was this translation helpful? Give feedback.
All reactions