1. Comparing versions and catching regressions
Comparing versions means running the old and the new prompt, model, or fine-tune on the same eval set and checking, criterion by criterion, whether the new one is really better and breaks nothing. The principle: pair each example's old and new result, look at the examples where the two disagree, check that the difference is bigger than the noise you get from rerunning the same version, and block the change if an important criterion drops. Use it before shipping any prompt, model, retrieval, or fine-tune change, and on every pull request that touches the prompt or model config.
It is not the right tool when the effect only shows with real users, such as whether people come back. That needs an online A/B test. If your eval set is too small to detect the difference you care about, grow the set before you compare.
The interview question is almost always the same: "We changed the prompt. The new version scores 3 points higher on 200 examples. Is it really better, and can we ship it?" Candidates who compare one run of one blended score lose points here. We'll answer it for HelpDesk Assistant, the course's support assistant that answers from help-center articles and, in agent mode, can look up accounts and issue refunds, building on the evaluation overview in LLM Engineering 101.
A mid-level answer runs both versions on the same set, reports a delta per criterion, repeats runs to see the noise, and keeps a regression suite in continuous integration (CI). A senior answer adds a paired test with real numbers, an interval on the difference, an estimate of how many examples the comparison needs, and a written ship rule that weighs severity, cost, and latency.
Discussion
Upgrade to premium to read and join the discussion.