-
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.
[BUG] Test that query result shapes are correct in invariants (#2807)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Discovered that there is an issue with `PersistentLocalHnswSegment` where `query_vectors` can return results with lengths different than `n_results`. This PR implements a test both displays and catches this issue. - Fixes off by one issue in hnsw/BF merge logic in both single node and distributed ## Test plan *How are these changes tested?* - Added a test for the breaking case that fails on main, fix shows test passes - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust --------- Co-authored-by: hammadb <[email protected]>
- Loading branch information
Showing
4 changed files
with
69 additions
and
5 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
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