Production Feedback and Online Evaluation

Learn from live traffic with user feedback, sampled grading, A/B tests and a loop that turns production failures into improvements.

Advanced · about 3 hours · difficulty 3/5

Learn first: Tracing and LLM Observability, Regression Testing and Evals in CI

Offline evals tell you whether a change is safe to ship. Online evaluation tells you how the system behaves with real users, who always find cases your dataset missed.

Signals to collect

  • Explicit feedback: thumbs up or down, star ratings, "report a problem". Useful but sparse and biased toward unhappy users.
  • Implicit feedback: did the user copy the answer, retry, rephrase, escalate to a human, or abandon the session? Often more plentiful than explicit ratings.
  • Automated online graders: run cheap checks and an LLM judge on a sample of live traces (for example groundedness or policy compliance) and chart the scores over time.

Experiments

A/B tests route a share of traffic to a new prompt or model and compare business metrics such as resolution rate or conversion. Keep experiments long enough to be meaningful and watch guardrail metrics like cost, latency and complaint rate.

The improvement flywheel

  1. Monitor signals and sample traces.
  2. Categorize failures through error analysis.
  3. Add representative failures to the golden set.
  4. Fix the prompt, retrieval or tools, and verify offline.
  5. Ship behind a flag and confirm online.

Good enough to move on

Your app collects thumbs feedback linked to traces, runs a sampled online judge daily, and you have moved at least five production failures into your offline dataset.

Key concepts

  • Explicit user feedback
  • Implicit behavioural signals
  • Sampled online graders
  • A/B testing prompts and models
  • Feature flags for AI changes
  • Failure-to-dataset flywheel

Mini project

Add thumbs up/down to a chat UI, store feedback with trace ids, run a nightly job that grades 50 sampled conversations with an LLM judge, and produce a weekly failure report.

Check yourself

Why can thumbs-down rate alone be a misleading metric for a support bot?

Free resources