RAG System

Open-source evaluation framework for production RAG systems with automated regression detection

3retrieval strategies
11test modules
CIruff / mypy / pytest
View on GitHub →
The Ask view: three retrieval strategies over one corpus, with the active pipeline shown under the strategy switch.
EvalRAG · Ask view

Problem: Evaluating RAG in Production

Production RAG systems are hard to evaluate. Deploying an optimization looks good in testing but degrades performance on real-world queries. Most teams rely on manual evaluation or naive accuracy metrics that miss latency, token cost, and hallucination risks.

Solution: Evaluation Pipeline

RAG evaluation pipeline Questions enter the pipeline, are embedded and retrieved from the vector store, reranked, then answered by the LLM. Answers are scored by an LLM judge against a golden dataset, and a regression detector flags when a change degrades results. RAG Evaluation Pipeline RAG Input Prompts & Queries LLM Generation Outputs from Multiple Strategies Metric Evaluation Accuracy, Latency, Cost Regression Detection A/B Testing Statistical Sig. Feedback Loop Alerts & Reports 3 Retrieval Strategies Compared Classic Vector Search + LLM Reranking Fast Cost-effective Baseline Graph Knowledge Graph Multi-hop Reasoning Complex queries Higher latency Better reasoning Agentic Claude + Tool Use Iterative Retrieval Most accurate Highest cost Adaptive flow Evaluation Metrics Relevance & Completeness Latency (p50, p95, p99) Token Cost Hallucination Rate

How It Works

Evaluation Metrics

Comparative Dashboard

Results

3
Strategies Tested
Production
Status
MIT License
Open Source

Technology Stack

Python FastAPI React Qdrant PostgreSQL Redis LangChain Claude API Docker