research(nightly): semantic-search-cache — ANN result-set semantic cache in Rust - #798
Draft
ruvnet wants to merge 1 commit into
Draft
research(nightly): semantic-search-cache — ANN result-set semantic cache in Rust#798ruvnet wants to merge 1 commit into
ruvnet wants to merge 1 commit into
Conversation
Adds 2026-08-05 nightly RuVector research: semantic ANN result-set cache. - Working Rust PoC: ruvector-semantic-cache (zero deps, WASM-safe) - Three variants: NoCache, SemanticCacheCoarse (t=0.90), SemanticCacheFine (t=0.97) - 12 unit tests passing - Benchmark: 72.8% hit rate, 92µs hit latency (vs 7.9ms corpus scan), 3.5× speedup, 94.7% recall - ADR-296: semantic query cache architecture decision - Research doc: docs/research/nightly/2026-08-05-semantic-search-cache/README.md - Public gist: docs/research/nightly/2026-08-05-semantic-search-cache/gist.md SOTA basis: QVCache (arXiv 2602.02057, Feb 2026) — first to cache ANN result sets. No Rust implementation existed before this PoC. Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01QsmJYfvDUppUVmKSCMsvrp
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
ruvector-semantic-cache: zero-dependency Rust crate implementing an ANN result-set semantic cache keyed by cosine similarityNoCache,SemanticCacheCoarse(t=0.90),SemanticCacheFine(t=0.97) — against a 50 K × 128-dim corpus with realistic mixed agent workloadDeliverables
crates/ruvector-semantic-cache/docs/research/nightly/2026-08-05-semantic-search-cache/README.mddocs/adr/ADR-296-semantic-query-cache.mddocs/research/nightly/2026-08-05-semantic-search-cache/gist.mdBenchmark results (real numbers, 2026-08-05)
Tests
SOTA basis
Gap addressed
Cache invalidation on mutable indices (all prior systems assume static corpora) is an open problem. This PoC establishes
invalidate_all()as the conservative correct baseline.Generated by Claude Code