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

[Bug]: When the where filter does not find data, the get_metadata method performs a full table scan. #1182

Open hanyu94118 opened 1 year ago

hanyu94118 commented 1 year ago

What happened?

When the where filter does not find data that meets the conditions, vector retrieval, matching metadatas, and documents are still performed (this part is a full table scan, which is very inefficient).

Versions

current version

Relevant log output

...
tazarov commented 1 year ago

@hanyu94118, thanks for spotting the problem with the lack of metadata indices, we are actively working on this and you can track the progress at #1125