Ruffian-L/SplatRagBench

Standalone benchmark suite for SplatRag: Physics-Based Hybrid Retrieval

Rust

0

1 commits

updated Jul 26, 2026

See the code

README

SplatRagBench

Physics-/structure-inspired hybrid retrieval evaluation suite (SciFact-oriented).

Lead: Jason Van Pham (Ruffian-L)
Standalone benchmark distribution — Rust engine + eval scripts. Not the full historical MCP/Cursor product stack.

Not third-party certification · not “SOTA forever” marketing.
Numbers below are repository-run project evaluations (SciFact). Re-run with ./runbench and keep the labels.

Best face of this repo

StrengthWhere
Repro path./runbench (venv, deps, Rust build, SciFact, ablation plot)
Hybrid ablation tableBM25 / dense / hybrid / “nuclear” weights — same harness
Rust BM25Tantivy path as a strong lexical arm on this dataset
Honest dual modePair with cathedral-beir (pure dense BEIR) — invent vs simple baseline
What failedDense-only weaker on SciFact terms; over-weighted “nuclear” can lose to balanced hybrid

What it is

Experimental retrieval that fuses:

  1. Lexical — BM25 (Tantivy)
  2. Dense — embeddings (Nomic-class path in this suite)
  3. Geometry / “needle physics” — structure-inspired score from token-cluster geometry (project metric; not a claim of physical law)

Project evaluation numbers (SciFact, as recorded in-repo)

ConfigurationnDCG@10Recall@10Read as
Python BM25 (simple baseline)0.70730.7970Weak baseline script
LangChain (BM25)0.65620.7250Industry wrapper on this set
RAGFlow (hybrid)0.73570.8120External hybrid reference
SplatRag BM25 only0.76940.9090Strong lexical arm
SplatRag dense only0.62910.7460Weak link on SciFact terms
SplatRag hybrid0.78220.9090Best in this table (project eval)
SplatRag “nuclear” weights0.77080.9090Overkill — slightly worse than hybrid

Verified on SciFact inside this project (Nov 2025 era). Not independent lab certification.

Plots (historical progression)

Round 3 / 2 / 1 images in-repo (rag_benchmark_v3.png, rag_benchmark_v2.png, rag_benchmark.png) are ablation storyboards, not peer-reviewed leaderboard screenshots.

Quick start

Needs: Linux/macOS · Python 3.10+ · Rust (script may assist install)

./runbench
  1. Local venv + deps
  2. Compile Rust binaries
  3. Ingest datasets/scifact if needed
  4. Ablation + plot

Manual

./venv/bin/python fast_ingest.py
./venv/bin/python rag_benchmark.py
# optional: cargo run --release --bin mcp_server

Layout

PathRole
src/Rust core (index + physics-style scores)
rag_benchmark.pyAblation orchestrator
fast_ingest.pyEmbeddings + .geom
models/Manifold / PCA helpers
datasets/SciFact corpus + queries

License

MIT.

By Jason Van Pham, with AI collaborators where they moved the work. Dual retrieval track: SplatRagBench (rich hybrid) · cathedral-beir (pure dense).

Contributors

Ruffian-L

1 commits

Ruffian-L/SplatRagBench

Standalone benchmark suite for SplatRag: Physics-Based Hybrid Retrieval

Rust

0

1 commits

updated Jul 26, 2026

See the code

README

SplatRagBench

Physics-/structure-inspired hybrid retrieval evaluation suite (SciFact-oriented).

Lead: Jason Van Pham (Ruffian-L)
Standalone benchmark distribution — Rust engine + eval scripts. Not the full historical MCP/Cursor product stack.

Not third-party certification · not “SOTA forever” marketing.
Numbers below are repository-run project evaluations (SciFact). Re-run with ./runbench and keep the labels.

Best face of this repo

StrengthWhere
Repro path./runbench (venv, deps, Rust build, SciFact, ablation plot)
Hybrid ablation tableBM25 / dense / hybrid / “nuclear” weights — same harness
Rust BM25Tantivy path as a strong lexical arm on this dataset
Honest dual modePair with cathedral-beir (pure dense BEIR) — invent vs simple baseline
What failedDense-only weaker on SciFact terms; over-weighted “nuclear” can lose to balanced hybrid

What it is

Experimental retrieval that fuses:

  1. Lexical — BM25 (Tantivy)
  2. Dense — embeddings (Nomic-class path in this suite)
  3. Geometry / “needle physics” — structure-inspired score from token-cluster geometry (project metric; not a claim of physical law)

Project evaluation numbers (SciFact, as recorded in-repo)

ConfigurationnDCG@10Recall@10Read as
Python BM25 (simple baseline)0.70730.7970Weak baseline script
LangChain (BM25)0.65620.7250Industry wrapper on this set
RAGFlow (hybrid)0.73570.8120External hybrid reference
SplatRag BM25 only0.76940.9090Strong lexical arm
SplatRag dense only0.62910.7460Weak link on SciFact terms
SplatRag hybrid0.78220.9090Best in this table (project eval)
SplatRag “nuclear” weights0.77080.9090Overkill — slightly worse than hybrid

Verified on SciFact inside this project (Nov 2025 era). Not independent lab certification.

Plots (historical progression)

Round 3 / 2 / 1 images in-repo (rag_benchmark_v3.png, rag_benchmark_v2.png, rag_benchmark.png) are ablation storyboards, not peer-reviewed leaderboard screenshots.

Quick start

Needs: Linux/macOS · Python 3.10+ · Rust (script may assist install)

./runbench
  1. Local venv + deps
  2. Compile Rust binaries
  3. Ingest datasets/scifact if needed
  4. Ablation + plot

Manual

./venv/bin/python fast_ingest.py
./venv/bin/python rag_benchmark.py
# optional: cargo run --release --bin mcp_server

Layout

PathRole
src/Rust core (index + physics-style scores)
rag_benchmark.pyAblation orchestrator
fast_ingest.pyEmbeddings + .geom
models/Manifold / PCA helpers
datasets/SciFact corpus + queries

License

MIT.

By Jason Van Pham, with AI collaborators where they moved the work. Dual retrieval track: SplatRagBench (rich hybrid) · cathedral-beir (pure dense).

Contributors

Ruffian-L

1 commits

Languages

Rust

90.2%

Python

5.7%

Cuda

3.5%