-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]: replace
get_block_ids_*
with get_block_ids_range()
in Spar…
…seIndex (#2921) ## Description of changes Replaces specialized methods like `get_block_ids_gt` and `get_block_ids_lt` with a single `get_block_ids_range()` method that behaves similarly to the std `BTreeMap::range()` method. This reduces complexity/repetition and also enables queries that are bounded in both directions. ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* n/a
- Loading branch information
1 parent
154587c
commit 8eae185
Showing
2 changed files
with
100 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters