-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retriever.as_retriever() function cannot retrieve data based on filter from azure cognitive search but #19885
Closed
5 tasks done
Labels
🔌: aws
Primarily related to Amazon Web Services (AWS) integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: retriever
Related to retriever module
Comments
dosubot
bot
added
Ɑ: retriever
Related to retriever module
🔌: aws
Primarily related to Amazon Web Services (AWS) integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
Apr 1, 2024
Let me see |
Hi @liugddx , Have you checked the issue? |
@Farid-Ullah, no random tagging, please. |
2 tasks
baskaryan
pushed a commit
that referenced
this issue
Jun 5, 2024
**Description**: The AzureAISearchRetriever does not support the "$filter" argument offered in the AISearch API: https://learn.microsoft.com/en-us/rest/api/searchservice/documents/search-get?view=rest-searchservice-2023-11-01&tabs=HTTP The $filter allows filtering of indexes based on values in metadata. **Issue**: #19885 **Dependencies**: No **Twitter handle**: @Jeffreym9M - [ ] **Add tests and docs**: Not relevant - [x] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/
hinthornw
pushed a commit
that referenced
this issue
Jun 20, 2024
**Description**: The AzureAISearchRetriever does not support the "$filter" argument offered in the AISearch API: https://learn.microsoft.com/en-us/rest/api/searchservice/documents/search-get?view=rest-searchservice-2023-11-01&tabs=HTTP The $filter allows filtering of indexes based on values in metadata. **Issue**: #19885 **Dependencies**: No **Twitter handle**: @Jeffreym9M - [ ] **Add tests and docs**: Not relevant - [x] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/
dosubot
bot
added
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Jul 4, 2024
dosubot
bot
removed
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Jul 11, 2024
Hi @Farid-Ullah, did you get the solution for this problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🔌: aws
Primarily related to Amazon Web Services (AWS) integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: retriever
Related to retriever module
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
The text was updated successfully, but these errors were encountered: