AI Evaluation: Measuring the Complete User Task
📑 On this page
- A concrete example: support assistant
- Begin with a product decision
- Define the unit of evaluation
- Build a representative dataset
- Create clear criteria
- Deterministic checks
- Human evaluation
- Model-based judges
- Reference answers and open-ended tasks
- Retrieval evaluation
- Agent evaluation
- Offline and online evaluation
- Statistical uncertainty
- Failure taxonomy
- Regression suites
- Release gates
- Knowledge check
- The one idea to remember
An AI demo can look excellent because someone chose a friendly prompt and displayed the best response.
A product must work across ordinary, difficult, ambiguous, and adversarial cases.
AI evaluation measures whether the complete system performs representative user tasks well enough across correctness, safety, usefulness, speed, cost, and other explicit criteria.
One overall score rarely captures all of those dimensions.
A concrete example: support assistant
A support assistant should be evaluated on real categories such as:
- account access,
- billing disputes,
- product troubleshooting,
- missing information,
- requests outside policy,
- and urgent safety language.
Reviewers score factual correctness, citation support, completeness, tone, appropriate refusal, escalation, latency, and whether the user reaches resolution.
Begin with a product decision
Evaluation should answer a decision:
- Is the feature ready to launch?
- Did a new prompt improve results?
- Can a smaller model handle this route?
- Which failure category needs work?
- Is quality stable after a source update?
Without a decision, teams collect attractive metrics that may not change what they do.
Define the unit of evaluation
The unit might be:
- one response,
- a multi-turn conversation,
- a retrieved document,
- a completed workflow,
- a tool call,
- or a user outcome.
Choose the level that matches the product. A grammatically good response can still fail if it cites the wrong policy or never completes the requested task.
Build a representative dataset
Sample from expected production traffic, then deliberately add:
- rare but severe cases,
- ambiguous wording,
- missing evidence,
- conflicting sources,
- multilingual inputs,
- long conversations,
- prompt injection,
- and tool failures.
Keep source, category, difficulty, risk, and subgroup labels so results can be sliced instead of averaged into one number.
Create clear criteria
Turn “good answer” into observable rubrics.
For factual support:
- every material claim is supported,
- citations point to supplied sources,
- exceptions are preserved,
- and absent evidence produces uncertainty.
For style:
- answer is concise enough,
- terminology matches the audience,
- and required fields are present.
Rubrics reduce reviewer disagreement and make failures actionable.
Deterministic checks
Use code for properties that code can verify:
- valid JSON,
- required fields,
- allowed citations,
- exact calculations,
- forbidden data,
- tool argument ranges,
- latency,
- token use,
- and cost.
These checks are fast and repeatable. They do not replace judgment about meaning or usefulness.
Human evaluation
Humans are valuable for nuanced correctness, clarity, relevance, tone, and harm.
Use:
- written rubrics,
- calibrated examples,
- blinded model identity,
- multiple reviewers for difficult cases,
- and adjudication for disagreement.
Measure agreement. If trained reviewers repeatedly disagree, the criterion or task may be underspecified.
Model-based judges
A model can grade outputs at scale, compare candidates, or flag cases for review.
But a model judge can have position bias, verbosity preference, domain gaps, and shared blind spots with the system being tested. Validate judge scores against human decisions, randomize ordering, request evidence, and keep deterministic checks where possible.
Treat the judge as another model requiring evaluation.
Reference answers and open-ended tasks
Some tasks have one exact answer. Others have many valid responses.
Use reference answers as evidence and boundary examples, not always as strings to copy. For open-ended drafting, evaluate required facts, prohibited claims, structure, and user usefulness.
Exact text similarity can punish a correct alternative and reward a fluent but unsupported paraphrase.
Retrieval evaluation
For a RAG system, evaluate stages separately:
- was the source ingested,
- was a relevant chunk retrieved,
- was it ranked high enough,
- did the answer use it correctly,
- and did the citation support the claim?
This distinction directs repairs. Generation cannot use evidence that retrieval omitted.
Agent evaluation
For agents, inspect the trajectory as well as the final answer:
- chosen tools,
- call arguments,
- unnecessary steps,
- authorization,
- handling of errors,
- approval,
- and stopping.
An agent may reach the right result through a dangerous action path. Outcome-only scoring would miss that risk.
Offline and online evaluation
Offline evaluation is repeatable and safe before release. Online evaluation observes real behavior through:
- controlled experiments,
- shadow traffic,
- user feedback,
- completion rate,
- escalation,
- corrections,
- and business outcomes.
Production feedback contains selection effects and delayed labels, so interpret it carefully. Combine both forms.
Statistical uncertainty
An observed difference may be noise.
Report sample size, confidence intervals, and performance by category. Use paired comparisons when two systems answer the same cases. Do not declare victory from a tiny benchmark or a fraction-of-a-point change without practical significance.
Failure taxonomy
Label failures such as:
- missing retrieval,
- unsupported claim,
- wrong calculation,
- ignored instruction,
- unsafe action,
- over-refusal,
- poor tone,
- excessive latency,
- or schema violation.
Counts by taxonomy show where engineering effort will matter most.
Regression suites
Every important production incident or discovered edge case should become a test when privacy and policy permit.
Run the suite across changes to:
- model,
- prompt,
- tools,
- retrieval,
- source documents,
- safety rules,
- and application code.
Maintain both fixed regression cases and refreshed samples to avoid overfitting the benchmark.
Release gates
Define minimum thresholds and “must not regress” dimensions before testing. A new version might improve average helpfulness while creating an unacceptable safety failure.
Use staged rollout, monitoring, and rollback. Evaluation supports a release decision; it does not eliminate operational uncertainty.
Knowledge check
- Why is one overall AI score usually insufficient?
- What makes an evaluation dataset representative?
- Which properties should deterministic checks measure?
- How should model-based judges be validated?
- Why evaluate an agent's action trajectory?
The one idea to remember
Evaluate the complete user task with representative cases and explicit dimensions. Combine deterministic checks, calibrated human judgment, validated model judges, stage-level diagnosis, statistical uncertainty, production outcomes, and regression gates.