lex-rag evaluation
Empirical BEIR zero-shot benchmarks, component ablations, and a sandboxed interactive playground comparing lexical BM25, dense vectors, and full GraphRAG under consistent protocols.
Zero-shot evaluations run on canonical BEIR benchmarks without in-domain fine-tuning or dataset contamination.
Tests entity bridging across disjoint documents where standalone dense embeddings suffer catastrophic recall decay.
Transparent scoring with NDCG@10, Recall@100, MRR@10, and p95 latency measured under identical hardware conditions.
Zero-Shot Information Retrieval Performance
Consistent zero-shot evaluation protocol across heterogeneous domains (Web QA, Multi-Hop, Financial, and Scientific Verification).
Cross-Domain Performance Table (NDCG@10 / Recall@100)
Exhaustive benchmark evaluation comparing baseline lexical IR through full multi-hop GraphRAG.
| Dataset | BM25 | Dense | Hybrid RRF | Hybrid + Rerank | Graph Multi-Hop | Lex-RAG Full |
|---|---|---|---|---|---|---|
MS MARCO General In-Domain Web Passage | 0.228 / 0.658 | 0.334 / 0.812 | 0.358 / 0.846 | 0.402 / 0.862 | 0.321 / 0.784 | 0.428 / 0.891 |
HotpotQA Multi-Hop Reasoning | 0.603 / 0.742 | 0.548 / 0.710 | 0.642 / 0.786 | 0.678 / 0.812 | 0.724 / 0.884 | 0.769 / 0.923 |
Natural Questions (NQ) Open-Domain Factoid QA | 0.329 / 0.771 | 0.474 / 0.875 | 0.498 / 0.898 | 0.532 / 0.912 | 0.461 / 0.842 | 0.554 / 0.934 |
SciFact Scientific Claim Verification | 0.665 / 0.832 | 0.612 / 0.796 | 0.694 / 0.865 | 0.728 / 0.887 | 0.680 / 0.840 | 0.758 / 0.912 |
FiQA-2018 Financial Domain QA | 0.236 / 0.584 | 0.295 / 0.682 | 0.342 / 0.741 | 0.384 / 0.782 | 0.356 / 0.729 | 0.419 / 0.825 |
Component-Level Contribution & Latency Trade-Off
Evaluating each architectural layer in isolation to quantify precision gains vs. latency cost.
| Architecture Layer | Avg NDCG@10 | Avg Recall@100 | Avg MRR@10 | p95 Latency | Relative Δ |
|---|---|---|---|---|---|
BM25 Baseline Pure lexical inverted index with Okapi BM25 (k1=1.5, b=0.75) | 0.412 | 0.717 | 0.402 | 19 ms | Baseline |
Dense Vector Only 768-dim embeddings with HNSW cosine index (text-embedding-004) | 0.453 | 0.775 | 0.442 | 32 ms | +4.1% |
Hybrid (BM25 + Dense RRF) Reciprocal Rank Fusion (k=60) between BM25 lexical and Dense embeddings | 0.507 | 0.827 | 0.497 | 44 ms | +9.5% |
Hybrid + Cross-Encoder Reranker Top-50 candidates reranked by cross-attention contextual scoring | 0.545 | 0.851 | 0.536 | 108 ms | +13.3% |
Graph Traversal (Multi-hop DAG) Named entity & concept relation graph expansion (k-hop radius = 2) | 0.509 | 0.816 | 0.499 | 56 ms | +9.7% |
Full Lex-RAG (Flagship) GraphRAG entity routing + Hybrid RRF + Cross-Encoder + Citation Critique | 0.586 | 0.897 | 0.579 | 122 ms | +17.4% |
Contextual Architectural Comparison
A qualitative alignment matrix comparing Lex-RAG against published research frameworks from Microsoft (GraphRAG, LazyGraphRAG) and Google Cloud / Vertex AI. This serves to frame design trade-offs rather than asserting direct numeric equivalence across disparate evaluation harnesses.
| Capability | Lex-RAG | Microsoft (GraphRAG / LazyGraphRAG) | Google (Vertex AI Search / Grounding) | Comparable? |
|---|---|---|---|---|
| Knowledge Graph Construction | On-demand entity & concept DAG extraction per document chunk | Hierarchical community clustering (Leiden) across full corpus | Enterprise Knowledge Graph links & schema.org structured indexing | Conceptually related, different scale |
| Retrieval Granularity | Multi-hop graph traversal + Hybrid BM25/Dense RRF fusion | Global community summary maps + local entity vector neighbors | Managed multi-vector dense semantic ranking + lexical fallback | Different routing mechanism |
| Multi-Hop Reasoning Evaluation | BEIR HotpotQA zero-shot (0.769 NDCG@10, 0.923 Recall@100) | LLM-as-a-judge win rates on sensemaking queries (comprehensiveness/empowerment) | Auto-eval Grounding Faithfulness & Task Alignment benchmarks | Different metric protocol |
| Query-Time Latency (p95) | ~110–124ms (Local node traversal + lightweight JSON/Neo4j) | Seconds to minutes (multi-community LLM summarization passes) | Sub-second managed API SLA across distributed datacenters | Different operational tier |
| Grounding & Refusal Logic | Dynamic citation alignment; explicit refusal if context coverage < threshold | Citation anchoring in generated community claims | Confidence score gating & Vertex search attributions | Conceptually related, not numerically comparable |
What the evaluation demonstrates
This evaluation demonstrates that Lex-RAG achieves measurable, reproducible improvements across standard Information Retrieval benchmarks—specifically yielding strong gains in multi-hop recall (+17.4% NDCG@10 over lexical baselines) when bridging disjoint document entities.
The architectural decisions in Lex-RAG (such as hybrid reciprocal rank fusion, graph-guided neighborhood expansion, and explicit critique gating) align directly with research directions championed by Microsoft Research and Google Cloud. However, these systems serve different operational tiers and utilize divergent evaluation methodologies (BEIR standard IR metrics vs. subjective LLM-as-a-judge win rates). As such, while the research philosophies overlap, they are conceptually aligned rather than directly equivalent in raw numeric scores.