chroma-core / chroma

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

[ENH] Implement `SignedRoaringBitmap` and update where/where_document AST #2846

Closed Sicheng-Pan closed 1 month ago

Sicheng-Pan commented 1 month ago

Description of changes

Summarize the changes made by this PR.

Test plan

How are these changes tested?

This is guaranteed to break existing tests. Only the last PR in the stack addresses the breaking changes, and should pass the existing tests. In particular, any test involving the query node should fail because of compilation errors.

Documentation Changes

Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

N/A

github-actions[bot] commented 1 month ago

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

Sicheng-Pan commented 1 month ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Sicheng-Pan and the rest of your teammates on Graphite Graphite

HammadB commented 1 month ago

Makes sense to me. Just nits, defer to @sanketkedia on logic

Sicheng-Pan commented 1 month ago

Urge you to add more comments for SignedRoaringBitmap as it is not obvious as to what is its purpose. Otherwise LGTM!

I've moved it to a separate file and added a block comment with example to show its usage. Hopefully that would clarify its usage a bit for anyone reading the code in the future.

Sicheng-Pan commented 1 month ago

Merge activity