Stage 4 · Assumes you can code · Evals & Quality

Regression Testing for Prompts & Agents

Catching quality regressions before they reach users.

Just like code, prompts and agent behavior should be regression-tested: run your eval suite on every meaningful change (new prompt, new model version, new tool) and compare scores against a baseline before shipping.

This is especially important because LLM providers periodically update models — behavior that worked well can shift even without any change on your end.

Eval Scores Across Prompt Versions
Accuracy
88
89
90
Faithfulness
91
97
74
Conciseness
60
58
95
v1
v2
v3
v3: Added "keep responses under 3 sentences" to reduce cost.
Conciseness improved as intended, but faithfulness quietly cratered — the model now omits citations and sometimes compresses two facts into one, losing nuance. A spot-check of 3 short, confident-looking answers would have looked great and missed this.
Click a version's bars. Without a regression suite tracking all three metrics, v3's faithfulness drop could easily ship unnoticed.

Compare accuracy, faithfulness, and conciseness across three prompt versions.

All lessons in Stage 4: Builders (optional)