Offline evals run an LLM system against a fixed dataset in CI or development. Online evals score live production traffic with real signals. Teams that run both can tell whether a change helped.
Offline evals: a fixed test set, scored
An offline eval starts with a labeled, curated test set that represents the capabilities you want to measure. You run the system on each input, then score the outputs. Scoring methods include exact-match comparison, regular expressions, or another LLM acting as judge. Aggregating the scores gives a pass rate per capability, which shows strengths and weaknesses in a controlled setting.
Offline evals work like unit and integration tests. They run against fixed inputs, so a regression shows up before release. LLM output is non-deterministic and open-ended, though, so scores usually form a distribution instead of a single pass or fail.
Online evals: sampled live traffic
Online evals sample production interactions and score them with automated judges. They also use user signals such as thumbs up or down, edits and retries. Teams track product metrics like task completion and deflection rate, often alongside A/B tests that measure the effect of a change. This resembles production monitoring and product analytics.
Online evals catch drift and edge cases that the offline set misses. Failures found online should go back into the offline set, so the next release is tested against them.
- Assemble a curated test set for offline evals.
- Run the system and score outputs with graders.
- Sample live traffic for online evals.
- Collect user feedback and product metrics.
- Feed online failures back into offline tests.
Which eval to run at which stage
| Question | Offline eval | Online eval |
|---|---|---|
| Input | Fixed, curated dataset | Sampled live traffic |
| When it runs | Development and CI | In production |
| Catches | Regressions on known capabilities | Drift and edge cases the dataset lacks |
| Signals | Exact match, regex, LLM judge | Judges, thumbs, edits, retries, completion and deflection rates |
Checking a few examples by eye, or running vibe checks, stops working as the number of examples grows and it misses subtle regressions. Evals turn those impressions into numbers you can track over time, so a prompt or parameter change can be judged as better or worse. Mature teams use both kinds and use online findings to expand the offline set.
Example scenario: satisfaction drops while offline evals pass
Suppose online evals show a 15% drop in user satisfaction. One likely cause is a mismatch between the offline dataset and live use: the model fits the offline set but generalizes poorly to the varied language and context of live queries.
- Plot satisfaction scores over time to find when the decline began.
- Compare recent offline results with the online drop to look for a gap.
- Read the logs for common themes in negative feedback to find specific failure modes.
The remedy is to revert to the previous model version and retrain with a more representative dataset. The cost is losing the new features or improvements in the meantime. Watch satisfaction scores for recovery.