Regression eval
Definition
An eval run automatically on every prompt, model or code change, so that a drop in quality is caught before it reaches users.
In more detail
Treat it like a test suite in CI: fixed cases, a score threshold and a clear report of what changed. Because outputs vary, compare scores across several runs rather than single results.
Run it whenever you change a prompt, model, retrieval setting or tool, and before you accept a provider's model update. Keep the cases that once failed, since they are the most likely to break again. Report the score change per category, not only the total, so a gain in one area does not hide a loss in another, and keep the cost down by running a quick subset on every change and the full set before release.
Related terms
Eval
A repeatable test that measures how well an AI system performs on a defined set of cases, so you can compare versions instead of guessing.
Golden dataset
A curated set of inputs with expected outputs or grading notes, used as the fixed reference that your evals are scored against.
Flaky test
A test that sometimes passes and sometimes fails on the same code, usually because of timing, shared state, test order or external services.
Online evaluation
Scoring a sample of real production traffic continuously, with automated checks or judges, to catch problems that offline test sets miss.
Read more about Regression eval
- LLM evaluation
Measuring AI system quality with datasets, code checks and model-graded tests.
- How to test LLM applications as a QA engineer
Contract tests on a scripted model, a golden set with pass-rate floors, a calibrated LLM judge and a regression gate.
- promptfoo
CLI for YAML-defined prompt and model evals, plus red-team scans for injection.
- Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.