feat: port khive-hnsw — HNSW with INT8 quantized two-phase search#301
Merged
Conversation
Ports HNSW index from khive-internal. Arena-based node storage, INT8 quantized coarse search with full-precision reranking, checkpoint/restore, alias management for zero-downtime index swaps, batch build support. ~9.4K LOC, 173 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 tasks
- Resolve workspace Cargo.toml conflict (add fusion + bm25 members) - Fix module_inception: allow clippy lint on arena/mod.rs - Fix doc list indentation in arena.rs - Fix needless_range_loop: use iter().enumerate() for old_to_new - Fix needless_range_loop: use iter().enumerate() for dists batch - Allow too_many_arguments on search_layer_inner_ctx (perf-critical) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace is_err() + unwrap_err() with if-let pattern - Replace redundant closure with function reference Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- bm25: field_reassign_with_default in tokenizer test - bm25: unnecessary_unwrap in budget test - bm25: new_without_default on RecordingSink - bm25: needless_range_loop in score_batch test - All workspace clippy --all-targets clean Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced May 22, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Split from #297 (staging). Leaf crate — only depends on existing
khive-score+khive-types.Test plan
cargo check -p khive-hnswcleancargo test -p khive-hnsw— 173 passed🤖 Generated with Claude Code