research(nightly): semantic drift detection for live vector indexes#714
Draft
ruvnet wants to merge 1 commit into
Draft
research(nightly): semantic drift detection for live vector indexes#714ruvnet wants to merge 1 commit into
ruvnet wants to merge 1 commit into
Conversation
Selected topic: Semantic drift detection for live RuVector vector indexes. Three Rust variants implemented and benchmarked: - GlobalStats (Welford moments): 340ns/insert, score 9.06 on 3σ shift - CentroidDrift (online k-means): 2.3µs/insert, score 0.62 on 3σ shift - NeighborhoodRecall (contamination rate): 244ns/insert, score 0.40 on 3σ shift All acceptance criteria pass: drift detected, no false positives on control.
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
Adds nightly RuVector research for
semantic-drift-detect: autonomous monitoring of embedding distribution drift in live vector indexes.ruvector-drift-detect— a pure-Rust, zero-dependency crate with three complementary drift detectors, all implementing a commonDriftDetectortrait.What's included
crates/ruvector-drift-detect/with three variants, 12 passing unit tests, and a benchmark binarydocs/adr/ADR-272-semantic-drift-detect.mddocs/research/nightly/2026-07-21-semantic-drift-detect/README.mddocs/research/nightly/2026-07-21-semantic-drift-detect/gist.mdVariants implemented
GlobalStatsDriftDetectorCentroidDriftDetectorNeighborhoodDriftDetector†NeighborhoodRecall score scales O(A·n·D); SIMD optimization is listed as the immediate next improvement.
Benchmark results (release build, x86_64 Linux, Rust 1.94.1)
Ecosystem fit
drift_monitorhook on index write pathis_drifted()return value triggers autonomous reindex actionruvector_drift_scoreas an agent-callable toolTest
Research doc:
docs/research/nightly/2026-07-21-semantic-drift-detect/README.mdADR:
docs/adr/ADR-272-semantic-drift-detect.mdGenerated by Claude Code