Prod Squad

Evals and AI quality metrics

How to define "good", build an eval set, grade outputs, and set a launch bar, which is the core skill of an AI PM.

7 min readAI PM#evals#ai quality#llm as judge#golden set
Ask about this lesson
On this page

In traditional software, you test whether a feature works. With AI, outputs vary and "works" is a spectrum. Evals (evaluations) are how you measure AI quality systematically. They're the closest thing an AI PM has to a spec, and the most important skill to show in interviews.

Why interviewers ask this

"How would you know the AI feature is good enough to launch?" is perhaps the single most common AI PM question. Interviewers want to hear more than "we'd test it". They're looking for a concrete eval set, clear quality criteria, a grading approach, a launch bar, and ongoing monitoring after launch.

The framework

1. Define what "good" means

Break quality into dimensions that matter for this use case:

  • Correctness / accuracy: is the answer right?
  • Groundedness / faithfulness: is it supported by the provided sources (no hallucination)?
  • Relevance / helpfulness: does it address the user's actual need?
  • Completeness: does it cover what's needed?
  • Safety: no harmful, biased or policy-violating content.
  • Tone and format: matches brand and UI requirements. Write a rubric with clear definitions and examples of each score.

2. Build an eval set (a "golden set")

  • 100–500 representative examples to start, drawn from real user data where possible.
  • Cover common cases, edge cases (ambiguous, long, multi-language), and adversarial cases (prompt injection, harmful requests).
  • Where possible, include reference answers or expected behaviours.
  • Keep growing it from production failures.

3. Choose grading methods

  • Code-based checks: format, length, required fields, exact matches. Cheap and reliable.
  • Human grading: for nuanced quality. Use clear rubrics and check agreement between graders.
  • LLM-as-judge: a model grades outputs against the rubric. Scales well, but calibrate it against human grades first and periodically.

4. Set a launch bar

Before testing, agree on thresholds, such as: "≥90% correct on the top 20 intents, ≥95% grounded, 0 critical safety failures, p95 latency <3s." Include segment-level bars so you don't hide failures for important user groups.

5. Use evals continuously

  • Regression testing: rerun on every prompt, model or retrieval change.
  • Compare options: different models and prompts on the same set.
  • Online metrics after launch: thumbs up/down, edit rate, acceptance rate, escalation rate, task completion and retention. Feed failures back into the eval set.

Worked example

Question: "We're launching an AI assistant that answers customer questions using our help centre. How would you decide it's ready to launch?"

Sample answer:

"I'd build an eval system before deciding.

What good means: an answer is good if it's (1) correct, (2) grounded in our help articles with a citation, (3) helpful for the actual question, (4) appropriately says 'I don't know' or escalates when the docs don't cover it, and (5) safe and on-brand.

Eval set: 300 real customer questions from the last three months of tickets: 200 common questions across our top 20 topics, 60 edge cases (multi-part questions, vague questions, other languages), and 40 adversarial ones (asking for refunds the policy doesn't allow, prompt injection, abusive messages). For each, support experts write the ideal answer or the correct behaviour (e.g. escalate).

Grading: automated checks for citations and format; an LLM judge scoring correctness and groundedness against the reference answers, calibrated on 100 examples graded by two support leads, where we require at least 85% agreement with humans; and human review of all safety cases.

Launch bar: ≥90% correct and ≥95% grounded overall, ≥85% in every topic, correct escalation on ≥95% of out-of-scope questions, and zero critical safety failures.

After launch: start with 10% of traffic and a visible 'Talk to a human' option. Track resolution without escalation, thumbs-down rate, and repeat contacts within 48 hours. Every thumbs-down gets reviewed weekly, and new failure types are added to the eval set."

Common mistakes

  • "We'll test it with some users" with no systematic set.
  • Only measuring accuracy, ignoring groundedness, safety and refusals.
  • Trusting an uncalibrated LLM judge.
  • No launch bar agreed in advance.
  • Evals as a one-off, not a regression suite.
  • Averages that hide failures in important segments.

Interviewer tips

What "great" sounds like:

  • "First I'd define what 'good' means for this use case, with a rubric."
  • "The eval set comes from real user questions, including edge and adversarial cases."
  • "I'd calibrate the LLM judge against human graders before trusting it."
  • "Our launch bar is X, agreed before we see results."
  • "Production failures feed back into the eval set every week."

Practice questions

Answer one in a mock interview and get graded instantly.

  1. 1.We're launching an AI assistant that answers customer questions from our help centre. How would you decide it's ready to launch?

    Practice this →
  2. 2.How would you measure the quality of an AI feature that summarises meeting notes?

    Practice this →
  3. 3.What are the risks of using an LLM to grade another LLM's outputs, and how would you reduce them?

    Practice this →

Finished reading?