chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
14.72k stars 1.23k forks source link

Query with unique metadata filter. #2873

Open Mhsh opened 3 days ago

Mhsh commented 3 days ago

Describe the problem

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

Describe the proposed solution

I tried something like collection.get(where={"$distinct": "doc_id"})

but this does not work. Also I have not found any reference of distinct in the chroma documentation.

Alternatives considered

Manually filtering document after checking the doc_id metadata exists or not.

Importance

would make my life easier

Additional Information

No response