Context / Tools / Evals / Safety / 06
Evals before vibes
Build representative test sets, graders, traces, red-team cases, and release criteria tied to user outcomes.
Before you begin
By the end, you can…
- Build a representative evaluation set
- Choose metrics tied to user outcomes
- Use traces to diagnose regressions
01 / Understand
Evaluation replaces demo-driven development
A few impressive examples reveal possibility, not reliability. Build a dataset from real tasks, common cases, edge cases, failures, and adversarial inputs. Keep a holdout set away from prompt tuning.
Evaluate the whole system: retrieval, answer quality, groundedness, tool choice, safety, latency, cost, and user task success. Aggregate scores can hide catastrophic failures, so track critical slices separately.
02 / Apply
Make failures inspectable
Store traces of inputs, context selection, model and prompt version, tool calls, outputs, validation, and feedback with appropriate privacy controls. A regression should be reproducible.
Use deterministic checks where possible, model graders with calibration where judgment is needed, and human review for high-impact or ambiguous cases. Define thresholds before seeing the new score.
03 / Make
Your studio task
Make — Build a 30-case evaluation set from real tasks, edge cases, and adversarial inputs.
- Collect 30 representative cases across normal, edge, and adversarial behavior.
- Define task success, groundedness, safety, latency, and cost measures.
- Create a holdout set and release thresholds.
- Run a change, inspect failed slices and traces, then record the ship decision.
Release criteria cover task success, groundedness, safety, latency, cost, and regression.
04 / Check