When someone says 'eval prompt template,' what are they referring to and why does the wording matter so much?
An eval prompt template is the prompt sent to the LLM judge defining what to evaluate, how to score, and what criteria to apply. Small wording changes shift scores by 10 to 20 percent.
Imagine you are training a new teacher's assistant to grade essays. You hand them a sheet that says: 'Read the essay, check if it answers the question, and give it a score from 1 to 5. Here is what each score means.' That instruction sheet is the eval prompt template. Now imagine you change the sheet to say 'rate how creative the essay is' instead of 'rate how well it answers the question.' The assistant would grade the same essays completely differently. The template controls what the grader pays attention to. Even tiny changes in wording, like swapping 'quality' for 'helpfulness,' can change the scores by a lot, because the grader (the LLM judge) takes the instructions very literally.
Detailed answer & concept explanation~4 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define the eval prompt template, name its components, explain wording sensitivity, describe the calibration loop, and close with the practical discipline of treating it as a versioned artifact.
Real products, models, and research that use this idea.
- Promptfoo exposes the eval prompt template as an editable YAML field, letting teams customize criteria, anchor examples, and scoring instructions per evaluation dimension.
- MT-Bench uses a carefully designed eval prompt template that instructs the judge to score on a 1 to 10 scale with explicit criteria for each range, plus chain-of-thought reasoning.
- Braintrust AI lets teams A/B test eval prompt templates against human labels to find the template that produces the most reliable judge scores.
- G-Eval introduced a template pattern where the judge generates chain-of-thought evaluation steps before assigning a score, which improved correlation with human judgments.
- LangSmith provides default eval prompt templates for common dimensions (helpfulness, correctness, coherence) that teams customize for their domain.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you test whether a change to the eval prompt template actually improved judge accuracy?
QWhat is the role of chain-of-thought in eval prompt templates?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating the eval prompt template as boilerplate. Small wording changes can shift judge scores by 10 to 20 percent, making it one of the highest-leverage artifacts in the eval pipeline.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.