perf: reuse IVF coarse-quantizer routing across index segments - #8966
Draft
majin1102 wants to merge 8 commits into
Draft
perf: reuse IVF coarse-quantizer routing across index segments#8966majin1102 wants to merge 8 commits into
majin1102 wants to merge 8 commits into
Conversation
added 7 commits
September 4, 2026 11:48
majin1102
force-pushed
the
codex/laion-shared-quantizer-benchmark
branch
from
September 4, 2026 04:19
20b9bcb to
a068564
Compare
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
Discussion: #8965
Format change
Adds the following optional field to
VectorIndexDetails:The value is a 32-byte SHA-256 identity derived from the routing metric and ordered IVF centroids. It is an optional performance hint: old readers ignore it, and new readers fall back to per-segment routing when it is absent or invalid.
Benchmark plan
Compare two six-segment IVF_RQ indexes built from the same LAION 100M dataset version, fragment groups, IVF centroids, and RaBitQ model. The only A/B variable is fingerprint presence. Pre-warm both indexes, verify the routing path with query-plan counters, measure QPS and P50/P95/P99 latency using
_rowid/_distanceprojections, and calculate Recall@k outside the timed interval from the actual ANN results.Detailed benchmark results will be posted in the Discussion.
Validation
cargo check -p lance --testscargo clippy --all --tests --benches -- -D warningscd python && uv run make lint