Repository navigation
[diskann-disk] Require start points at index initialization. - #1497
Merged
Merged
Conversation
Mark Hildebrand (hildebrandmw)
requested review from
a team
and
a balanced review from Copilot
October 20, 2026 01:00
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused refactor preserves initialization behavior and medoid ID propagation, with no blocking issues identified in static review.
No open issues 🎉
What changed in this PR
Requires start points when constructing in-memory index builders, preparing disk index construction to use diskann-inmem.
Changes:
- Adds
StartPointand initializes start points in all four builder variants. - Selects the medoid before construction and preserves its ID for graph saving.
- Removes the separate start-point setter.
| File | Description |
|---|---|
diskann-disk/src/build/builder/inmem_builder.rs |
Requires and sets start points during construction. |
diskann-disk/src/build/builder/build.rs |
Passes medoid data into construction and retains its ID. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1497 +/- ##
==========================================
- Coverage 91.04% 91.04% -0.01%
==========================================
Files 586 586
Lines 119994 120000 +6
==========================================
+ Hits 109247 109249 +2
- Misses 10747 10751 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Harsha Simhadri (harsha-simhadri)
approved these changes
Oct 20, 2026
Wei Wu (wuw92)
approved these changes
Oct 20, 2026
Aditya Krishnan (arkrishn94)
approved these changes
Oct 20, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Require the start point to be passed to
new_inmem_index_builderand set at construction time rather than the current two-step initialization viaset_start_point.This is a preparatory step towards using
diskann-inmemfor index construction rather thandiskann-providers.