CertPrep
Domain 5 · Lesson 5.3 · 6 min read

Measuring Quality on Live Traffic

Exam skillOnline Quality Measurement

Analyzing quality on live production traffic using online evaluation techniques, including live-traffic sampling, A/B testing, feedback loops, and metric selection matched to task type (extraction, generation, agentic, retrieval-grounded).

Measure quality on live traffic with representative sampling, A/B tests with planned duration and guardrails, shadow and canary evaluation, feedback loops into the evaluation suite, and metrics chosen for the task type.

What you need to know

Offline evaluation reduces the risk of a change; online measurement shows whether it helped real users. Live traffic brings inputs the suite never had, and changes that look neutral on one metric can hurt another, such as resolution rate unchanged but answers so long that users take longer to finish. Online quality measurement needs representative samples, sound experiments and metrics that fit the task.

Sampling live traffic

  • Random, across the whole day, stratified by key segments (region, route, tenant tier, language). Sampling the first conversations of each hour over-represents one time zone.
  • Large enough to detect the change that matters when comparing a release's cohort with the previous version's.
  • Within segments when traffic mix shifts: a 6% drop on the day a large customer onboards 4,000 users may be a population change, not a regression.

Metrics by task type

Task typeOnline metrics
ExtractionField-level accuracy on sampled documents checked against verified values; downstream correction rate
Retrieval-groundedGroundedness of sampled answers against the retrieved sources; no-evidence rate
AgenticShare of work accepted without major rework; reverts or failures after acceptance; cost per successful task
GenerationRubric pass rate from a calibrated judge; user effort (follow-ups, edits)

Fluency ratings for structured fields, word counts and "mentions tests" are not quality metrics.

Feedback signals

Thumbs up and down are valuable but sparse and self-selected (often 1 to 2% of users, skewed to frustrated ones). Use them to flag problems and find examples, alongside a sampled, rubric-based evaluation that estimates quality without that bias. Prompting users more often changes who responds, not the bias.

A/B tests

PracticeWhy
Plan the duration to cover traffic cycles (for example two weeks)Weekday and weekend behavior differ
Do not stop early when a variant looks goodPeeking inflates false positives
Declare a primary metric and guardrail metrics with limits before startingPrevents choosing the favorable metric afterward
Check assignment balance across key segmentsA large tenant landing in one arm biases the result
Combine outcomes into cost per successful outcome where trade-offs existMakes completion versus escalation trade-offs explicit

Shadow and canary

To compare a candidate without exposing many users:

  • Shadow: run the candidate on live queries and score its answers offline without showing them.
  • Canary: a small share of traffic with guardrail metrics and automatic rollback.

A full switch for a day, compared with the previous day, exposes everyone and confounds the result with the day.

Feedback loops into the suite

Flagged conversations go to a review queue where reviewers confirm the failure and its category; confirmed failures join the evaluation suite with the expected behavior written down. Adding every thumbs-down automatically adds noise and mislabels, and teams do not retrain Claude from their own feedback, so the loop improves prompts, tools and the suite.

In the exam

Online-quality items describe a live measurement or experiment and a decision. Check the sample (representative?), the experiment (planned duration, guardrails, balance), and the metric (fits the task?). Distractors ship on one day's data, trust sparse ratings as the main metric, sample by convenience, measure fluency for extraction, or switch all traffic to compare.

Check your understanding

Question 1

After one day, variant B shows 4% more bookings. Weekend traffic differs and the test was planned for two weeks. What should the team do?

Show answer

Answer: D. Stopping early on a good day inflates false positives, especially with known day-of-week effects.

Question 2

Which two online metrics fit a document-extraction service?

Show answer

Answer: B. Extraction quality is field-level correctness against truth, plus how often people correct it downstream.

Question 3

Only 2% of users click thumbs up or down, mostly frustrated ones. How should the team use this?

Show answer

Answer: A. Sparse feedback flags problems and examples; an unbiased estimate needs representative sampling.

Apply it: Measure Tidewater's prompt change on live traffic

Exercise · about 25 minCase: Tidewater Analytics

Tidewater's last prompt change shipped to all tenants at once and two large tenants complained that answers ignored dashboard filters. The next change adds better filter handling. Offline evaluation passed. Product wants proof it helps before it reaches every tenant.

  1. Design the experiment, including assignment and duration.
  2. Choose the primary and guardrail metrics.
  3. Describe the sampling for quality scoring.
  4. Explain how flagged conversations feed back into the suite.
Check your work
Show model answer

1. Experiment. Shadow the new prompt for three days on live queries (scored offline, not shown). If it holds, A/B test with assignment by tenant, stratified by plan so each arm has the same mix of Starter, Business and Enterprise tenants, for two full weeks. Balance is checked on day one.

2. Metrics. Primary: share of sampled answers that respect the dashboard's active filters (rubric check by a calibrated judge). Guardrails, declared in advance: groundedness (no drop over 2 points), p95 latency (no rise over 10%), cost per answer (no rise over 10%), escalation rate.

3. Sampling. 1,500 answers per arm per week, random across the day, stratified by plan and language, with extra sampling of answers on dashboards with three or more filters.

4. Feedback. Thumbs-down and support tickets that mention filters go to a review queue; reviewers confirm the failure and category, and confirmed cases join the evaluation suite with the expected answer. The weekly sample's failures are reviewed the same way.

Sources