ruvector/examples
rUv 13600cc572 feat: Add REFRAG pipeline example demonstrating 30x RAG latency reduction
Implements a complete Compress-Sense-Expand architecture as standalone example:

- **Compress Layer**: Binary tensor storage with 4 compression strategies
  - None (1x), Float16 (2x), Int8 (4x), Binary (32x)

- **Sense Layer**: Policy network for COMPRESS/EXPAND routing decisions
  - ThresholdPolicy (~2μs), LinearPolicy (~5μs), MLPPolicy (~15μs)

- **Expand Layer**: Dimension projection with LLM registry
  - Supports LLaMA, GPT-4, Claude, Mistral, Phi-3

- **RefragStore**: Hybrid search returning mixed tensor/text results

This example demonstrates REFRAG concepts (arXiv:2509.01092) without
modifying ruvector-core, serving as proof-of-concept for Issue #10.

Includes:
- 25 passing unit tests
- Interactive demo (cargo run --bin refrag-demo)
- Performance benchmarks (cargo run --bin refrag-benchmark)
- Criterion benchmarks for CI integration

Refs: #10, #22

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 20:59:23 +00:00
..
agentic-jujutsu feat: Add comprehensive agentic-jujutsu integration examples and tests 2025-11-22 03:12:31 +00:00
graph feat: Add Neo4j-compatible hypergraph database package (ruvector-graph) 2025-11-25 23:11:54 +00:00
nodejs feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
refrag-pipeline feat: Add REFRAG pipeline example demonstrating 30x RAG latency reduction 2025-11-27 20:59:23 +00:00
rust feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
wasm-react feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
wasm-vanilla feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
advanced_features.rs feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
agenticdb_demo.rs feat: Complete ALL Ruvector phases - production-ready vector database 2025-11-19 14:37:21 +00:00
gnn_example.rs feat: Add ruvector-gnn crate with GNN, compression, WASM and Node.js bindings 2025-11-26 04:50:36 +00:00
graph-cli-usage.md feat: Add Neo4j-compatible hypergraph database package (ruvector-graph) 2025-11-25 23:11:54 +00:00
graph_wasm_usage.html feat: Add Neo4j-compatible hypergraph database package (ruvector-graph) 2025-11-25 23:11:54 +00:00