By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Someone senior says: 'the chatbot should be accurate and not make things up.' Everybody nods. Nobody can build a test from that. Your job is to turn it into a sentence a computer can check — without losing the intent.
Every usable AI quality goal has four parts. Miss one and the goal is untestable.
| Part | Question it answers | Bad | Good |
|---|---|---|---|
| Property | What are we judging? | It is accurate | Every claim is supported by a retrieved document |
| Metric | How do we score it? | (none) | Faithfulness score, 0 to 1, from a judge |
| Dataset | On what inputs? | (none) | 60 golden questions with known correct sources |
| Threshold | When do we fail? | (none) | Fail if the mean is below 0.85, or any single answer below 0.5 |
Start with: 'Nova should answer questions accurately and not make things up.'
Goal 1 — Groundedness. On the 60-question golden set, the mean faithfulness score must be at least 0.85, and no single answer may score below 0.50. This catches the invented-policy problem directly.
Goal 2 — Refusal correctness. On 15 questions whose answers do not exist in the help centre, 100% must return the refusal message. Zero tolerance, because a confident wrong answer is worse than an honest gap.
Goal 3 — Relevance. On the golden set, mean answer relevancy must be at least 0.80. This catches the bot that is technically accurate but answers a different question — the retrieval-miss failure from Module 1.
This is the most common scoring mistake in AI evaluation. Watch:
Run A: [1.0, 1.0, 1.0, 1.0, 1.0] mean = 1.00
Run B: [1.0, 1.0, 0.0, 1.0, 1.0] mean = 0.80
Run C: [1.0, 1.0, 1.0, 1.0, 0.0] mean = 0.80
Run A ships. Run B has one answer that is completely wrong.
Run C is B with the failure in a different place. Same mean.A mean of 0.80 with one catastrophic zero is a different system from a mean of 0.80 where every answer is slightly imperfect. So the threshold rule needs two parts: a floor on the mean and a ceiling on the worst case. In practice: 'mean ≥ 0.85 AND no answer below 0.5 AND at most 2 answers below 0.7'.
Run the system once, unmodified, and record the actual distribution. This is your baseline, not your target.
Ask what the business consequence of a bad answer is. A wrong shipping estimate is a support ticket; a wrong refund promise is money.
Set the threshold where a customer would notice. Not where the model happens to score today — that is how you get a gate that passes forever.
Review it every quarter. A gate nobody has failed in a year is either excellent or useless, and you should know which.
Key takeaways
A usable goal has a property, a metric, a dataset and a threshold.
Split goals: statistical thresholds for quality, zero tolerance for money, safety and rules.
Averages hide catastrophic single failures — always add a worst-case rule.
Set thresholds from customer impact, then ratchet them up over time.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.