Skip to content
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

[BUG] "chromaMetadataFilter" doesn't work for multiple filter #3482

Open
pgaurav007 opened this issue Nov 8, 2024 · 0 comments
Open

[BUG] "chromaMetadataFilter" doesn't work for multiple filter #3482

pgaurav007 opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pgaurav007
Copy link

I am trying to build custom search for different personna.
For that i am doing embedding with multiple metadata.
When I do search in flowise, complete metadat is fetched with source code, here is the screenshot:
image

But when I tried filtering this thourgh adding multiple meta data, it stopped working
"overrideConfig": {

   "chromaMetadataFilter": {"servicingType": "xxxx", "department": "xxx","category": "xxx"}   
}

I checked the same with chroma APIs, and this is working perfectly fine:
results = vector_store.query(
query_texts=[query], # Empty text since we're filtering by metadata
n_results=1,
where={
"$and": [
{"xxx": {"$eq": "xxxxx"}},
{"xxxx": {"$eq": "xxxxx"}},
{"xxx": {"$eq": "xxxxxx"}}
]
}

)
@HenryHengZJ HenryHengZJ added the bug Something isn't working label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants