A unified 7-layer RAG framework that simultaneously eliminates Semantic Drift and Context Window Poisoning — the two compounding failure modes that undermine factual grounding in standard RAG systems.
Key Results
Metric
VORTEXRAG
vs Naive RAG
vs CRAG
vs Self-RAG
EM
74.8
+13.6
+7.9
+6.4
F1
82.6
+14.2
+8.3
+6.7
Faithfulness
0.94
+0.23
+0.16
+0.13
Semantic Drift Reduction
61%
—
—
—
Context Poison Reduction
71%
—
—
—
Added Latency
45ms
—
2.5× faster
2.2× faster
Evaluated on NQ + HotpotQA + MuSiQue + 2WikiMultiHopQA (31,240 total questions).
1from vortexrag import VortexRAG, VortexConfig
23# Initialize with domain preset4config = VortexConfig(domain="general")# general, medical, legal, financial, code...5rag = VortexRAG(config)67# Index your documents8rag.index(["Document 1...","Document 2...","Document 3..."])910# Query11result = rag.query("Why did X cause Y rather than Z?")12print(result.answer)13print(f"Faithfulness: ΔR={result.delta_r:.3f}")14print(f"Context Quality: ESR={result.esr:.3f}")
Domain Presets
VORTEXRAG ships with 11 pre-calibrated domain parameter vectors:
Domain
τ
θ_CPG
γ (causal)
β (syntactic)
Use Case
general
0.80
3.5
0.25
0.25
Default balanced
medical
0.35
5.0
0.40
0.15
Drug mechanisms, clinical QA
legal
0.40
4.5
0.35
0.30
Precedent chains, statutory analysis
scientific
0.30
4.0
0.40
0.20
Physics, chemistry, biology
financial
0.50
3.5
0.30
0.25
Market causation, risk analysis
code
0.60
3.5
0.25
0.45
Debugging, AST-structured retrieval
cybersecurity
0.45
4.0
0.35
0.30
Exploit chains, threat intel
educational
0.65
3.0
0.25
0.20
Concept progression, tutoring
historical
0.90
3.0
0.35
0.20
Event causation chains
creative
1.20
2.5
0.15
0.20
Thematic retrieval
Theoretical Contributions
Theorem 5.1 (CPG Greedy Optimality): Per-step removal of argmin SDS maximizes ΔESR. Proof via monotone derivative argument.
Corollary 5.1 (Convergence): Purge terminates in ≤|W|−3 steps with strictly monotone increasing ESR.