Inferensys

Prompt

Rubric for Instruction Following Assessment Prompt Template

A practical prompt playbook for using Rubric for Instruction Following Assessment Prompt Template in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the job-to-be-done, ideal user, and boundaries for the instruction-following rubric prompt.

This prompt is for prompt engineers and evaluation leads who need to verify that an AI-generated output follows a set of explicit instructions, format requirements, exclusion rules, and behavioral constraints. The primary job-to-be-done is producing a structured, machine-readable rubric that an LLM judge can use to grade instruction adherence, including partial-compliance scoring rules for outputs that follow some constraints but miss others. Use this when you are shipping structured outputs to an API, a downstream parser, or a user-facing product where partial compliance is still a failure. The rubric it generates is the contract that turns subjective quality into repeatable, automatable model-graded scores.

The ideal user has a concrete set of constraints they need enforced—such as a required JSON schema, a list of forbidden topics, word limits, or mandatory sections—and needs a scoring artifact they can pass directly to an evaluation harness. Required context includes the original system prompt or user instructions, the expected output schema, and a clear definition of what constitutes a violation. The prompt works best when constraints are explicit and verifiable, not when quality is purely stylistic or subjective. For example, 'the output must be valid JSON with fields A, B, and C' is a strong fit; 'the output should sound professional' is too vague without further operationalization.

Do not use this prompt for open-ended creative quality assessment or for evaluating factual accuracy against external evidence. Those require separate rubrics for groundedness or summarization quality. Also avoid this prompt when the instruction set is ambiguous or when compliance cannot be determined from the output alone—for instance, if verifying adherence requires knowledge of private user context not present in the evaluation window. In high-risk domains such as healthcare, legal, or finance, the generated rubric should be treated as a screening tool, not a final arbiter; always pair it with human review and evidence grounding. If your evaluation needs include multi-turn conversation tracking, tool-use correctness, or safety policy adherence, use the dedicated rubric prompts for those surfaces instead.

PRACTICAL GUARDRAILS

Use Case Fit

Where this rubric works, where it breaks, and what you must provide before using it.

01

Good Fit: Structured Output Pipelines

Use when: you are evaluating model outputs against explicit, verifiable constraints such as JSON schemas, word counts, exclusion lists, or required sections. Guardrail: The rubric must reference the exact constraint text from the original prompt to avoid judge drift.

02

Bad Fit: Open-Ended Creative Quality

Avoid when: the primary goal is to assess subjective qualities like 'engaging prose' or 'brand voice' without concrete rules. Guardrail: Use a pairwise comparison or multi-dimensional quality rubric instead. Instruction following requires measurable compliance, not taste.

03

Required Inputs

What to watch: The judge cannot assess compliance without the original instruction set. Guardrail: Always pass the full, unmodified system prompt or user instructions as a [CONSTRAINTS] variable. Missing constraints lead to hallucinated compliance checks.

04

Operational Risk: Partial Compliance Blindness

What to watch: A model might follow 4 out of 5 instructions perfectly, but the single violation breaks the downstream parser. Guardrail: Design the rubric with explicit partial-compliance scoring rules and a critical-failure flag that triggers a retry or human review.

05

Operational Risk: Format vs. Intent Conflict

What to watch: The model may satisfy the letter of the format rule while violating the spirit of the behavioral constraint. Guardrail: Include a 'spirit of the instruction' check in the rubric that penalizes malicious compliance or loophole exploitation.

06

Operational Risk: Judge Instruction Drift

What to watch: The LLM judge may misinterpret the rubric's scoring levels over many evaluations. Guardrail: Anchor each scoring level with a concrete example of a compliant and non-compliant output. Recalibrate the judge against a golden set weekly.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for generating a rubric that grades instruction following and constraint compliance.

This template is the core of the playbook. It instructs an LLM judge to produce a detailed, multi-level scoring rubric specifically for evaluating how well another AI's output adheres to a set of explicit instructions. The prompt is designed to be copy-pasted and adapted by replacing the square-bracket placeholders with your specific task instructions, format requirements, and behavioral constraints. The resulting rubric should be a standalone artifact that can be used by another LLM judge or a human evaluator to produce consistent, repeatable scores.

text
You are an expert evaluation rubric designer. Your task is to create a detailed scoring rubric for assessing an AI's adherence to a specific set of instructions. The rubric must be clear, objective, and designed for use by another LLM judge.

### Instructions to be Evaluated
[INSTRUCTIONS]

### Rubric Design Requirements
- **Scoring Scale:** Define a [SCALE_RANGE, e.g., 1-5] scoring scale.
- **Score Levels:** For each score on the scale, provide a clear, behavioral description (an anchor) of what constitutes that level of performance.
- **Dimensions:** Break down the evaluation into distinct, non-overlapping dimensions. For example: `format_adherence`, `content_constraint_compliance`, `exclusion_rule_following`, `behavioral_tone`.
- **Partial Compliance:** Explicitly define how to score partial compliance. For example, if a response follows 3 out of 4 format rules, how is that scored differently from following 0 rules?
- **Edge Cases:** Include guidance for scoring edge cases, such as when the model correctly refuses a task based on a constraint, or when two constraints conflict.
- **Justification:** The rubric must require the judge to output a brief justification for each dimension's score, citing the specific part of the instruction that was followed or violated.

### Output Format
Output the rubric as a structured JSON object with the following schema:
{
  "rubric_name": "string",
  "scoring_scale": {
    "min": integer,
    "max": integer,
    "description": "string"
  },
  "dimensions": [
    {
      "name": "string",
      "description": "string",
      "scoring_guide": {
        "[SCORE]": "string describing the anchor for this score",
        ...
      }
    }
  ],
  "partial_compliance_rules": "string",
  "edge_case_guidance": "string"
}

### Constraints
- Do not include any text outside the JSON object.
- Ensure the scoring anchors are mutually exclusive and collectively exhaustive.
- The rubric must be directly usable by another LLM to grade a new response against the provided [INSTRUCTIONS].

To adapt this template, start by replacing the [INSTRUCTIONS] placeholder with the exact system prompt, user query, and any formatting rules you gave to the AI being evaluated. Next, define your [SCALE_RANGE], such as 1-5 or 0-3. The most critical adaptation is in the dimensions array: you must decompose your instructions into specific, testable components. For example, if your instructions require a JSON output with three specific fields and a professional tone, you should create separate dimensions for schema_compliance and tone_adherence. After generating the rubric, always validate it by manually scoring a few known outputs to ensure the anchors are clear and the partial compliance rules produce the expected results. This calibration step is essential before deploying the rubric in an automated evaluation pipeline.

IMPLEMENTATION TABLE

Prompt Variables

Inputs the prompt needs to work reliably. Validate each before sending to the judge model.

PlaceholderPurposeExampleValidation Notes

[INSTRUCTION_SET]

The original instructions the model was asked to follow

Generate a JSON summary with exactly 3 bullet points. Do not use the word 'innovative'.

Must be a non-empty string. Check for conflicting constraints before passing to the judge.

[MODEL_OUTPUT]

The raw output from the model being evaluated

{"summary": "The product is new and helpful."}

Must be a non-empty string. If output is a structured object, serialize it to a string before passing. Validate it is not a system error message.

[RUBRIC_DIMENSIONS]

The specific instruction-following dimensions to score

["format_adherence", "exclusion_rule_compliance", "length_constraint_satisfaction"]

Must be a JSON array of strings. Each dimension must map to a verifiable constraint in [INSTRUCTION_SET]. Reject unknown dimensions.

[SCORING_SCALE]

The numeric or categorical scale for each dimension

{"min": 0, "max": 4, "labels": ["Non-compliant", "Partial", "Mostly", "Full", "Exceeds"]}

Must be a valid JSON object with min, max, and labels. Labels array length must equal (max - min + 1).

[PARTIAL_COMPLIANCE_RULES]

Rules for assigning partial credit when output is close but not perfect

If a word limit is 50 and output is 55 words, score 3 instead of 4.

Must be a non-empty string or null. If null, the judge will use binary pass/fail per dimension. Validate for logical consistency with the scoring scale.

[CONTEXT_WINDOW_NOTES]

Any additional context the judge needs about the task

The model was instructed to avoid markdown but may have interpreted JSON keys as an exception.

Must be a string or null. Keep under 500 characters to avoid distracting the judge. Strip any PII before passing.

[OUTPUT_FORMAT_REQUIREMENT]

The required output schema for the judge's response

{"dimension_scores": {}, "overall_score": 0, "justification": "..."}

Must be a valid JSON schema or a clear natural language description. Validate that the schema includes fields for each dimension in [RUBRIC_DIMENSIONS].

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the instruction-following rubric prompt into an evaluation pipeline with validation, retries, and CI/CD integration.

This prompt is designed to run as a scoring step inside an automated evaluation harness, not as a one-off chat interaction. The typical integration pattern places it after a candidate output has been generated by the system under test. The harness feeds the original instructions, the candidate output, and the rubric prompt template into an LLM judge, then parses the structured score and justification for downstream decision-making. The primary integration points are: input assembly, model invocation, output validation, score extraction, and pipeline gating.

Input assembly requires merging three data sources before calling the judge: the original instruction set that was given to the system under test, the candidate output produced by that system, and the rubric prompt template itself. Store these as separate variables in your pipeline configuration. The instruction set should be the exact text the system received, not a summary. The candidate output should be captured raw, before any post-processing or repair steps. Model invocation should use a low-temperature setting (0.0–0.2) to maximize scoring consistency. Choose a model with strong instruction-following and structured output capabilities. If your pipeline runs hundreds of evaluations, consider batching multiple scoring requests or using a model with lower per-token cost for this judge step, since the judge model does not need to be the same model that produced the candidate output.

Output validation is critical because a malformed score breaks the pipeline. Parse the judge's response and verify that: the score field is present and within the defined numeric range, the justification field is non-empty, and any required sub-fields like partial_compliance_flags or violated_constraints are present when the score is below maximum. If validation fails, implement a retry loop with a maximum of 2 additional attempts, feeding the validation error message back to the judge as additional context. If all retries fail, log the raw response, flag the evaluation as SCORING_ERROR, and route it for human review rather than silently assigning a default score. Score extraction should write the validated score, justification, and metadata (judge model, timestamp, retry count) to your evaluation database or logging system for traceability.

For CI/CD integration, wrap this prompt in a test harness that runs against a golden dataset of instruction-output pairs with known expected scores. Set a minimum score threshold as a pipeline gate: if the system under test falls below the threshold on critical instruction-following dimensions, block the release. Store historical scores per prompt version to detect drift. Common failure modes in production include: the judge hallucinating constraints that weren't in the original instructions, the judge being overly lenient on partial compliance, and score inflation when the candidate output is verbose but non-compliant. Mitigate these by periodically calibrating the judge against human ratings using a held-out calibration set, and by logging judge justifications for spot-check review. Do not treat the LLM judge score as ground truth—it is a signal that reduces, but does not eliminate, the need for human evaluation on high-risk outputs.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the required fields, types, and validation rules for the LLM judge's JSON response when using the Instruction Following Assessment Rubric. Use this contract to parse, validate, and store scores reliably.

Field or ElementType or FormatRequiredValidation Rule

overall_score

number (0.0 to 1.0)

Must be a float. Check: 0.0 <= value <= 1.0. Reject if out of bounds or not a number.

overall_grade

string (enum)

Must be one of: ["PASS", "FAIL", "PARTIAL"]. Check: exact string match, case-sensitive. Reject on mismatch.

dimension_scores

array of objects

Must be a non-empty array. Each object must contain 'dimension_name' (string), 'score' (number 0.0-1.0), and 'justification' (string). Reject if array is empty or missing required sub-fields.

dimension_scores[].dimension_name

string

Must exactly match a dimension name provided in the [RUBRIC_DIMENSIONS] input. Check: strict string equality. Flag if unknown dimension is scored.

dimension_scores[].score

number (0.0 to 1.0)

Must be a float within 0.0 to 1.0. Check: numeric type and range. Reject if null or non-numeric.

dimension_scores[].justification

string

Must be a non-empty string. Check: length > 0. Flag if justification is generic (e.g., 'good job') without citing specific output evidence.

critical_failure_flags

array of strings

If present, must be an array of strings. Each string must match a known failure mode from [CRITICAL_FAILURE_DEFINITIONS]. Check: array type. Warn if flags are present but overall_grade is not FAIL.

compliance_summary

string

Must be a non-empty string summarizing which instructions were followed, partially followed, or violated. Check: length > 20 characters. Flag if summary contradicts dimension_scores.

PRACTICAL GUARDRAILS

Common Failure Modes

Instruction-following rubrics fail in predictable ways. These are the most common failure modes when grading constraint compliance, along with practical mitigations to keep your evaluation pipeline trustworthy.

01

Partial Compliance Over-Scoring

What to watch: The judge gives high scores to outputs that follow some instructions but miss critical constraints, because the rubric doesn't weight must-have rules above nice-to-have ones. Guardrail: Define mandatory constraints explicitly in the rubric with a separate pass/fail gate before dimensional scoring begins. Use **Mandatory:** labels for non-negotiable requirements.

02

Format Drift in Long Outputs

What to watch: The model follows format instructions early in the response but drifts back to default formatting in later sections. The judge misses this because it only checks the first instance. Guardrail: Instruct the judge to sample multiple sections of the output—beginning, middle, and end—and flag inconsistent formatting as a partial-compliance deduction.

03

Constraint Interaction Blindness

What to watch: The output satisfies constraint A and constraint B individually, but violates them when both apply simultaneously. The judge evaluates each constraint in isolation and misses the interaction failure. Guardrail: Add explicit interaction-check rules to the rubric, such as **When both [A] and [B] apply:** verify that the output satisfies both without conflict.

04

Implicit Instruction Over-Penalization

What to watch: The judge penalizes the output for not following instructions that were implied but never explicitly stated in the prompt. This inflates false-negative rates and frustrates prompt engineers. Guardrail: Anchor the rubric strictly to explicit instructions in the source prompt. Add a rule: **Only score against instructions that appear verbatim or are unambiguously required by the stated constraints.**

05

Length and Exclusion Rule Neglect

What to watch: Word limits, banned phrases, and exclusion rules are the most commonly missed constraints because judges focus on content quality over mechanical rules. Guardrail: Place mechanical constraints at the top of the rubric with their own dedicated scoring dimension. Require the judge to run a mechanical check before evaluating content quality.

06

Score Justification Drift

What to watch: The judge assigns a score that doesn't match its own written justification, or the justification cites evidence that contradicts the score. This erodes trust in automated evaluation. Guardrail: Add a consistency check step: **After scoring, verify that your justification supports the score you assigned. If the justification suggests a different score, revise the score, not the justification.**

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test whether your LLM judge produces reliable, actionable scores for instruction-following assessments. Each criterion defines a pass standard, a failure signal, and a concrete test method to run before trusting the judge in production.

CriterionPass StandardFailure SignalTest Method

Score Alignment with Human Ratings

Judge scores correlate with human scores at Spearman's ρ ≥ 0.80 on a 50-sample calibration set

Correlation below 0.70 or systematic over/under-scoring on specific dimensions

Run judge on 50 scored examples; compute Spearman correlation per dimension; flag dimensions below threshold

Partial-Compliance Discrimination

Judge assigns distinct scores to fully compliant, partially compliant, and non-compliant outputs for the same instruction set

Judge collapses partial and full compliance into the same score bucket or assigns binary pass/fail only

Create 3 output variants per instruction (full, partial, non); verify judge produces 3 distinct score tiers with non-overlapping confidence intervals

Constraint Coverage Completeness

Judge references every explicit constraint from [INSTRUCTIONS] in its justification when scoring

Judge justification omits a constraint present in the instructions or invents constraints not in the source

Parse judge justification; extract cited constraints; diff against [INSTRUCTIONS] constraint list; flag missing or hallucinated constraints

Format Requirement Detection

Judge correctly penalizes outputs that violate [OUTPUT_FORMAT] requirements (e.g., JSON structure, word count, delimiter rules)

Judge assigns full score to an output with a format violation or penalizes a format-compliant output

Inject 5 known format violations into otherwise correct outputs; verify judge score decreases by at least the rubric-defined penalty for each

Exclusion Rule Enforcement

Judge correctly identifies and penalizes outputs containing forbidden content specified in [EXCLUSION_RULES]

Judge misses a forbidden term, pattern, or topic, or falsely flags compliant content as excluded

Create 10 outputs: 5 with known exclusion violations, 5 clean; measure precision and recall of judge's exclusion detection; require F1 ≥ 0.95

Behavioral Constraint Adherence Scoring

Judge accurately scores outputs against behavioral constraints like tone, persona, or refusal rules from [BEHAVIORAL_CONSTRAINTS]

Judge ignores behavioral violations, over-penalizes minor tone drift, or conflates behavioral and format constraints

Construct 8 outputs with graded behavioral deviations (none, minor, moderate, severe); verify judge scores are monotonic with severity and match rubric anchor descriptions

Justification Quality and Grounding

Judge justification cites specific output excerpts as evidence for each score deduction, with no unsupported claims

Justification contains vague statements like 'generally good' without evidence, or cites output text that doesn't exist

Sample 20 justifications; manually verify each claim has a direct quote from the output; flag any ungrounded or hallucinated citations

Score Reproducibility Across Runs

Judge produces identical scores (±1 point on a 10-point scale) for the same input-output pair across 3 independent runs

Score varies by more than 2 points across runs, or justification reasoning changes materially between runs

Select 15 diverse input-output pairs; run judge 3 times each with temperature=0; compute max score deviation per pair; flag pairs exceeding threshold

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base rubric template and a single instruction-following dimension. Remove partial-compliance scoring rules and use a simple 3-level scale (Fully Compliant, Partially Compliant, Non-Compliant). Test with 10-15 outputs manually scored first, then compare judge scores.

code
[INSTRUCTION]: [Your single instruction to test]
[OUTPUT]: [Model output to evaluate]

Score the output on instruction adherence only:
- Fully Compliant: Follows every explicit requirement
- Partially Compliant: Follows most requirements but misses one
- Non-Compliant: Misses multiple requirements or violates a core constraint

Watch for

  • Judge leniency on near-miss outputs that a human would reject
  • Missing format constraint checks when instructions mix content and structure rules
  • Overly broad "Partially Compliant" bucket hiding real failure patterns
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.