Continuous evaluation of LLM outputs in CI and production to catch regressions before users do.
How an evaluation pipeline gates a change before users see it
Step 1 of 5
Code change
A change to a prompt, model or retrieval setting is pushed and triggers CI. Prompts count as code here.
Step 2 of 5
Eval run
The runner feeds every case in the golden set through the changed system and collects the outputs. A slow run gets skipped by developers, so keep it quick.
Step 3 of 5
LLM judge
A judge model, different from the system under test, scores each output for faithfulness, relevance and correctness. People review the cases where the judge is unsure.
Step 4 of 5
Report gate
Scores are compared with the current version. A drop beyond the agreed threshold fails the build and blocks the deploy.
Step 5 of 5
Online eval
After release, a sample of live traffic is scored the same way. This catches drift the golden set cannot, and new real queries can be added back into it.
The golden set and the judge decide whether a change ships, so both need their own care.
Code change
Golden set
CI
Eval run
LLM judge
Report
Online eval
clientservicemodeldatabaseagentexternal
Explanation
Every code change runs an eval against a golden dataset. An LLM judge scores outputs on faithfulness, relevance and correctness. Reports gate the deploy. In production, a sample of traffic is scored online to detect drift.
Components
Golden datasetEval runnerLLM-as-judge scorerRegression gateOnline sampling + scoringDashboards
When to use
Any production LLM system
Before prompt or model changes
RAG systems with measurable retrieval
When NOT to use
Early prototyping with no golden data
Pure novelty generation (hard to score)
Failure modes
Golden set drifts from real traffic
LLM judge aligned with the system under test (circular eval)