Module 3 of 6 · Expert · 9 min read
Evals in production
Offline test sets, online monitoring and regression gates for AI features.
- 1Every AI feature needs an eval set before it ships.
- 2Combine code-based checks, model graders and human review.
- 3Monitor live traffic for drift and new failure types.
01The eval stack
Use the cheapest grader that is reliable for each criterion.
- Code checks: format, schema validity, exact matches, tests passing.
- Model graders: rubric-based judgements for quality, tone, faithfulness.
- Human review: calibrate graders and catch what they miss.
02Regression gates
Run the eval suite in CI on every prompt, model or retrieval change. Block deploys when key metrics drop. Model upgrades in particular can improve averages while breaking specific cases you care about.
03Designing high-signal rubrics
Vague 1–5 quality scores produce noisy graders. Split each rubric into binary pass/fail checks—for example, 'cites an existing source ID', 'omits PII', 'answers within 120 words'—and measure agreement (Cohen's kappa or simple % match) against 30–50 human-labelled examples before wiring the grader into CI.
For non-deterministic agent tasks, run multiple trials per test case and report both pass@1 (typical single-run quality) and pass^k (probability every trial succeeds), since production workflows fail on tail reliability.
04Online monitoring
Sample production traffic, grade it automatically, and track metrics over time. Collect user feedback signals (thumbs, edits, retries). Feed newly discovered failures back into the offline eval set so they never regress.
Sources
Written by AIModelRace. These official pages and papers back up this lesson's main points, so you can check them yourself.
- Define success criteria and build evaluations ↗ · Anthropic
- Working with evals ↗ · OpenAI
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena ↗ · Zheng et al., 2023
Finished reading?
Mark it complete to track your progress, then test yourself with the Benchmarks & Evals quiz.