The Vibe-Check Era Is Over
A team I worked with last quarter shipped a customer-facing agent for three months by demoing it on the same six prompts in standup. The PM would say "feels better," the engineer would merge, and the prompt would land in prod by lunch. When they finally ran a held-out set of 200 real conversations against the latest version, the success rate had dropped from 81% to 54% over six weeks of "improvements."
Nobody had noticed. The model was confidently producing fluent, plausible, wrong answers.
This is the failure mode for every LLM feature shipped without evals. The output reads well, so it looks fine. The regressions are silent because there is no ground truth — just a feeling that the demo went OK.
If you have shipped traditional ML, you already know the fix. You need a held-out set, a metric, and a loop. LLMs do not get a pass on this just because the prompt is in English.
Four Tiers of Evals
I think about evals in four tiers. Most teams stop at tier one and wonder why they have no signal.
| Tier | What it measures | Cadence | Owner |
|---|---|---|---|
| Unit | Single-output assertions (format, presence of citations, no PII leak) | Every PR | Engineer |
| Regression | Golden set scored end-to-end | Every prompt change | Engineer |
| Drift | Distribution of outputs over time on real inputs | Daily | Platform |
| Online | A/B on real traffic, business metric | Per release | PM + Eng |
Unit evals are cheap and fast — they catch the dumb stuff. Did the JSON parse. Did the agent refuse to leak a system prompt. Did the response stay under 4000 tokens. These should run in CI on every PR, and they should be ruthless. If your agent ever returns malformed JSON in dev, it will return malformed JSON in prod at 3am.
Regression is where most of the actual learning happens. You curate a labeled golden set, you score every prompt change against it, and you only merge when the delta is positive or neutral on metrics you care about.
Drift is the one teams skip because it requires infrastructure. You sample 1% of prod traffic, score it on the same rubric as your regression set, and watch the rolling 7-day average. When OpenAI silently updated gpt-4o last August, three of my agents saw measurable shifts in output length and refusal rate within 48 hours. Without drift evals I would have learned about it from a user complaint a week later.
Online is the ground truth — task completion, thumbs up, downstream conversion. It is also the slowest signal. You do not get to wait for it.
The Case Against Pure LLM-as-Judge
LLM-as-judge is seductive. You write a rubric, ask Claude or GPT to score the output 1-5, and now you have a metric. The problem is that the judge has more biases than the system you are evaluating.
I ran a calibration study last year on 400 examples, three judge models, hand-labeled ground truth:
| Judge | Verbosity bias | Position bias | Agreement with humans |
|---|---|---|---|
| GPT-4o as judge | +0.42 on Likert 5 for verbose outputs | 8% favor first option in pairwise | 71% |
| Claude Sonnet as judge | +0.18 on Likert 5 for verbose outputs | 3% favor first option | 79% |
| Hand-rolled rubric with regex + small LLM | n/a | n/a | 83% |
Verbosity bias is the killer. If the judge gives a 0.4-point Likert bump for longer responses, your prompt optimizer learns to be wordy. Six weeks later your bot writes essays.
Position bias matters in pairwise comparisons — randomize the order, always. And both biases drift when the judge model updates underneath you, which means your historical scores are not comparable across judge versions. Pin the judge model. Treat a judge upgrade like a metric definition change.
The pragmatic answer is hybrid. Use programmatic checks for everything you can express programmatically (length, format, citation presence, refusal patterns), and use LLM-as-judge only for the genuinely subjective stuff (tone, helpfulness, partial correctness). And calibrate your judge against human labels before you trust a single score.
Start with 30 Examples, Not 3000
The instinct is to build a giant eval set. Resist this. A curated 30-example golden set authored by someone who understands the product will catch more regressions than 3000 scraped logs.
The reason is selection. The 30 examples should cover:
- The five most common happy paths
- Five edge cases you have actually seen break in prod
- Five adversarial cases (prompt injection, jailbreaks, off-topic asks)
- Five long-context cases
- Five short ambiguous queries
- Five non-English or domain-specific inputs
Once that set is stable and you trust your scoring, then you scale up. I have shipped agents with 80-example golden sets in prod. The diminishing return after a few hundred well-chosen examples is steep.
What we tried that did not work: we once scraped 2400 conversations from prod logs, asked Claude to label them, and used that as our regression set. The labels were 73% accurate against hand review. Worse, the set was heavily skewed toward the modal user, so our metric improved while edge cases silently broke. We threw it away and went back to a hand-curated set of 60. The signal-to-noise went up by 4x overnight.
Evals as Code Review
Every prompt change is a PR. Every PR runs the eval suite. The CI comment looks like this:
Eval delta vs main:
unit: 137/137 passed (no change)
regression: golden_v3 (n=82)
accuracy: 0.86 → 0.89 (+0.03)
citation_rate: 0.74 → 0.71 (-0.03) ⚠
avg_tokens: 412 → 587 (+175) ⚠
refusal_rate: 0.04 → 0.06 (+0.02)
cost: $0.018 → $0.024 per call (+33%)
Citation rate dropped and token usage jumped 40%? That is a conversation, not an auto-merge. The reviewer can see the tradeoff and decide. Without the eval, the reviewer sees a diff with the word "improve" in the commit message and approves.
Two non-negotiables: the eval set is versioned in the repo (or at least pinned by hash), and the scoring code is committed alongside the prompts. If your eval is a Notion doc and a manual spreadsheet, you do not have evals — you have homework.
Numeric vs. Qualitative Metrics
Exact match works for narrow tasks: classification, extraction, code generation against test cases. If you can write a deterministic checker, write one. They are fast, free, and have zero drift.
For generative tasks where there is no single right answer, you need a rubric and a scoring approach. I default to:
- Likert 1-5 with explicit anchor descriptions for each level
- Pairwise preference (A vs B) when comparing two prompt versions head-to-head
- Pass/fail on specific properties (factually grounded, on-topic, no hallucinated entities)
Pairwise is usually more reliable than absolute Likert because the judge has a reference. Likert is more useful when you want to track a metric over time across many versions. Use both.
A concrete rubric anchor for "helpfulness":
5: Resolves the user's question completely with correct, specific information.
4: Addresses the question correctly but omits important nuance.
3: Partially correct or correct but vague.
2: Off-topic or technically wrong but related.
1: Wrong, harmful, or refuses inappropriately.
Vague rubrics produce vague scores. Spend the hour to write the anchors.
Tool Selection: Honest Tradeoffs
I have shipped production evals on Braintrust, Langfuse, LangSmith, Phoenix, and a rolled-from-scratch setup. None of them are obviously correct.
- Braintrust — best DX for the eval-driven workflow. The dataset diffing and side-by-side comparison UI is genuinely good. Pricing scales with your eval volume, which gets uncomfortable if you run a 1000-example set on every PR.
- Langfuse — strong tracing, self-hostable, evals are a second-class citizen compared to observability. Good if you already need a trace store.
- LangSmith — tight integration with LangChain, worse if you are not on LangChain. The dataset and feedback UI is solid.
- Phoenix (Arize) — open source, good for offline analysis, less polished for the CI loop.
- Roll your own — a TypeScript or Python script + a markdown table in PR comments goes very far for teams under ~5 engineers.
My honest answer for most teams: start with a rolled script in CI that runs against a JSON golden set and posts a table to the PR. Move to Braintrust or Langfuse when the CI script becomes the bottleneck — usually around the time you want to compare runs across weeks or share datasets across teams.
A Concrete Regression Test
The shape of a minimal regression test in TypeScript, no framework:
import Anthropic from "@anthropic-ai/sdk";
import golden from "./golden_set.json";
type Example = { id: string; input: string; expected: { mustInclude: string[]; mustNotInclude: string[] } };
const client = new Anthropic();
async function score(ex: Example): Promise<{ id: string; pass: boolean; reasons: string[] }> {
const res = await client.messages.create({
model: "claude-sonnet-4-7",
max_tokens: 1024,
system: SYSTEM_PROMPT,
messages: [{ role: "user", content: ex.input }],
});
const text = res.content.map((b) => (b.type === "text" ? b.text : "")).join("");
const reasons: string[] = [];
for (const s of ex.expected.mustInclude) {
if (!text.toLowerCase().includes(s.toLowerCase())) reasons.push(`missing: ${s}`);
}
for (const s of ex.expected.mustNotInclude) {
if (text.toLowerCase().includes(s.toLowerCase())) reasons.push(`forbidden: ${s}`);
}
return { id: ex.id, pass: reasons.length === 0, reasons };
}
async function main() {
const results = await Promise.all((golden as Example[]).map(score));
const passed = results.filter((r) => r.pass).length;
console.log(`${passed}/${results.length} passed`);
for (const r of results.filter((r) => !r.pass)) {
console.log(` ${r.id}: ${r.reasons.join(", ")}`);
}
if (passed / results.length < 0.85) process.exit(1);
}
main();
That is 30 lines. It runs in CI. It blocks merges when the pass rate falls below threshold. It is not fancy. It is also more eval infrastructure than 80% of LLM teams ship with.
Add LLM-as-judge scoring for the subjective dimensions on top of this. Log scores per-example to a file you can diff between runs. That is the whole loop.
Overfitting to Evals
The failure mode nobody warns you about: optimizing for the eval set and losing real-world performance.
This happened to a team I advised. They had a 200-example regression set, ran it on every change, and over six months their score climbed from 0.72 to 0.91. User-reported issues did not improve at all. The reason: prompt edits had drifted to specifically target the patterns in the eval set, and production traffic had drifted in a different direction. The eval set was a snapshot from six months ago.
Two fixes. First, rotate part of the eval set quarterly — pull in 20% fresh examples from recent prod traffic, label them, and retire the oldest 20%. Second, keep a separate held-out "trust set" that you never look at during development, and only run quarterly. If the trust set score diverges from the regression set score, you are overfitting.
The Takeaway
LLM features without evals are not engineering — they are prompt journalism. You write the prompt, you read it back, you decide it is good. That works at the demo. It does not survive contact with users at scale.
Without evals, every prompt change is a bet. With evals, it is a measurement.