| Crates.io | rag-plusplus-core |
| lib.rs | rag-plusplus-core |
| version | 0.1.0 |
| created_at | 2026-01-18 15:22:15.924134+00 |
| updated_at | 2026-01-18 15:22:15.924134+00 |
| description | High-performance retrieval engine with SIMD-accelerated vector search and trajectory memory |
| homepage | |
| repository | https://github.com/mohameddiomande/rag-plusplus-core |
| max_upload_size | |
| id | 2052482 |
| size | 955,111 |
High-performance retrieval engine in Rust with SIMD-accelerated vector search and trajectory memory.
use rag_plusplus_core::{HNSWIndex, HNSWConfig, MemoryRecord, RecordId};
// Create an HNSW index for 768-dimensional vectors
let config = HNSWConfig::default();
let mut index = HNSWIndex::new(768, config);
// Add vectors
let record = MemoryRecord::new(
RecordId::new("doc-1"),
vec![0.1; 768],
Default::default(),
);
index.add(&record)?;
// Search for nearest neighbors
let query = vec![0.15; 768];
let results = index.search(&query, 10)?;
for (id, distance) in results {
println!("Found: {} at distance {}", id, distance);
}
| Module | Description |
|---|---|
index |
Vector indices (HNSW, Flat) with fusion strategies |
distance |
SIMD-optimized distance functions |
retrieval |
Query engine with reranking |
store |
Record storage trait and implementations |
trajectory |
5D trajectory coordinates, salience scoring, ring structures |
quantization |
Vector compression (SQ8, PQ) |
wal |
Write-ahead log for durability |
cache |
Query result caching |
filter |
Metadata filter expressions |
observability |
Metrics and tracing |
parallel (default) - Enable rayon-based parallel processingsalience-debug - Enable debug logging for salience distributionRun benchmarks with:
cargo bench
Available benchmarks:
distance - Distance computation performanceindex - Index build/search performanceretrieval - Query engine latencyserialization - rkyv serialization throughputwal - Write-ahead log performanceMIT