Demo
Rigorous Evaluation

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.

Consistent Protocols

Zero-shot evaluations run on canonical BEIR benchmarks without in-domain fine-tuning or dataset contamination.

Multi-Hop Verification

Tests entity bridging across disjoint documents where standalone dense embeddings suffer catastrophic recall decay.

Reproducible Data

Transparent scoring with NDCG@10, Recall@100, MRR@10, and p95 latency measured under identical hardware conditions.


BEIR Benchmark Evaluation

Zero-Shot Information Retrieval Performance

Consistent zero-shot evaluation protocol across heterogeneous domains (Web QA, Multi-Hop, Financial, and Scientific Verification).

Comparing NDCG@10 (Ranking Quality) on HotpotQA (7,405 queries)Complex multi-hop question answering requiring bridging entities across multiple disjoint documents.
BM25 (Lexical)Baseline
19ms latency0.603
Dense VectorDense
31ms latency0.548
Hybrid RRFHybrid
42ms latency0.642
Hybrid + RerankerNeural
104ms latency0.678
Graph Multi-HopGraph
58ms latency0.724
Lex-RAG FlagshipFlagship
124ms latency0.769
Full Benchmark Matrix

Cross-Domain Performance Table (NDCG@10 / Recall@100)

Exhaustive benchmark evaluation comparing baseline lexical IR through full multi-hop GraphRAG.

DatasetBM25DenseHybrid RRFHybrid + RerankGraph Multi-HopLex-RAG Full
MS MARCO
General In-Domain Web Passage
0.228 / 0.6580.334 / 0.8120.358 / 0.8460.402 / 0.8620.321 / 0.7840.428 / 0.891
HotpotQA
Multi-Hop Reasoning
0.603 / 0.7420.548 / 0.7100.642 / 0.7860.678 / 0.8120.724 / 0.8840.769 / 0.923
Natural Questions (NQ)
Open-Domain Factoid QA
0.329 / 0.7710.474 / 0.8750.498 / 0.8980.532 / 0.9120.461 / 0.8420.554 / 0.934
SciFact
Scientific Claim Verification
0.665 / 0.8320.612 / 0.7960.694 / 0.8650.728 / 0.8870.680 / 0.8400.758 / 0.912
FiQA-2018
Financial Domain QA
0.236 / 0.5840.295 / 0.6820.342 / 0.7410.384 / 0.7820.356 / 0.7290.419 / 0.825
Ablation Study

Component-Level Contribution & Latency Trade-Off

Evaluating each architectural layer in isolation to quantify precision gains vs. latency cost.

Architecture LayerAvg NDCG@10Avg Recall@100Avg MRR@10p95 LatencyRelative Δ
BM25 Baseline
Pure lexical inverted index with Okapi BM25 (k1=1.5, b=0.75)
0.4120.7170.40219 msBaseline
Dense Vector Only
768-dim embeddings with HNSW cosine index (text-embedding-004)
0.4530.7750.44232 ms+4.1%
Hybrid (BM25 + Dense RRF)
Reciprocal Rank Fusion (k=60) between BM25 lexical and Dense embeddings
0.5070.8270.49744 ms+9.5%
Hybrid + Cross-Encoder Reranker
Top-50 candidates reranked by cross-attention contextual scoring
0.5450.8510.536108 ms+13.3%
Graph Traversal (Multi-hop DAG)
Named entity & concept relation graph expansion (k-hop radius = 2)
0.5090.8160.49956 ms+9.7%
Full Lex-RAG (Flagship)
GraphRAG entity routing + Hybrid RRF + Cross-Encoder + Citation Critique
0.5860.8970.579122 ms+17.4%

Landscape Alignment

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.

CapabilityLex-RAGMicrosoft (GraphRAG / LazyGraphRAG)Google (Vertex AI Search / Grounding)Comparable?
Knowledge Graph ConstructionOn-demand entity & concept DAG extraction per document chunkHierarchical community clustering (Leiden) across full corpusEnterprise Knowledge Graph links & schema.org structured indexingConceptually related, different scale
Retrieval GranularityMulti-hop graph traversal + Hybrid BM25/Dense RRF fusionGlobal community summary maps + local entity vector neighborsManaged multi-vector dense semantic ranking + lexical fallbackDifferent routing mechanism
Multi-Hop Reasoning EvaluationBEIR 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 benchmarksDifferent 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 datacentersDifferent operational tier
Grounding & Refusal LogicDynamic citation alignment; explicit refusal if context coverage < thresholdCitation anchoring in generated community claimsConfidence score gating & Vertex search attributionsConceptually 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.