Evaluation and monitoring platform for RAG and agent workflows.
AI engineering interviews increasingly test whether you can make LLM systems reliable, measurable, and maintainable. This project focuses on evals, regression testing, trace collection, latency, cost, and quality gates.
Built an LLM evaluation platform with regression datasets, automated scoring, prompt/version tracking, and CI quality gates for RAG and agent workflows.
flowchart LR
Dataset[JSONL eval dataset] --> Runner[Eval runner]
Provider[Provider adapter] --> Runner
Runner --> Scorers[Scorers: relevance, citations, JSON, groundedness]
Scorers --> Report[JSON report]
Report --> Gate[CI quality gate]
Report --> History[SQLite run history]
- Store golden test cases for RAG and agent workflows.
- Run local prompt/model/version comparisons from JSONL datasets.
- Score answer relevance, citation correctness, groundedness, JSON validity, latency, and cost.
- Export JSON reports for CI and dashboards.
- Track failures by prompt version and dataset.
- Provider adapter interface with local
dataset-candidateandechoproviders. - Optional OpenAI Responses API provider for real model evals.
- SQLite run history for tracking pass rate and groundedness over time.
- Unit tests for scorer behavior and runner summaries.
python -m venv .venv
.\.venv\Scripts\activate
pip install -e ".[dev]"
python -m evals.runner run datasets/sample.jsonl --report-path runs/sample-report.json
python -m pytest
python -m ruff check .Persist run history to SQLite:
python -m evals.runner run datasets/sample.jsonl \
--report-path runs/sample-report.json \
--history-db runs/history.db
python -m evals.runner history runs/history.dbEvaluate with a different local provider:
python -m evals.runner run datasets/sample.jsonl --provider echoEvaluate a real OpenAI model:
pip install -e ".[openai]"
$env:OPENAI_API_KEY="your_api_key"
python -m evals.runner run datasets/sample.jsonl --provider openai --model gpt-4.1The OpenAI provider uses the Responses API and extracts inline citations from model answers
such as [sample-report].
The sample dataset currently passes the quality gate:
{
"total_cases": 2,
"passed_cases": 2,
"pass_rate": 1.0,
"average_relevance": 1.0,
"average_groundedness": 1.0,
"average_citation": 1.0,
"quality_gate_passed": true
}- Reliability layer for LLM apps: evals, regression data, quality gates, and run history.
- Local-first design keeps development deterministic while still supporting real OpenAI model evals.
- Scoring separates answer relevance, citation correctness, groundedness, structured-output validity, latency, and cost.
- The project is designed to plug into RAG and agent systems as a CI quality gate.
- Add provider adapters for OpenAI and Bedrock.
- Add prompt/model/version comparison reports.
- Add a lightweight FastAPI endpoint for run history.
- Connect this eval runner to the mortgage RAG copilot.
- Add dashboard views for pass-rate trends and failure clustering.