Test-driven development changed how teams build software. Evaluation-driven development does the same for LLM features.
Why vibes do not scale
Without evaluations, teams judge prompts by trying a few examples and deciding whether the output “feels better.” That works for a demo. It fails the moment you have thousands of users sending inputs nobody imagined.
Step 1: Build the golden dataset
Collect 100 to 500 real or realistic inputs. For each, record what a good answer looks like: the facts it must contain, the sources it should cite, the format it should follow. Have domain experts review it.
Step 2: Choose metrics that matter
- Faithfulness: Is every claim supported by the provided context?
- Relevance: Does it answer the question that was asked?
- Format compliance: Does structured output parse?
- Cost and latency: What does each answer cost, and how long does it take?
Automated graders, often another model with a strict rubric, handle most of this. Spot-check graders against human judgment regularly.
Step 3: Wire it into CI
Every change to a prompt, model, retrieval setting, or tool runs the evaluation suite. Results are compared with the baseline. Regressions block the merge, just like failing tests.
Step 4: Close the loop from production
User feedback and flagged answers become new evaluation cases. Your dataset grows with your product.
What changes
Prompt debates end, because the numbers decide. Model upgrades become safe, because you can see the impact. And stakeholders trust the feature, because you can show them exactly how well it works.
- LLM
- Evaluation
- Quality