Offline and Online Evaluation
In this article
- Tell offline evaluation from online evaluation by what each reads, when it runs and what it cannot see.
- Explain why, unless someone labels a trace afterwards, only reference-free graders can run on a real production conversation, and why the online rate is never set beside the release-set score.
- Say which question production monitoring and a controlled experiment each answer, and what neither tells about one reply.
- Terms defined here: offline eval, observability, online evaluation, production monitoring, controlled experiment.
Overview
A new model version passes more of your saved test cases than the old one, so you ship it. A week later a customer reports a refund that should never have happened, worded in a way no test case uses. The tests were green because they only ask the questions somebody wrote down.
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. The company, its pages and its numbers are made up. Its team is testing a switch from model version orbit-flash-2, the baseline, to orbit-flash-3, the candidate.
The map: offline evaluation grades fixed, saved cases before release, so two versions compare on the same questions, but it sees only what someone wrote a case for. Online evaluation grades a sample of real conversations after release, so it sees what customers actually send, but it has no stored right answer and arrives after the customer got the reply. Beside them, production monitoring asks whether the service is healthy right now, and a controlled experiment asks whether a change makes outcomes better for users.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Offline evaluation: fixed cases, before release
- Online evaluation: sampled conversations, after release
- Why a team needs both
- Two more loops: monitoring and experiments
- How the four loops compare
- Common mistakes
- Sources
- Check yourself, 5 questions