Eval
Definition
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.
In more detail
An eval combines inputs, the system under test and a way of scoring outputs. Run it whenever you change a prompt, model or retrieval setting, and compare scores before and after.
The best evals are built from real failures you have seen, not generic benchmarks.
Related terms
Error analysis
Reading a sample of real outputs, labelling what went wrong and grouping the failures before deciding what to measure or fix.
Golden dataset
A curated set of inputs with expected outputs or grading notes, used as the fixed reference that your evals are scored against.
LLM-as-a-judge
Using a model to grade another model's outputs against written criteria, ideally checked against a sample of human-labelled cases.
Regression eval
An eval run automatically on every prompt, model or code change, so that a drop in quality is caught before it reaches users.
Benchmark
A public, standard test set used to compare models on a capability such as coding, maths or knowledge, under the same conditions.
LLM observability
Collecting traces, costs, latency and quality signals from AI applications in production so you can debug and improve them.
Read more about Eval
- 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.
- LLM evaluation
Measuring AI system quality with datasets, code checks and model-graded tests.
- Evaluate RAG answers with a golden dataset
Set up RAG evaluation with a golden dataset and promptfoo: score retrieval, correctness and grounding for every question, and fail CI when answer quality drops.