Evaluating LLM Outputs Without Guesswork
· 19 min read
Leaderboard accuracy does not protect your checkout flow. Staff engineers define product properties—grounding, schema validity, refusal quality—build versioned golden sets, run deterministic graders in CI, sample humans for nuance, and block releases when critical properties regress against a signed scorecard.
Define the properties that matter
Generic "helpfulness" scores rarely map to business risk. Start from promises the product makes: answers must cite allowed sources, booking assistants must not invent inventory, support copilots must refuse account takeover, and mobile clients must receive JSON that parses on the first try.
Write each property as a measurable check with an owner. Grounding might require citations from an allow-listed index. Tone might be a classifier with a calibrated threshold. Latency belongs on the same scorecard when streaming UX is part of the contract.
Different features need different gates. A marketing summarizer tolerates creative phrasing; a tax helper does not. Split evaluation suites by user journey instead of one mega benchmark that greenlights everything.
Product, legal, and engineering should sign the scorecard before prompts ship. When priorities conflict, the written property list wins—not whichever PM shouted last in Slack.
Document negative cases explicitly: prompts that must refuse, schemas that must fail closed, and locales where English leakage is unacceptable. Evaluation without "must not" cases ships confident wrong answers.
Revisit the scorecard when you add tools, new locales, or a pricing tier with stricter compliance. Static lists rot quickly in AI products; tie scorecard reviews to roadmap milestones instead of annual calendar reminders alone.
Build a living golden dataset
Golden sets are curated examples with expected outcomes—not random production dumps. Collect cases from support escalations, red-team sessions, failed deployments, and edge cases found in QA. Strip or syntheticize personally identifiable information; version the dataset beside prompts, model ids, and tool schemas.
Include adversarial and ambiguous inputs. Suites that only cover happy paths approve regressions on the failures that destroy trust. Tag each row with severity: blocking, major, minor. Release policy should reference severity, not a single accuracy number.
Separate offline suites from online sampling. Offline sets gate merges; online shadow traffic catches drift when users invent phrasing your suite never imagined. Feed high-severity online failures back into gold within days, not quarters.
Track coverage by journey: onboarding, paywall, settings, deletion. A green global score with zero cases for account deletion is a compliance trap waiting for audit season.
Pair each golden row with the property ids it exercises so teams know which checks regress when a slice fails. Blind aggregate accuracy hides that grounding improved while refusal quality collapsed.
Store golden sets in git with reviewable diffs. When product changes a promise, the pull request that edits marketing copy should also edit golden expectations—or CI will keep approving the old world.
Automate the boring, review the subtle
Schema validation, regex deny lists, citation presence, JSON parse checks, and token budgets belong in automation—they should run on every pull request that touches prompts, tools, or retrieval configuration. Nuanced qualities such as empathy or persuasion still need periodic human review to calibrate the automated graders.
Compare against the previous baseline, not an imaginary perfect model. The question is whether the change made the product safer for the users you serve this week. Regression thresholds should be tighter on blocking properties than on cosmetic tone.
When automated graders disagree with humans, fix the grader or the rubric—not the human by default. Drift between human judgment and automation is a leading indicator that prompts changed without evaluation noticing.
Log grader failures with prompt hash, model version, and retrieval snapshot id. Reproducing eval failures without that triangle wastes days. Store artifacts in the same retention tier as deployment logs, not in a engineer's laptop export.
Use stratified sampling for human review: more rows from new locales, new tools, or recently changed clusters. Uniform random sampling underweights the riskiest diffs.
Budget human review hours like on-call: a recurring slot each week beats a heroic pre-release marathon. Reviewers need the same property rubric engineers use in automation so disagreements shrink over time.
Close the loop after launch
Production invents language your suite never wrote. Instrument thumbs-down, edit distance on user corrections, escalation to human agents, task completion, and refund rates tied to AI-assisted flows. Spikes should open eval tickets automatically when they cross agreed thresholds.
Pair qualitative review with telemetry. A flat satisfaction score can hide systematic hallucinations on one payment method or one locale prefix. Slice metrics by `locale`, feature flag, and model route.
Run periodic replay jobs: sample production prompts (redacted) through the current stack and diff against stored outputs. Silent behavior changes from vendor-side model updates show up here before social media does.
Close the loop into CI: every production incident with severity ≥ major adds at least one golden row before the postmortem is marked done. Otherwise evaluation becomes a launch ritual instead of an immune system.
Publish eval debt beside bug debt. Leadership should see when open grader gaps exceed one sprint—same as production crash backlog.
Align replay sampling with privacy policy. Redacted production prompts still need legal basis and retention caps; observability for models is not exempt from data minimization.
Regression gates in CI
Treat evaluation like unit tests for nondeterministic components. Wire `pnpm test:eval` (or your equivalent) into the same merge queue as typecheck. Fail builds when blocking properties drop more than a configured delta versus `main`.
Keep eval jobs fast enough that teams run them locally. Shard large suites; cache embeddings for golden inputs; pin model versions in CI with recorded fallbacks when vendors deprecate snapshots.
Flaky evals are as toxic as flaky E2E. Quarantine nondeterministic cases with owners and deadlines. Do not widen thresholds to greenwash a release train. A flaky grader teaches the same habit as rerunning mobile UI tests until luck wins instead of fixing synchronization.
Document which properties are merge-blocking versus nightly-only. Mobile Expo teams often need a ten-minute PR subset and a fuller nightly job on real device matrices—eval cadence should mirror that split.
Store eval results as artifacts: score tables, failed rows, and diff snippets. Reviewers should see *why* CI failed without re-running a GPU job locally.
When eval CI fails on main, block downstream deploy workflows automatically. Teams that can ship UI while eval stays red will eventually ship a model change nobody tested against golden rows.
Model graders and rubrics
LLM-as-judge can scale review if rubrics are tight and calibrated. Give graders structured outputs: pass or fail per property, short rationale, and citations to source spans when grounding is checked. Temperature should be low; reasoning effort medium for consistency.
Never let the judge model share credentials with the system under test. Isolate judge calls in a separate project with spend caps. Prompt injection in the candidate answer must not escalate judge tools.
Calibrate judges against human-labeled rows quarterly. Report precision and recall per property. When judges systematically forgive refusals, tighten rubrics before the next launch.
Combine model graders with deterministic checks. Judges excel at nuance; regex and JSON schema excel at binary contracts. Stacks that use only judges inherit judge hallucinations.
For multilingual products, run judges in the target locale or use cross-lingual embedding checks plus language-id gates. English judges on Turkish outputs miss register mistakes users feel immediately.
Track judge spend per property. Teams that optimize cost by shrinking judge context often accidentally drop citations needed to score grounding—watch token budgets as closely as model routes.
Risk-based release criteria
Not every change needs the full suite. Typo fixes in UI copy might skip model eval; prompt changes affecting billing or medical disclaimers should run blocking suites plus human sign-off. Encode tiers in CODEOWNERS or release checklists.
Map tiers to rollback plans. When a tier-1 property regresses in canary, automated rollback beats debating whether the metric is noisy. Pair eval gates with feature flags and kill switches documented elsewhere.
Partial locale launches need per-locale scorecards. Passing English while Turkish refusal quality regresses is how you ship English confidence under `lang="tr"`.
Record waivers with named approvers, expiry, and compensating controls. "We skipped eval because Friday" should not be searchable in chat—it should be a tracked exception with a fix date.
Align eval tiers with mobile store submission windows. Blocking regressions discovered during App Store review should add golden rows before the resubmit, not after the one-star reviews arrive.
Document which tiers require security or legal sign-off in the same checklist developers see in CI logs. Hidden approvers become bottlenecks only when the train is already rolling.
Operational checklist for LLM evaluation
Before merge: property scorecard updated, golden set version bumped, blocking graders green, artifacts uploaded. Before prod: canary eval slice green, online sampling armed, on-call knows which flags disable the feature.
Weekly: review quarantined cases, human calibration sample, eval coverage by journey, vendor model change notes. Monthly: red-team new tools and locales; retire stale golden rows that no longer match product behavior.
Every eval failure in prod gets a row in the golden set or a documented waiver—never both empty. Audit trails should show which model, prompt hash, and retrieval index version produced the bad output.
Expo and React Native clients should include client-side schema checks where possible so eval catches bad payloads before they crash offline-first stores.
When evaluation blocks a release, product must know the user-visible symptom, not only the metric name. Tie scores to support macros and in-app error copy so fixes are verifiable by non-ML engineers.
Run fire drills: simulate a blocking eval failure during a staged release and measure time to rollback. If rollback takes longer than fixing forward, eval gates will get bypassed culturally even when CI stays red.
Frequently asked questions
Is accuracy enough as a single metric?
When is LLM-as-judge acceptable?
How do we keep eval CI fast enough for PRs?
How fast should production failures enter the golden set?
Sources
- OpenAI — Evaluation guide — openai.com
- Anthropic — Evaluate prompts — anthropic.com
- NIST — AI Risk Management Framework — nist.gov
- OpenTelemetry — Documentation — opentelemetry.io
Related on this site
Related service
AI-powered product development
Ship AI features to production: tooling, retrieval, evaluation, safety boundaries, and operable backends.
Published on January 28, 2026 by Berktug Berke Ates.