Skip to content

research(nightly): graph-coherence-search — coherence-gated BFS vector retrieval#498

Draft
ruvnet wants to merge 3 commits into
mainfrom
research/nightly/2026-05-22-graph-coherence-search
Draft

research(nightly): graph-coherence-search — coherence-gated BFS vector retrieval#498
ruvnet wants to merge 3 commits into
mainfrom
research/nightly/2026-05-22-graph-coherence-search

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented May 22, 2026

Nightly Research: GCVS — Graph-Coherence Vector Search

Adds a new standalone crate ruvector-gcvs implementing coherence-gated BFS expansion on top of vector ANN search. The first in-retrieval graph traversal primitive in the RuVector ecosystem.

Summary

  • Three-variant GcvsIndex trait: FlatSearch (baseline), GraphAugSearch (BFS), GraphCohSearch (coherence-gated BFS)
  • Graph edges represent semantic associations beyond embedding proximity (knowledge graph, memory associations, citations, call graphs)
  • Coherence gate: only traverse edge (u→v) if cosine(query, v) ≥ threshold — prunes irrelevant branches
  • +32 pp recall improvement on cross-cluster graph targets vs FlatSearch (0.0% → 32.0%)
  • All 6 unit tests pass; build green with cargo build --release -p ruvector-gcvs

Real Benchmark Results

Hardware: x86-64, Linux 6.18.5, rustc 1.94.1, release build.
Dataset: N=5,000, DIM=128, 3 orthogonal clusters, 20,000 directed cross-cluster edges.
Ground truth: direct cross-cluster graph neighbours only.

Variant Recall@10 Mean µs QPS
FlatSearch (baseline) 0.0% 1,306 765
GraphAugSearch 32.0% (+32 pp) 1,284 779
GraphCohSearch 32.0% (+32 pp) 1,276 783

All acceptance tests PASS.

Deliverables

  1. ✅ Working Rust PoC — crates/ruvector-gcvs (7 source files, all < 500 lines)
  2. ✅ ADR — docs/adr/ADR-194-graph-coherence-search.md
  3. ✅ Research document — docs/research/nightly/2026-05-22-graph-coherence-search/README.md
  4. ✅ SEO gist — docs/research/nightly/2026-05-22-graph-coherence-search/gist.md
  5. ✅ Real benchmark numbers captured in research doc

Ecosystem Connections

Bridges ruvector-graph, ruvector-coherence, ruvector-mincut, ruvector-gnn, ruvector-verified, rvf, and ruFlo via the GCVS retrieval layer.

Run it

git checkout research/nightly/2026-05-22-graph-coherence-search
cargo build --release -p ruvector-gcvs
cargo test -p ruvector-gcvs
cargo run --release -p ruvector-gcvs --bin benchmark

Generated by Claude Code

claude added 3 commits May 22, 2026 07:36
Implements GCVS (Graph-Coherence Vector Search) as crates/ruvector-gcvs.

Three variants via GcvsIndex trait:
- FlatSearch: brute-force cosine baseline
- GraphAugSearch: ANN seeds + BFS expansion through semantic graph
- GraphCohSearch: BFS with coherence gate (cosine >= threshold)

Real benchmark (N=5K, DIM=128, 3 orthogonal clusters, 20K edges):
  FlatSearch recall@10 on cross-cluster GT:  0.0%
  GraphAugSearch recall@10:                 32.0% (+32 pp)
  GraphCohSearch recall@10:                 32.0% (+32 pp)
All acceptance tests PASS.

Crate: crates/ruvector-gcvs
ADR: docs/adr/ADR-194-graph-coherence-search.md
Nightly research documentation for GCVS (Graph-Coherence Vector Search):
- docs/research/nightly/2026-05-22-graph-coherence-search/README.md
- docs/research/nightly/2026-05-22-graph-coherence-search/gist.md
- docs/adr/ADR-194-graph-coherence-search.md

Covers: SOTA survey, forward-looking 2036-2046 thesis, ruvnet ecosystem fit,
benchmark methodology, real results, failure modes, security implications,
edge/WASM/MCP implications, practical and exotic applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants