Skip to content
mentoor

Topic 1 of 5 · 4 min read

Choosing production quality metrics

Goal: Pick production metrics for an LLM feature and name the proxy metric that would mislead.

Measure what the user got done, not what the model produced. A production metric is a number computed from live traffic that tells you whether the feature is working. For an LLM feature, the useful ones sit close to the user's goal, and the tempting ones sit close to the model.

Check yourself · 1 of 3

An email-drafting feature wants one metric that reflects whether drafts are useful. Which is closest to the user's goal?

Choose one answer

Why it matters

Offline evals run on a fixed dataset before you ship. Production traffic is different: new phrasing, new documents, new users. Without production metrics you learn about a regression from a support ticket. With the wrong ones you learn nothing, because a dashboard can stay green while users give up.

How to pick them

Build a small set in four groups and keep each one tied to a decision.

  1. Outcome: task completion rate (did the user finish what they came for), escalation rate to a human, and for drafting tools the edit distance between the AI draft and what was sent.
  2. Quality guardrails: how often an output filter, a schema check or a refusal rule fires. A jump means something upstream changed.
  3. Speed: p50 and p95 latency, and time to first token for streamed answers. Report percentiles, not averages; the slow tail is what users remember.
  4. Cost: cost per completed task, not per request. Retries and agent loops make per-request cost look cheaper than it is.

Slice every metric by prompt version, model, route and user segment. An overall number hides a regression that affects one language or one customer.

Before and after

A support bot team tracks "average conversation length" and is pleased when it falls from 6 turns to 4. Weak metric: shorter can mean faster answers or users giving up.

Weak:   average conversation length (down 33%)
Better: resolved without human handoff within 7 days, plus
        escalation rate, plus reopen rate on resolved tickets

Now a drop in length only counts if resolution holds.

What goes wrong

  • Proxy drift. Thumbs-up rate, response length or a model's self-reported confidence are proxies. Optimising a proxy moves it without moving the goal.
  • Averages over percentiles. A mean latency of 2 seconds can hide a p95 of 15.
  • No denominator. "40 escalations" means nothing without total sessions and the same period last week.
  • One metric alone. Completion up and cost per task tripled is not a win. Pair every target metric with a guardrail metric.

Examples

Drafting assistant for sales emails

The team tracks send-without-edit rate, edit distance of sent emails, guardrail hits (blocked claims about pricing) and cost per sent email. After a prompt change send-without-edit rises from 31% to 44%, but guardrail hits double. The change made drafts more confident and some invented discounts. Without the guardrail metric it would have shipped as a win.

A proxy that misled

A help-centre bot is tuned until its answers get longer and its thumbs-up rate climbs. Escalations to human agents also climb, because long answers bury the one step the user needed. Thumbs-up was the proxy, escalation rate was the outcome.

Key points

  • Choose metrics that sit near the user's goal, such as task completion, escalation and edits to drafts, rather than near the model's output.
  • Report latency as p50 and p95, and cost per completed task rather than per request.
  • Pair every target metric with a guardrail metric so an improvement in one cannot hide damage in another.
  • Proxies such as thumbs rate, answer length or conversation length can move without the real outcome moving.
  • Slice metrics by prompt version, model and segment so a regression in one slice is visible.

Common mistakes

  • Picking whatever the logging tool shows by default instead of a metric tied to a decision.
  • Reporting mean latency and mean cost, which hide the slow and expensive tail.
  • Treating an engagement number, such as messages per session, as proof of quality.
  • Watching one headline metric with no guardrail beside it.

Check yourself · 2 of 3

Mean latency is 2 s, yet users complain the assistant is slow. What should you look at first?

Choose one answer

Check yourself · 3 of 3

A team celebrates because cost per request fell 40% after adding retries and an agent loop. What is the likeliest flaw in that number?

Choose one answer

Practice items, not counted towards your mastery.

Start here