amikos-tech / chroma-cookbook

Learn how to use ChromaDB
https://cookbook.chromadb.dev
MIT License
47 stars 4 forks source link

Query based on unique metadata. #29

Open Mhsh opened 2 months ago

Mhsh commented 2 months ago

I can tell you where I need to do query for unique metadata.

tazarov commented 1 month ago

hey @Mhsh, you are not alone in thinking of this way of dealing with queries (e.g., avoid chunks from the same document - reasoning: if the document contains relevant info, I don't want any more paragraphs with less relevant info, greater distance from the query).

I had some work done on this; let me try to dig them out. This will require a PR on core Chroma, as the filtering itself won't help unless you can afford multiple queries.

Mhsh commented 1 month ago

Thanks @tazarov