-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
FAISS filter is not working #26379
Comments
Can you share the |
sure. |
Hi, I was able to replicate the issue. Were you able to resolve this issue? |
no, the problem still happen. |
Hi, my group (@vincentzhang15 @TANYAL77 @LikeWang10067) and I (students from UofT for a course) are working on a fix, which would allow filters to be built with your desired syntax. Hoping to fix this soon! |
Checked other resources
Example Code
k=2
combined_filter = {
"$and": [
schema_filter,
handler_filter,
]
}
base_retriever = vectorstore.as_retriever(
search_kwargs={"k": k, "filter": combined_filter}
)
filtered_docs = await base_retriever.ainvoke(query)
Error Message and Stack Trace (if applicable)
No response
Description
i see that the faiss vectorstore include documents with the right schema_type and handler_type but no documents are return in the filtered_docs variable.
System Info
langchain version : 0.2.16
langchaion_community version : 0.2.16
The text was updated successfully, but these errors were encountered: