Inferensys

Prompt

LLM Judge Calibration Prompt Template

A practical prompt playbook for using LLM Judge Calibration Prompt Template in production AI workflows.
DevOps engineer deploying LLM to production on laptop, Kubernetes dashboards visible, late night deployment session.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the precise job-to-be-done, ideal user, required context, and explicit boundaries for the LLM Judge Calibration prompt.

This prompt is for AI quality engineers and platform teams who need to calibrate an LLM judge against human evaluators. Use it when you are building an automated evaluation harness and must prove that your model-graded scores correlate with human judgment. The prompt produces a calibrated rubric with anchor examples, scoring guidelines, and a calibration report that quantifies inter-rater reliability. Do not use this prompt for one-off output grading or for tasks where a simple string match or schema validator is sufficient. This prompt assumes you already have a set of human-scored examples ready for calibration.

The ideal user is an engineer who owns the evaluation infrastructure and needs to defend their automated metrics to stakeholders. You should use this prompt when you are onboarding a new evaluation task, when you suspect judge drift after a model upgrade, or when you need to align multiple LLM judges to a single standard. The prompt requires a calibration dataset of at least 30 human-scored examples covering clear passes, clear failures, and ambiguous boundary cases. Without this dataset, the prompt will produce a rubric that looks plausible but has no empirical grounding. You must also define the scoring dimensions upfront—whether you are measuring correctness, helpfulness, safety, or a custom axis—because the calibration process aligns the judge to those specific dimensions.

Do not use this prompt as a substitute for defining what good looks like. If your team cannot agree on scoring criteria for human evaluators, an LLM judge will only amplify that ambiguity. Also avoid this prompt when your evaluation task has a deterministic ground truth, such as code compilation or schema validation, where unit tests are cheaper and more reliable. After running calibration, you must inspect the disagreement clusters manually. The prompt will flag where the judge and humans diverge, but it cannot fix fundamentally underspecified rubrics. The next step is to take the calibrated rubric and anchor examples and wire them into your continuous evaluation pipeline, re-running calibration whenever the task definition, model, or data distribution changes.

PRACTICAL GUARDRAILS

Use Case Fit

Where the LLM Judge Calibration Prompt Template delivers value and where it introduces risk. Use this to decide if calibration is the right investment before embedding the judge in a CI/CD pipeline.

01

Good Fit: Multi-Rater Alignment

Use when: you have multiple human evaluators or LLM judges producing inconsistent scores for the same outputs. Guardrail: Run the calibration prompt with 20–30 anchor examples that span the full score range. Measure inter-rater reliability (e.g., Cohen's kappa) before and after calibration to confirm improvement.

02

Good Fit: Pre-Deployment Judge Tuning

Use when: you are about to embed an LLM judge into an automated eval harness for regression testing or release gating. Guardrail: Freeze the calibrated rubric and anchor set. Re-run calibration whenever the underlying judge model changes or after 1,000+ eval runs to detect drift.

03

Bad Fit: Single-Annotator Ground Truth

Avoid when: you have only one human annotator defining correctness without peer review. Guardrail: Calibration requires at least two independent raters to measure agreement. Without multiple perspectives, the judge learns individual bias rather than consensus standards.

04

Bad Fit: Highly Subjective Open-Ended Tasks

Avoid when: the evaluation criteria are inherently aesthetic, creative, or lack any stable ground truth (e.g., 'Is this poem beautiful?'). Guardrail: If human raters cannot achieve >0.6 inter-rater agreement on the task, an LLM judge will not either. Switch to pairwise preference or human review for these tasks.

05

Required Input: Anchor Example Set

Risk: Calibration without diverse, scored anchor examples produces a rubric that looks precise but fails on edge cases. Guardrail: Prepare 20–50 examples covering clear-pass, clear-fail, and boundary cases. Each example needs at least two independent human scores to establish the target distribution.

06

Operational Risk: Calibration Drift Over Time

Risk: A calibrated judge silently drifts as the underlying model provider updates weights, or as production data shifts away from the calibration distribution. Guardrail: Schedule recalibration checks every 30 days or after any model version change. Monitor score distributions in production and alert on statistically significant shifts.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A copy-ready prompt template for calibrating an LLM judge against a human evaluator's rubric, producing a scored and justified calibration report.

This prompt template is the core instruction set you will send to a 'judge' LLM. Its purpose is to calibrate that judge's scoring behavior against a known human standard. The template is designed to be filled with your specific evaluation criteria, a set of anchor examples that have already been scored by a human, and a batch of unlabeled outputs that need to be scored consistently. The output is a structured calibration report that quantifies alignment and flags specific areas of disagreement.

text
You are an expert LLM evaluation calibrator. Your task is to align your scoring behavior with a provided human-generated rubric and set of anchor examples. You will then score a new set of outputs and produce a calibration report.

First, internalize the following evaluation rubric. This defines the scoring dimensions and the criteria for each score level.
[RUBRIC_DEFINITION]

Next, study the following anchor examples. Each example includes an input, an output, and the correct human-assigned score with a brief justification. These are your ground truth for calibration.
[ANCHOR_EXAMPLES]

Now, evaluate the following unlabeled outputs. For each one, apply the rubric exactly as demonstrated in the anchor examples.
[UNLABELED_OUTPUTS]

For each unlabeled output, you must produce a JSON object with the following keys:
- "id": The identifier of the output from the input list.
- "score": The score you assign, strictly adhering to the rubric's scale.
- "justification": A concise explanation referencing specific parts of the output and the rubric criteria that support your score.
- "calibration_confidence": A rating of HIGH, MEDIUM, or LOW indicating how confident you are that this score aligns with the human evaluator's intent, based on the anchor examples.

Finally, produce a "calibration_summary" JSON object with the following keys:
- "overall_alignment_assessment": A qualitative summary (e.g., "Strong alignment on factual accuracy, minor drift on conciseness").
- "identified_drift_areas": A list of specific rubric dimensions or score levels where your judgments may systematically differ from the human evaluator, with evidence from your justifications.
- "recommended_rubric_clarifications": Suggestions for how the rubric text or anchor examples could be improved to resolve the identified drift.

Your entire response must be a single, valid JSON object with two top-level keys: "evaluations" (an array of output evaluation objects) and "calibration_summary". Do not include any text outside this JSON structure.

To adapt this template, start by replacing the [RUBRIC_DEFINITION] with your specific scoring dimensions, levels, and descriptive criteria. The [ANCHOR_EXAMPLES] placeholder is critical; populate it with at least 5-10 diverse examples that have been carefully scored by a human to establish a clear standard. The [UNLABELED_OUTPUTS] should be a batch of new items for the judge to score. After running the prompt, you must validate the output JSON against a strict schema. If the judge's calibration confidence is LOW on many items or the identified_drift_areas list is long, this is a signal to refine your rubric and anchor examples before using this judge in an automated eval harness. For high-stakes evaluations, always have a human review the initial calibration report to confirm the alignment assessment before promoting the judge to production use.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the LLM Judge Calibration Prompt Template. Each placeholder must be populated before the prompt can produce a reliable, repeatable calibration rubric.

PlaceholderPurposeExampleValidation Notes

[EVAL_TASK_DESCRIPTION]

Defines what the judge is scoring and the context of the evaluation.

Evaluate the factual accuracy and citation grounding of a RAG-generated answer against a provided knowledge base passage.

Must be a single, unambiguous sentence. Check for vague verbs like 'assess quality' without a specific dimension.

[RUBRIC_DIMENSIONS]

Lists the independent axes the judge must score, each with a clear definition.

  1. Factual Accuracy: Are all claims supported by the source? 2. Citation Precision: Does each claim point to the correct sentence?

Must contain at least 2 and no more than 5 dimensions. Each dimension must have a unique name and a definition that does not overlap with others.

[SCORE_LEVELS]

Defines the integer or categorical scale for each dimension, with a description for each level.

1 (Not Supported): Claim contradicts source. 2 (Partially Supported): Claim is a mix of supported and unsupported info. 3 (Fully Supported): Claim is a direct paraphrase of source.

Scale must be consistent across all dimensions. Each level must have a mutually exclusive description. Validate that the descriptions cover the full range of possible outputs.

[ANCHOR_EXAMPLES]

Provides 2-4 scored examples that demonstrate the boundary between score levels for calibration.

Example A: Answer 'The sky is blue' from source 'The sky is red.' Score: 1. Justification: Direct contradiction.

Each example must include an input, an output, a score, and a justification. Must include at least one borderline case between two score levels. Validate that the scores match the [SCORE_LEVELS] definitions.

[HUMAN_RATER_REFERENCE]

A set of human-scored outputs used to measure the judge's alignment with human evaluators.

A CSV file with columns: input, output, human_score_dim1, human_score_dim2.

Must contain at least 20 scored items. Validate that the score distribution is not uniform and includes examples from all [SCORE_LEVELS]. This is used for the calibration check, not for in-prompt few-shot examples.

[ACCEPTABLE_AGREEMENT_THRESHOLD]

The minimum Cohen's kappa or exact-match percentage required to consider the judge calibrated.

Cohen's kappa >= 0.75

Must be a numeric value between 0.0 and 1.0. A threshold below 0.6 should trigger a review warning. Validate that the threshold is appropriate for the risk tolerance of the task.

[DRIFT_CHECK_FREQUENCY]

Defines how often the judge's scores should be re-compared to the [HUMAN_RATER_REFERENCE] to detect drift.

Every 500 production evaluations or every 7 days, whichever comes first.

Must be a concrete time or count value. A null value disables automated drift checks, which should require explicit approval. Validate that the frequency is not set to null for high-stakes evaluation pipelines.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the LLM Judge Calibration prompt into a repeatable evaluation pipeline with validation, retries, and human review gates.

The calibration prompt template is not a one-off script; it is a component of an eval harness that must run deterministically, produce auditable artifacts, and detect its own degradation over time. Wire this prompt into a pipeline that accepts a set of human-annotated examples (the calibration dataset), runs the prompt to produce a rubric and scoring guidelines, then immediately validates the output against a strict schema. The harness should treat any schema violation—missing anchor examples, unscored dimensions, or ambiguous threshold language—as a calibration failure that blocks downstream use of the judge.

Build the harness with three stages: generation, validation, and self-test. In the generation stage, call the calibration prompt with a curated set of 20–50 human-scored examples covering clear passes, clear failures, and boundary cases. In the validation stage, parse the output and check that every required field exists, every anchor example includes a score and justification, and every scoring guideline references observable output characteristics rather than vague intent. In the self-test stage, run the newly calibrated judge against a held-out set of 10 examples and compare its scores to human scores. If agreement (e.g., quadratic-weighted kappa) falls below a configured threshold—typically 0.7 for moderate-stakes tasks—block the judge from promotion and flag for human review. Log the raw prompt, the full output, the validation errors, and the agreement metrics as an immutable calibration record.

For production use, store the calibrated rubric as a versioned artifact in your eval registry alongside the calibration dataset hash, the model version used for calibration, and the agreement score. Schedule recalibration when the underlying model changes, when the task definition shifts, or when drift detection signals that judge scores are diverging from human spot checks. Never deploy a judge whose calibration record is missing or whose self-test agreement fell below threshold. If the calibration prompt itself produces inconsistent rubrics across multiple runs with the same inputs, investigate temperature settings (use temperature=0 for calibration), prompt ambiguity, or insufficient diversity in the calibration dataset before escalating to a human rubric designer.

IMPLEMENTATION TABLE

Expected Output Contract

Fields, types, and validation rules for the calibrated rubric and report produced by the LLM Judge Calibration Prompt Template. Use this contract to parse, validate, and store judge outputs before feeding them into inter-rater reliability or drift detection pipelines.

Field or ElementType or FormatRequiredValidation Rule

calibration_id

string (UUID v4)

Must parse as valid UUID v4. Reject if missing or malformed.

rubric_dimensions

array of objects

Schema check: each object must contain 'name' (string), 'description' (string), 'levels' (array of {score: integer, label: string, descriptors: string[]}). Array length >= 1.

anchor_examples

array of objects

Schema check: each object must contain 'dimension' (string matching a rubric_dimensions name), 'score' (integer within that dimension's level range), 'input' (string), 'output' (string), 'rationale' (string). Array length >= 2 per dimension.

scoring_guidelines

object

Must contain 'tie_breaking' (string), 'partial_credit' (string), 'abstention_rules' (string). All values must be non-empty strings.

calibration_samples

array of objects

Schema check: each object must contain 'input' (string), 'output' (string), 'human_scores' (object mapping dimension names to integers), 'judge_scores' (object mapping dimension names to integers), 'agreement' (boolean). Array length >= 5.

inter_rater_summary

object

Must contain 'percent_agreement' (number 0-100), 'cohens_kappa' (number -1 to 1 or null), 'disagreement_clusters' (array of strings). Reject if percent_agreement outside 0-100 or kappa outside -1 to 1 when not null.

drift_indicators

object

If present, must contain 'baseline_agreement' (number 0-100), 'current_agreement' (number 0-100), 'delta' (number), 'warning_triggered' (boolean). Reject if delta does not equal current_agreement minus baseline_agreement.

calibration_timestamp

string (ISO 8601)

Must parse as valid ISO 8601 datetime. Reject if unparseable or in the future beyond a 5-minute clock-skew tolerance.

PRACTICAL GUARDRAILS

Common Failure Modes

LLM judges fail in predictable ways. These are the most common failure modes when calibrating an LLM judge against human evaluators, with practical mitigations to keep your eval harness reliable.

01

Position Bias Skews Pairwise Judgments

What to watch: The judge systematically favors the first or last option in pairwise comparisons, regardless of quality. This inflates win rates for whichever variant appears in the preferred position. Guardrail: Randomize presentation order and run swap tests (A vs B, then B vs A). Flag judges where swap-test agreement falls below 80%.

02

Verbosity Bias Inflates Scores

What to watch: Longer, more elaborate outputs receive higher scores even when they contain fluff, repetition, or irrelevant detail. The judge confuses length with quality. Guardrail: Include a conciseness axis in the rubric. Add anchor examples that pair a short correct answer with a long mediocre one, explicitly scoring the short answer higher.

03

Rubric Drift Over Repeated Runs

What to watch: The same judge applied to the same output produces different scores across runs. This is common with vague rubric language like 'good' or 'adequate' that the model interprets inconsistently. Guardrail: Replace subjective adjectives with behavioral descriptions. Calibrate with 5-10 anchor examples that lock score boundaries. Measure score variance across 3 repeated runs and reject judges with standard deviation above 0.5 on a 5-point scale.

04

Halo Effect Contaminates Multi-Axis Scoring

What to watch: A strong score on one axis (e.g., factual accuracy) bleeds into unrelated axes (e.g., tone or formatting). The judge fails to evaluate dimensions independently. Guardrail: Score each axis in a separate LLM call with axis-specific instructions. If using a single call, randomize axis order and include explicit instruction: 'Score each axis independently. A high score on one axis does not imply a high score on another.'

05

Self-Enhancement Bias Favors the Judge's Own Style

What to watch: The LLM judge assigns higher scores to outputs that match its own writing style, vocabulary, or structural patterns, penalizing valid but stylistically different responses. Guardrail: Use a judge model from a different family than the model being evaluated when possible. Include style-diverse anchor examples in calibration. Audit for style-score correlation by comparing scores against stylistic similarity metrics.

06

Uncertainty Collapse on Ambiguous Cases

What to watch: The judge assigns a confident score to genuinely ambiguous outputs where human evaluators disagree. This hides inter-rater reliability problems and creates false precision. Guardrail: Require the judge to output a confidence level alongside each score. Flag cases where judge confidence is high but human agreement is low. For ambiguous cases, allow a 'cannot determine' or 'needs human review' escape score.

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for testing the calibration output quality before deploying the rubric. Each row defines a pass standard, failure signal, and test method to validate that the LLM judge is aligned with human evaluators.

CriterionPass StandardFailure SignalTest Method

Anchor Example Alignment

Judge scores match human scores for all calibration anchors within ±1 point on the scale

Judge score deviates by 2+ points from human score on any anchor example

Run judge against the 5-10 anchor examples in [CALIBRATION_ANCHORS]; compare score distribution to human reference scores

Rubric Dimension Coverage

Judge addresses every dimension listed in [RUBRIC_DIMENSIONS] with a non-null score and justification

Missing score or justification for any required dimension; null values where dimension is mandatory

Parse judge output against [OUTPUT_SCHEMA]; assert all required dimension keys present and non-null

Inter-Rater Reliability

Cohen's kappa ≥ 0.7 between judge and human evaluator on a held-out calibration set of 20+ examples

Kappa < 0.6 or systematic bias detected (judge consistently scores higher or lower than humans)

Run judge and human evaluator on [HELDOUT_CALIBRATION_SET]; compute kappa and bias direction

Justification Grounding

Every score justification references specific evidence from the output under evaluation, not generic statements

Justification contains only vague language ('good response', 'seems fine') with no output-specific references

Sample 10 justifications; check each contains at least one direct quote or specific reference to the evaluated output

Score Distribution Sanity

Judge uses full range of the scoring scale across a diverse set of 30+ outputs; no score collapse

All scores cluster within 1-2 points of the scale midpoint; judge never uses extreme scores when warranted

Run judge on [DIVERSE_EVAL_SET]; compute score histogram; assert standard deviation > 0.5 and min/max span ≥ 60% of scale range

Position Bias Resistance

Swap-test shows no statistically significant score difference when output order is reversed (p > 0.05)

Score changes by 1+ points on average when output order is swapped in pairwise comparisons

Run swap test on [PAIRWISE_TEST_SET]; compare scores for original vs. reversed order; compute paired t-test

Drift Detection Baseline

Judge scores on a fixed [STABILITY_CHECK_SET] remain within ±0.3 mean absolute deviation across 3 repeated runs

Mean score shifts by > 0.5 points between runs on the same stability set; non-deterministic behavior detected

Run judge 3 times on [STABILITY_CHECK_SET]; compute mean absolute deviation across runs; flag if > threshold

Edge Case Handling

Judge correctly applies [EDGE_CASE_RULES] for empty outputs, truncated outputs, and non-English content

Judge crashes, returns null, or applies default score without noting edge case when edge condition is present

Inject [EDGE_CASE_INPUTS] into eval set; verify judge output matches expected handling per [EDGE_CASE_RULES]

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Add schema validation on judge output, retry logic for malformed responses, structured logging of every calibration run, and a golden set of pre-scored examples for drift detection. Run calibration weekly or on model updates.

Prompt modifications

  • Add strict [OUTPUT_SCHEMA] with required fields: score, justification, anchor_match, confidence
  • Include [DRIFT_DETECTION] section with reference to prior calibration baselines
  • Add [RETRY_INSTRUCTION]: "If output does not match schema, retry once with the same input"
  • Set [CONFIDENCE_REQUIREMENT] to "required with numeric 0-1 scale"
  • Add [CALIBRATION_FREQUENCY] note: "Re-calibrate when model version changes or after 1000 eval runs"

Watch for

  • Silent format drift where judge drops anchor_match field under load
  • Calibration decaying as production data distribution shifts from calibration set
  • Judge learning to game the rubric without improving real accuracy
  • Missing human review of calibration diffs before promotion
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.