Sub topic 3
Choosing the quality dimensions that matter
This chapter assumes you have already framed the user problem and scope of your AI feature. It also assumes you know why nondeterministic output means you describe a distribution of behavior and not one exact answer. Here you decide which aspects of the output you will measure. Later chapters turn those aspects into failure modes, requirements, and graders.
What a quality dimension is
A quality dimension is one named aspect of an output that you can judge separately from the others. "Good answer" is not a dimension, because two reviewers can disagree on what it means. "The answer makes only claims supported by the retrieved policy text" is a dimension. It is narrow enough that a grader can assign a verdict.
Dimensions matter because an AI feature can fail in one aspect while succeeding in all the others. A support assistant can be fluent, polite, and fast, and still invent a refund deadline. If you track one blended "quality" score, the fluent text hides the invented deadline. Separate dimensions keep each kind of failure visible.
Running example: a support assistant that answers refund questions using retrieved policy documents. The feature is scoped to refund policy only. Other examples in this chapter come from the same feature.
A catalog of common dimensions
Most AI features draw from a small set of dimensions. Treat this table as a menu to choose from, not a checklist to complete.
| Dimension | Question it answers | Typical measurement |
|---|---|---|
| Correctness | Is the answer factually right? | Compare to a reference answer or expert label |
| Groundedness | Is every claim supported by the provided source? | Model judge or human check against retrieved text |
| Completeness | Does it cover everything the user needed? | Checklist of required points per case |
| Relevance | Does it address the question that was asked? | Human or model rating |
| Safety and policy compliance | Does it avoid prohibited content or commitments? | Forbidden-phrase checks, classifier, human review |
| Appropriate refusal | Does it decline when it should, and only then? | Labeled should-refuse and should-answer cases |
| Format validity | Does the output match the required structure? | Schema or regex check in code |
| Tone and style | Does it match the brand voice and reading level? | Human rating or rubric-based judge |
| Consistency | Does a rephrased question get the same substance? | Compare answers across paraphrases |
| Latency | How long does the user wait? | Timing, reported as percentiles |
| Cost | What does each request cost? | Token counts times price |
The first eight describe the content of the output. The last two describe how the system behaves around the output. Both kinds belong in your requirements, but they are measured differently. Content dimensions need graders that judge text. Latency and cost need only instrumentation.
Correctness versus groundedness
These two are often confused, and the difference matters in retrieval-based features. Correctness asks whether the claim is true in the world. Groundedness asks whether the claim is supported by the source the system was given.
Consider these cases:
- The retrieved policy says "30 days," and the answer says "30 days." The answer is correct and grounded.
- The retrieved policy is outdated and says "30 days," while the real policy is now 14 days. The answer "30 days" is grounded but not correct. The fault lies in the source, not the model.
- The retrieval returned nothing relevant, and the model says "30 days" from its general knowledge. The answer happens to be correct but is not grounded. It is luck, and it will fail on the next question.
Because the causes differ, the fixes differ. A groundedness failure points to the prompt or the model. A correctness failure with good groundedness points to your content. Measuring both lets you tell which one broke.
Over-refusal is a dimension too
Teams often add a safety dimension and measure only whether the system refuses bad requests. That rewards a system that refuses everything. Pair the dimension with its opposite: of the requests the assistant should answer, how many does it answer? Appropriate refusal has two sides, and a requirement should cover both.
Choosing from the catalog
You do not measure every dimension. Each one you add needs a dataset slice, a grader, a threshold, and ongoing maintenance. Choose with these steps.
- Start from the user problem. Ask what a user needs to be able to rely on. For refund questions, the user needs a correct amount and deadline.
- Ask what hurts when each dimension fails. A wrong deadline can cost the user money and the company a dispute. A slightly stiff tone costs little.
- Check whether you can measure it. A dimension with no workable grader is a wish. Either find a method or defer the dimension.
- Drop dimensions the architecture already guarantees. If a JSON schema is enforced by constrained decoding, you may need only a light format check.
- Assign a priority tier.
Priority tiers
Three tiers are usually enough:
- Must-have: failure blocks release. These dimensions get explicit thresholds and, where harm is serious, zero-tolerance rules.
- Should-have: failure triggers a fix, but a small shortfall does not block release.
- Monitor only: you track the value and watch for drift, with no threshold yet.
For the refund assistant, a reasonable assignment looks like this.
| Dimension | Tier | Reason |
|---|---|---|
| Groundedness | Must-have | A made-up deadline causes direct harm |
| Correctness of amounts and deadlines | Must-have | Users act on these numbers |
| Appropriate refusal | Must-have | The feature must stay inside refund scope |
| Completeness | Should-have | Missing a minor condition is fixable |
| Tone | Should-have | Matters to brand, not to safety |
| Latency | Should-have | Slow answers hurt, but a slow answer is still a usable one |
| Consistency across paraphrases | Monitor only | Useful signal, no baseline yet |
Writing each dimension down as a definition
A dimension name alone leaves room for disagreement. Write a one-sentence definition and an example of a pass and a fail. This definition becomes the input to the requirement statements in the next stage and to any grader rubric.
For groundedness in the refund assistant:
- Definition: every factual claim in the answer appears in, or follows directly from, the retrieved policy text.
- Pass: "You can return unworn items within 30 days," when the policy says so.
- Fail: "You can return items within 60 days," when the retrieved text says 30.
- Edge: "I can't find that in the policy." This is groundedness-safe, though it may fail completeness.
The edge case shows how dimensions interact. An answer can pass one and fail another, so grade each separately.
Dimensions pull against each other
Improving one dimension often lowers another. Know the common tensions before you set thresholds.
- Completeness versus brevity. A longer answer covers more conditions and is harder to read.
- Safety versus helpfulness. A stricter refusal rule cuts risky answers and also blocks legitimate ones.
- Quality versus latency and cost. A larger model or an extra verification step improves accuracy and slows the response and raises its cost.
- Consistency versus naturalness. Forcing near-identical answers across paraphrases can make responses feel canned.
State which side wins when they conflict. For example: "When completeness and brevity conflict, the answer must still include the deadline and any exclusions, even if it runs past three sentences." That is a decision your team made once instead of rediscovering in every code review.
Recording the dimension profile
It helps to keep the chosen dimensions in a small machine-readable file next to the evaluation set. The following Python snippet defines a profile and checks that every must-have dimension has a stated measurement method. Run it as shown.
DIMENSIONS = {
"groundedness": {"tier": "must_have", "method": "model_judge"},
"amount_deadline_correctness": {"tier": "must_have", "method": "code_check"},
"appropriate_refusal": {"tier": "must_have", "method": "labeled_cases"},
"completeness": {"tier": "should_have", "method": "checklist"},
"tone": {"tier": "should_have", "method": "human_review"},
"latency_p95": {"tier": "should_have", "method": "timing"},
"paraphrase_consistency": {"tier": "monitor", "method": None},
}
def unmeasurable_must_haves(dimensions):
return [
name
for name, spec in dimensions.items()
if spec["tier"] == "must_have" and not spec["method"]
]
problems = unmeasurable_must_haves(DIMENSIONS)
print("Must-haves without a method:", problems)The output is an empty list for this profile. If you set a must-have's method to None, the function names it. That is the signal to find a grader or move the dimension out of the must-have tier.
Common mistakes
- Choosing too many dimensions. Ten dimensions with thin data give noisy results. Start with three to five.
- Choosing by what is easy to measure. Format validity is simple to check in code, so it gets measured, while the groundedness problem that actually hurts users goes untracked.
- Using vague names. "Quality," "accuracy," and "helpfulness" without a definition produce graders that disagree.
- Blending dimensions into one score too early. Average scores let a strong dimension cover a failing one. Keep dimension-level results visible, and combine them only in the release decision.
- Forgetting the system dimensions. Latency and cost limits can make an otherwise good design unshippable.
Summary of the working model
A quality dimension is a separately judgeable aspect of output. You pick dimensions by tracing from user harm, keep only those you can measure, and sort them into must-have, should-have, and monitor tiers. Each gets a one-sentence definition with pass, fail, and edge examples. You decide in advance how conflicts between dimensions are resolved. The result is a short profile that the next stages convert into failure modes and testable requirements.
Exercise
A travel-booking assistant summarizes a user's itinerary and answers questions about it using the booking record. List three dimensions you would make must-have, and for one of them write a one-sentence definition with a pass example and a fail example. Then name one tension between two of your chosen dimensions and say which should win.
Show answer
A reasonable answer: (1) groundedness, since every stated date, time, and booking reference must come from the booking record; (2) correctness of dates, times, and prices, since users act on them; (3) appropriate refusal, so the assistant does not invent changes or cancellations it cannot perform. Definition for groundedness: every factual claim in the answer appears in, or follows directly from, the booking record. Pass: "Your flight departs at 09:40 on 3 March," when the record says so. Fail: "Your flight departs at 10:40," when the record says 09:40. A valid tension: completeness versus brevity, where a full summary of connections, baggage rules, and times becomes too long for a quick question. Brevity should lose for dates, times, and booking references, which must always be included, while other detail can be trimmed. Any well-reasoned tension with a stated winner is acceptable.