semantic-memory 0.5.2

Local-first hybrid semantic search (SQLite + FTS5 + usearch 2.25) with bitemporal truth and typed receipts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example: run the RAGRouter-Bench and print the report + JSON manifest.
// Requires `--features benchmark` to compile.

#[cfg(feature = "benchmark")]
fn main() {
    let report = semantic_memory::benchmark::run_default_benchmark();
    let text = semantic_memory::benchmark::format_report(&report);
    println!("{}", text);

    let json = serde_json::to_string_pretty(&report).unwrap();
    println!("\n=== JSON Reproducibility Manifest ===\n{}", json);
}

#[cfg(not(feature = "benchmark"))]
fn main() {
    eprintln!("This example requires the `benchmark` feature. Run with:");
    eprintln!("  cargo run --features benchmark --example run_bench");
}