At a glance
- Sampling answers whether outputs look plausible; evaluation answers whether the service meets a bar.
- Stratify by task and failure mode, not by convenience.
- Automate what can be checked mechanically; reserve humans for judgment.
- Monitor a live canary set continuously, and re-baseline whenever the provider changes.
Most teams have a quality process that consists of reading outputs occasionally. Someone opens a few responses, decides they look fine, and closes the tab. That is sampling, and it is useful. It is not evaluation, and treating it as evaluation is how a service drifts below its bar without anyone noticing until a customer does.
The distinction matters more as token services grow. At scale, the question is not whether any single output is plausible. It is whether the share of acceptable outputs is within the agreed range, for each kind of task, under the traffic the service actually receives.
Two different questions
Sampling helps answer: what does this look like? Evaluation answers: does it meet the bar? The first supports exploration and prompt design. The second supports a contract, a release decision and a renewal conversation.
Both are legitimate. The mistake is using the first as evidence for the second, or reporting an average across tasks that have different failure costs. A model that is excellent at summarization and weak at structured extraction can look fine in a convenience sample and fail an acceptance run.
Stratify by task and failure mode
The unit of measurement is not the output; it is the output in context. Build the evaluation set as strata: task type, input length, language, format requirement and known failure modes. Score each stratum separately, then aggregate with weights that reflect production traffic.
- Task type. Extraction, summarization, classification, generation and tool use fail differently.
- Input shape. Long context and short context exercise different parts of the stack.
- Format requirement. JSON validity, field completeness and refusal rules are mechanical and should be checked mechanically.
- Known failure modes. Every product has a handful: unit confusion, missed negation, fabricated citations. Give each one a dedicated test.
Automate the mechanical, route the judgment
A large share of quality can be checked without a human: schema validation, required fields, length bounds, citation presence, banned phrases, numeric consistency. These checks are cheap, deterministic and runnable on every release.
Judgment — correctness, usefulness, tone, safety in context — needs either a human or a carefully validated grader. The practical design is layered: automated checks run first and route the uncertain cases to human review. The graders themselves need periodic calibration against human labels, or they become a second source of drift.
Measure what production sees
Evaluation sets are cleaner than production traffic. That is their value and their limitation. A fixed set catches regressions; a production sample catches distribution shift. Run both.
Keep a small canary set of prompts inside live traffic, scored continuously, with alerts when the pass rate moves beyond its normal band. Keep the main acceptance suite for release gates and monthly checks. The canary is an early warning; the suite is the decision. For the release side, see A Quality Bar You Can Test.
Report the numbers that drive decisions
A quality report should be short and comparable over time. Four numbers do most of the work: pass rate by stratum, retry rate, format-validity rate and tail completion rate under load. Add the evaluation-set version and the provider configuration snapshot, or the numbers cannot be attributed to anything.
For the cost implications of a changing pass rate, see The Cost of a Bad Token. For how effective tokens turn pass rates into economics, see Measuring Effective Tokens.
What we watch
- Whether quality reports separate strata or report a single average.
- Whether automated checks are validated against human judgment.
- Whether the evaluation set and configuration snapshot are recorded with each run.
- Whether production traffic is monitored between formal evaluations.
Sampling is how a team develops intuition. Evaluation is how it makes commitments. A token service contract should be based on the second, with the first used to decide what to test next. The difference is not academic; it is the difference between a quality bar and a quality opinion.
Questions buyers ask
What is the difference between sampling and evaluation?
Sampling inspects outputs to form an impression. Evaluation applies a fixed set, a scoring rule and a threshold to decide pass or fail. Sampling can suggest a problem; evaluation decides whether the service met its bar.
Can automated graders replace human review?
For mechanical properties such as schema validity, required fields, length and citation presence, yes. For judgment about correctness, tone or usefulness, automated grading is a filter that routes cases to humans, not a replacement for them.
How do we detect quality drift between formal evaluations?
Keep a small canary set in production traffic and score it continuously. It will not replace the full acceptance suite, but it gives an early signal when something changes between scheduled runs.