Offline and online evals
Offline evals test an AI feature on a fixed dataset before release; online evals score real production traffic after it.

Offline evals test an AI feature on a fixed dataset before release; online evals score real production traffic after it. A team needs both: the first blocks known regressions, the second finds problems nobody wrote a test for.
Offline evals run on a golden dataset with known answers, so they are repeatable and can block a release, usually in CI next to prompt regression tests. Online evals sample live conversations and score them without a reference answer, using a judge model, user feedback or business signals such as escalations to a human. They depend on LLM observability: traces of what the model saw and said. Every scored conversation adds a judge call, so teams usually score a sample of traffic, not all of it.
Offline catches regressions; online catches what the dataset never contained: new kinds of questions, new documents, a model that changed silently. The common mistake is to stop at offline scores that look good and never compare them with what users experience. Production data also needs care with personal data, see PII redaction, before it lands in an eval tool.
Related terms
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Golden dataset: A fixed set of real inputs with expected answers or checks, used to test an AI feature after every prompt or model change.
- LLM observability: Tracing every model call with inputs, outputs, latency, tokens, cost and the user outcome.
- Prompt regression: An answer that used to be right goes wrong after a change to the prompt or the model.
- LLM as judge: Using a model with a rubric to grade another model’s output.
- Human evaluation: People, ideally domain experts, grading AI outputs against a written rubric; the reference that automated metrics are checked against.
