8 min read

Evaluating an AI Feature: What Good Means in Production

Uptime and error rate are blind to a response that arrives correctly and says something false. Building a 30-example golden set, automated scoring, calibrating an LLM judge, the production signals that beat every offline metric, and what evals will never catch.

AIProduct EngineeringQualityAndroidMetrics
HR

Hessam Rastegari

AI Native Engineer · 12 years shipping Android

TL;DR — Conventional observability cannot see the failure that matters: a well-formed, on-time, wrong response. Build a golden set of 30 real production inputs with expected outputs — thirty is enough to be transformative. Score automatically what's objective (schema, format, required fields, latency, cost), use an LLM judge for the subjective half only after calibrating it against human labels, and weight production signals above all of it — edit rate is the best single quality metric for a generative feature. Gate every model upgrade on the eval. And keep a human reading twenty outputs a week, because evals only measure what you thought to measure.

The measurement gap

The previous post ended on the distinction that matters:

  • Hard failure — timeout, 500, malformed output. Your monitoring catches these. They page someone.
  • Soft failure — HTTP 200, valid JSON, parsed cleanly, and factually wrong or unhelpful.

Every dashboard you already have is built for the first kind. Success rate, p95 latency, crash-free sessions, error budget — all green, all irrelevant, while a meaningful share of users are being told something untrue by your app.

"Did it respond?" and "was it any good?" are different questions, and only one of them is instrumented in a normal Android app.

Start with thirty examples

The word "eval" makes teams imagine a research programme. The useful version is a spreadsheet you build in an afternoon.

| id | input (real, from prod)      | expected                    | notes        |
|----|------------------------------|-----------------------------|--------------|
| 01 | receipt_8842.jpg             | Tesco, £42.18, 2026-09-14   | faded print  |
| 02 | receipt_1190.jpg             | needs manual entry          | torn         |
| 03 | receipt_4407.jpg             | Costa, £3.60, 2026-09-02    | handwritten  |

Rules that make it work:

  • Real inputs. Synthetic examples are too clean and they hide every interesting failure — the same reason fake data ruins a tool's first hour.
  • Include the cases that should fail. Row 02 above is doing as much work as the rest. A feature that never says "I can't do this" is a feature that guesses.
  • Thirty is enough to start. Grow toward 200, but grow it from failures you actually observed, not from imagination.
  • Version it in the repo, next to the code, so a model change and its eval results land in the same PR.

Score the objective half automatically

Free, deterministic, and it catches more than you'd expect:

data class Score(
    val parsed: Boolean,          // did it deserialize
    val schemaValid: Boolean,     // required fields present
    val exactMatch: Boolean,      // for structured extraction
    val latencyMs: Long,
    val costMicros: Long,
)

For structured extraction — receipts, forms, entity pulling — exact match on the fields is a genuine correctness metric and you're most of the way done. For open-ended generation it isn't, which is where the next section comes in.

Latency and cost belong in the same run. A model change that improves quality 2% and triples latency is a regression, and you want that visible in one table rather than discovered after rollout.

LLM-as-judge, honestly

For subjective output — a summary, a rewrite, an explanation — you can have a model grade the output against a rubric. It works, and it comes with a caveat you have to respect.

Rate this summary 1–5 against the source article:
- Does it capture the main claim?
- Is anything asserted that isn't in the source?
- Is it under 60 words?
Reply with a number and one sentence.

Calibrate it before you trust it. Label 30 outputs by hand, run the judge on the same 30, and measure agreement. Typical results land around 80%, which is useful for tracking a trend and useless as an absolute number.

Known biases worth compensating for: judges prefer longer answers, prefer output from the same model family, and are more generous when the rubric is vague. Tight, specific rubrics score more consistently.

An uncalibrated judge is worse than no judge, because it produces a number that makes you feel measured while telling you nothing.

Production signals beat every offline metric

Your golden set is a proxy. Real users are not.

Edit rate — how often a user modifies the generated output before accepting it. The single best quality signal for a generative feature, because nobody edits something that was right, and it needs no extra UI: you already have the text field.

Regeneration rate — they hit "try again". An explicit statement that the first answer was inadequate.

Abandonment — they left mid-generation or immediately after. Distinguish it from a slow-latency exit, which is a different problem.

Explicit rejection — a thumbs-down or a "report" tap. Low volume, very high signal, and every one should land in the golden set with its input attached. That's the loop that makes the whole system improve: production failure → golden set → caught next time.

Fallback rate — how often you served the deterministic path instead. Rising fallback rate is your earliest warning that something upstream changed.

Gate upgrades on the eval

Pinning your model version — the previous post's rule — buys you nothing if you bump it casually.

Model upgrade checklist
  1. Run the golden set on both versions
  2. Diff: quality, latency, cost, per-category
  3. Investigate every regression, not just the average
  4. Staged rollout, watch edit rate and fallback rate
  5. Keep the previous pin ready to revert

Step 3 matters most. An upgrade that improves the average by 4% while getting materially worse at handwritten receipts is not an improvement — it's a trade you should make consciously, if at all. Averages hide regressions the same way they hide bad streaming nights.

What evals will never catch

They measure what you thought to measure. The novel harm, the unexpected tone, the output that's technically correct and completely inappropriate for the context — none of that is in your rubric, because if you'd thought of it you'd have handled it.

So keep two things no automation replaces:

  • A human reading twenty real outputs a week. Not aggregated. The actual text. This is the only mechanism that reliably surfaces the category you didn't anticipate, and it takes fifteen minutes.
  • A user-facing report channel that a person actually reads. Cheap, and it's the only path for a failure mode nobody on the team imagined.

What good looks like

Not a score. A set of answerable questions:

  • Can you say, in one number, whether last week's model change made the feature better or worse?
  • Is your golden set growing from real failures?
  • Do you know your edit rate, and did it move?
  • Has a human read real output this week?
  • If the provider silently changed the model tomorrow, how long until you noticed?

That last one is the test of the whole system. If the answer is "when someone tweets about it", none of the rest is running.

The rule

If you can't say what good means, you can't ship it responsibly — and "HTTP 200" is not what good means. Thirty real examples, automatic scoring for the objective half, a calibrated judge for the rest, edit rate as your north star, and a human still reading the output. Then a model change becomes a measurable decision instead of a hope.

Keep reading