# 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. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/ai-engineer/online-evaluation
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/ai-engineer/tracing-observability), [Regression Testing and Evals in CI](https://www.internhack.in/roadmaps/tracks/ai-engineer/eval-driven-development)

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

- [Langfuse: user feedback and scores](https://langfuse.com/docs/scores/overview) (Langfuse)
- [LangSmith: online evaluation](https://docs.smith.langchain.com/) (LangChain)

Previous: [Tracing and LLM Observability](https://www.internhack.in/roadmaps/tracks/ai-engineer/tracing-observability) · Next: [Prompt Injection and Defensive Design](https://www.internhack.in/roadmaps/tracks/ai-engineer/prompt-injection)

## More in Evaluation and Observability

- [Why and How to Evaluate LLM Apps](https://www.internhack.in/roadmaps/tracks/ai-engineer/eval-fundamentals)
- [Building Golden Datasets](https://www.internhack.in/roadmaps/tracks/ai-engineer/golden-datasets)
- [LLM-as-Judge Graders](https://www.internhack.in/roadmaps/tracks/ai-engineer/llm-as-judge)
- [Regression Testing and Evals in CI](https://www.internhack.in/roadmaps/tracks/ai-engineer/eval-driven-development)
- [Tracing and LLM Observability](https://www.internhack.in/roadmaps/tracks/ai-engineer/tracing-observability)
- [Production Feedback and Online Evaluation](https://www.internhack.in/roadmaps/tracks/ai-engineer/online-evaluation)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [AI Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/ai-engineer)
