Prompt Evaluation
A prompt that works on the three examples you tried it on tells you almost nothing. Change the phrasing of the user's question, or the model behind the endpoint, and the same prompt starts producing confidently wrong output. Prompt evaluation is the discipline of measuring a prompt instead of admiring it.
How it is doneYou assemble a fixed set of inputs — ideally real traffic, including the awkward cases — run the prompt across all of them, and score the outputs. Scoring takes three forms: reference-based metrics where a right answer exists, programmatic checks (valid JSON, required field present, no banned phrase), and LLM-as-a-judge, where a second model grades against a rubric. Harnesses such as OpenAI Evals, promptfoo, and Ragas for retrieval pipelines, run this loop and track the scores across prompt versions.
What it catches- Regressions: the edit that fixed one complaint and broke two cases nobody was watching.
- Model drift: the same prompt scored before and after a provider upgrade, or against a cheaper candidate model.
- Variance: one input run several times, which exposes prompts that only work when the sampling is lucky.
A judge model carries its own biases — it rewards longer, more confident answers and its own family's style — so judges get spot-checked against human labels. Small test sets flatter a prompt, and a test set that leaks into the prompt as examples has stopped measuring anything.
Prompt evaluation measures a prompt against a fixed set of inputs rather than the one example that inspired it, scoring outputs with reference metrics, programmatic checks, or a second model acting as judge. It is what turns prompt editing into engineering: it catches regressions, exposes how much a result depends on lucky sampling, and shows whether a prompt still holds up after the underlying model is upgraded.
Imagine judging a new recipe by cooking it once, for one friend who was already starving. You would learn very little. Prompt evaluation is the habit of testing instructions given to an AI properly: collect a batch of realistic questions, run the same instructions across all of them, and check how many answers are actually good. Sometimes a person scores them, sometimes a simple rule does, and sometimes another AI is asked to grade the work. It matters because a small edit that fixes one annoying answer can quietly spoil ten others — and without testing, nobody notices until a customer does.