Find answers from the community

Updated 11 months ago

Is there a way to do metadata filtering

At a glance

The community member is asking if there is a way to do metadata filtering based on multiple keys using a combination of "AND" and "OR" queries in ChromaDB, a local vector index. In the comments, another community member suggests a guide that uses Pinecone but should also work for Chroma, and another community member recommends a useful example notebook for Chroma metadata filtering. However, there is no explicitly marked answer to the original question.

Useful resources
Is there a way to do metadata filtering based on multiple keys like below and using combination of "AND" / "OR" queries?
PS: I am using ChromaDB locally as vector index
Plain Text
filters = MetadataFilters(filters=[MetadataFilters(key='key1', value='value1'), MetadataFilters(key='key2', value='value2')])
Add a reply
Sign up and join the conversation on Discord