Reproducible retrieval study

Jev RAG is
not one pipeline.

I compared seven local knowledge-search paths on the same 3,633 documents and 323 public queries. The result is a practical map of where BM25, agentic query planning, embeddings, Jev reranking, and local rank fusion actually help.

Evaluation setup

One corpus, one protocol.

Every headline result uses the complete BEIR NFCorpus test split: 3,633 documents, 323 test queries, the same qrels, and the same metric implementation. Candidate depths and remote stages are disclosed. These are project-run results, not an official MTEB submission.

The central lesson: retrieval, judgment, ranking policy, and generation are separate layers. A reranker can reorder candidates, but it cannot recover evidence that the first stage never retrieved.

Measured results

The candidate pool sets the ceiling.

PipelinenDCG@10MRR@10Recall@10Median latencyp95 latency
BM25 top 300.3056540.5126970.1473091.92 ms6.60 ms
BM25 top 30 + Jev0.3532350.5858170.1586671.08 s16.95 s
BM25 top 50 + Jev0.3624680.5930230.1644741.92 s17.84 s
Two-level Jev Line Search0.3662800.6576600.16939711.74 s35.75 s
Hybrid + Unified Passage Gate0.3762980.6180430.1669771.56 s17.47 s
Agentic lexical top 500.3801680.5979400.1854646.99 s24.39 s
BM25 + embedding RRF top 500.3967120.6320890.1939771.38 s1.49 s
Multi-round Agentic Hybrid top 500.4241450.6377220.2063036.99 s24.39 s
Agentic lexical top 50 + Jev0.4309690.6440410.2041387.52 s26.35 s
Hybrid top 50 + Jev0.4443270.6545830.2149073.17 s17.99 s
Agentic Hybrid + Jev/retrieval fusion0.4507500.6526060.2208859.24 s38.72 s

Latency covers retrieval and reranking only. One-time corpus indexing and final answer generation are excluded. Expensive remote pipelines use labeled cold pilots or per-query stage estimates, and provider latency can change.

Inspect exact configuration, cost, caveats, and reproduction commands → Inspect latency provenance →

1. BM25 + Jev

The smallest path is local SQLite FTS5/BM25 retrieval followed by Jev evidence reranking. Adding Jev to BM25 top 30 raised nDCG@10 from 0.305654 to 0.353235. It is the most inspectable default and requires no embeddings or vector database.

2. Agentic lexical + Jev

Two planning rounds generate alternative lexical searches, execute them locally, and fuse the results before Jev. It improves vocabulary coverage without a document embedding index and reached 0.430969 nDCG@10, at the cost of online planner latency.

3. Hybrid + Jev

BM25 and embedding rankings are combined with reciprocal rank fusion before Jev. The wider candidate pool increased Recall@50 from 0.209810 to 0.318075; Jev then raised nDCG@10 to 0.444327. This is the strongest current quality/latency compromise.

4. Agentic Hybrid + rank fusion

Multi-round lexical planning runs beside the original-query embedding lookup. Jev alone reached 0.445761 nDCG@10; a zero-call local blend of Jev rank and retrieval rank reached 0.450750. The gain suggests that semantic judgment and retrieval priors contain complementary information.

5. Taxonomy routing

A two-level corpus taxonomy improved candidate recall but finished slightly below ordinary Hybrid + Jev. More relevant candidates raised the ceiling, yet also made the ranking problem harder. Higher candidate recall was necessary, not sufficient.

6. Unified Passage Gate

The gate judged relevance, supporting evidence, contradiction, and prompt-injection risk. Its fixed policy excluded 84.4% of candidates and reduced nDCG@10 below bare Hybrid. It is a useful negative result: safety and evidence thresholds need task-specific calibration.

7. Two-level Jev Line Search

Line Search sent bounded windows of the full index through Jev Choice, then globally ranked the finalists. It achieved the strongest first-hit behavior, but weaker evidence-set ranking and the highest observed cost. It fits small, high-value corpora rather than a default retrieval path.

Practical choice

Choose by failure mode.

PriorityRecommended mode
Minimum infrastructure and exact termsBM25 + Jev
Vocabulary mismatch without embeddingsAgentic lexical + Jev
Strong quality with manageable latencyHybrid + Jev
Maximum measured ranking qualityAgentic Hybrid
Evidence governance experimentsPassage Gate
Small-corpus deep searchLine Search

The project is independent and is not affiliated with or endorsed by TypeSafe AI, OpenRouter, or MiniMax.