Inferensys

Prompt

Decomposed Reasoning Evaluation Rubric Prompt

A practical prompt playbook for using Decomposed Reasoning Evaluation Rubric Prompt in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, reader, and constraints for the Decomposed Reasoning Evaluation Rubric Prompt.

This prompt is for AI engineers and QA teams who need an automated, repeatable way to evaluate the quality of decomposed reasoning chains produced by other LLM prompts. The job-to-be-done is regression testing: you have a multi-hop RAG system or a reasoning agent that breaks complex questions into sub-questions and evidence chains, and you need to know if a change to your reasoning prompt made the outputs better or worse. The ideal user is someone running an evaluation harness who already has a golden dataset of questions, retrieved contexts, and reference reasoning chains. You should use this prompt when you need a structured scorecard that assesses logical coherence, evidence grounding, step necessity, and conclusion validity, not just a vague 'looks good' judgment.

Do not use this prompt as a real-time guardrail in a production request path. It is designed for offline evaluation and CI/CD pipelines where latency and cost per judgment are acceptable. It is also not a substitute for human review when the reasoning chain informs high-stakes decisions in regulated domains—use it to filter and prioritize human review, not to replace it. The prompt requires a detailed rubric, the reasoning chain to be evaluated, the source evidence used, and the original question as inputs. Without these, the evaluation will be unreliable. The output is a structured scorecard with dimension-level scores and an overall pass/fail recommendation, which you can log, trend over time, and use as a release gate.

Before wiring this into your eval harness, define your minimum acceptable scores per dimension and decide whether a single failing dimension fails the whole chain. Start by running this prompt against a set of known-good and known-bad reasoning chains to calibrate thresholds. Avoid the temptation to tweak the rubric until everything passes—use the failures to find real bugs in your reasoning prompts. If you observe inconsistent grading across similar chains, add more detail to the rubric's dimension descriptions or include few-shot examples of scored chains to anchor the LLM judge.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Decomposed Reasoning Evaluation Rubric Prompt delivers reliable, automated quality signals—and where it introduces risk that requires a different approach.

01

Good Fit: Automated Regression Gates

Use when: You have a stable reasoning prompt and need to catch regressions across prompt or model version changes. Guardrail: Run the rubric against a fixed golden dataset of complex questions and known-good reasoning chains. Flag any score drop below a predefined threshold for human review before release.

02

Good Fit: Multi-Hop QA Systems

Use when: Your system chains evidence across multiple documents and you need to verify that each reasoning step is logically sound and source-grounded. Guardrail: Pair the rubric with a separate citation-accuracy check. The rubric assesses logic; a second tool verifies that cited spans actually exist in the source documents.

03

Bad Fit: Single-Hop Factoid Answers

Avoid when: The answer comes from a single retrieved passage with no inferential steps. Guardrail: Use a simpler factual-accuracy eval for single-hop answers. Deploy the decomposition rubric only when the reasoning chain has at least two distinct evidence-to-conclusion steps.

04

Bad Fit: Creative or Subjective Tasks

Avoid when: The output is a summary, narrative, or analysis where multiple valid reasoning paths exist. Guardrail: Reserve the rubric for tasks with objectively assessable logical structure. For subjective synthesis, use a pairwise-preference or human-review eval instead.

05

Required Inputs

What you need: The original complex question, the full retrieved context set, the complete reasoning chain to evaluate, and a well-defined rubric with scoring dimensions. Guardrail: Validate that all four inputs are present and non-empty before calling the judge. Missing context makes the rubric unreliable.

06

Operational Risk: Judge Hallucination

What to watch: The LLM judge may hallucinate flaws or overlook real errors, especially on long reasoning chains. Guardrail: Periodically audit judge outputs against human expert evaluations. Track judge-human agreement rates and recalibrate the rubric when drift exceeds 15%.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable LLM-as-judge prompt that grades a decomposed reasoning chain against a structured rubric, producing a scorecard for automated regression testing.

This prompt template is designed to be used inside an evaluation harness. It instructs a judge model to assess the quality of a reasoning chain—typically generated by a multi-hop RAG system—against a detailed rubric. The output is a structured scorecard that can be parsed and logged by your CI/CD pipeline, enabling automated regression testing of your reasoning prompts. The template uses square-bracket placeholders for all dynamic inputs, making it safe to copy directly into your codebase.

text
You are an expert evaluator grading the quality of a decomposed reasoning chain. Your task is to assess the provided reasoning chain against a detailed rubric and produce a structured scorecard.

## INPUTS

**User Question:**
[USER_QUESTION]

**Retrieved Context (multiple documents may be provided):**
[RETRIEVED_CONTEXT]

**Reasoning Chain to Evaluate:**
[REASONING_CHAIN]

## RUBRIC

Evaluate the reasoning chain on the following dimensions. For each dimension, assign a score from 1 (worst) to 5 (best) and provide a brief, evidence-based justification.

1. **Logical Coherence:** Does the reasoning flow logically from one step to the next? Are there any logical leaps, circular reasoning, or contradictions?
2. **Evidence Grounding:** Is every factual claim in the reasoning chain explicitly supported by the provided context? Flag any unsupported claims.
3. **Step Necessity:** Is each step in the chain necessary to reach the conclusion? Are there redundant or irrelevant steps?
4. **Conclusion Validity:** Does the final conclusion follow necessarily from the reasoning steps and the evidence? Is it a valid inference?
5. **Source Fidelity:** Are citations and references to the source documents accurate? Does the chain misattribute or fabricate source details?

## OUTPUT SCHEMA

Return ONLY a valid JSON object conforming to this schema:
{
  "overall_score": <float between 1.0 and 5.0>,
  "overall_verdict": "PASS" | "FAIL" | "BORDERLINE",
  "dimensions": [
    {
      "name": "Logical Coherence",
      "score": <integer 1-5>,
      "justification": "<string>"
    },
    {
      "name": "Evidence Grounding",
      "score": <integer 1-5>,
      "justification": "<string>"
    },
    {
      "name": "Step Necessity",
      "score": <integer 1-5>,
      "justification": "<string>"
    },
    {
      "name": "Conclusion Validity",
      "score": <integer 1-5>,
      "justification": "<string>"
    },
    {
      "name": "Source Fidelity",
      "score": <integer 1-5>,
      "justification": "<string>"
    }
  ],
  "critical_flags": ["<string describing any critical failure, e.g., hallucinated citation>"]
}

## CONSTRAINTS

- Do not add commentary outside the JSON object.
- If the reasoning chain is empty or nonsensical, set overall_score to 1.0 and overall_verdict to "FAIL".
- If any dimension receives a score of 1 or 2, overall_verdict must be "FAIL" or "BORDERLINE".
- Be strict about evidence grounding: if a claim is not in the context, flag it.

To adapt this template, replace the placeholders with your actual data. [USER_QUESTION] is the original complex query. [RETRIEVED_CONTEXT] should contain the full text of all documents retrieved across all hops, clearly delimited. [REASONING_CHAIN] is the output from your multi-hop reasoning prompt that you want to evaluate. The rubric dimensions can be adjusted to match your specific quality criteria—for example, you might add 'Temporal Consistency' for event-sequencing tasks. The output schema is designed for direct ingestion by an automated test runner; ensure your harness parses the JSON and logs the scorecard alongside the prompt version and input data. For high-stakes domains, always include a human review step for any verdict of 'BORDERLINE' or 'FAIL' before blocking a release.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Decomposed Reasoning Evaluation Rubric Prompt. Each placeholder must be populated before the LLM-as-judge call to ensure reliable, reproducible scoring.

PlaceholderPurposeExampleValidation Notes

[REASONING_CHAIN]

The complete decomposed reasoning chain output to be evaluated, including all steps, sub-questions, and intermediate answers.

Step 1: Identify key entities from Doc A... Step 2: Cross-reference dates with Doc B...

Must be non-empty string. Parse check: verify it contains at least one reasoning step delimiter. If null or whitespace-only, abort evaluation.

[ORIGINAL_QUESTION]

The user question that triggered the reasoning chain, used to assess relevance and goal alignment.

What were the primary causes of the supply chain disruption in Q3 2023?

Must be non-empty string. Compare against [REASONING_CHAIN] to confirm the chain addresses this question. If mismatch detected, flag in evaluation.

[SOURCE_EVIDENCE_LIST]

An array of all source documents or passages cited in the reasoning chain, with unique identifiers for cross-referencing.

[{"id": "doc_a_para_3", "text": "Supplier A reported..."}, {"id": "doc_b_para_7", "text": "Logistics data shows..."}]

Must be valid JSON array. Each object requires 'id' and 'text' fields. Validate that every citation in [REASONING_CHAIN] maps to an id in this list. Missing sources trigger a grounding failure.

[RUBRIC_DIMENSIONS]

An array of scoring dimensions with weight, pass criteria, and failure descriptors. Defines what the judge evaluates.

[{"dimension": "logical_coherence", "weight": 0.3, "pass_standard": "No logical leaps without stated inference rules.", "failure_signal": "Conclusion does not follow from premises."}]

Must be valid JSON array with at least one dimension. Each dimension requires 'dimension', 'weight', 'pass_standard', and 'failure_signal' fields. Weights must sum to 1.0. Schema check required.

[SCORING_SCALE]

Defines the numeric or categorical scale the judge uses for each rubric dimension.

{"type": "numeric", "range": [1, 5], "labels": {"1": "Severe failure", "5": "Exemplary"}}

Must be valid JSON object with 'type' and 'range' fields. If categorical, 'labels' map is required. Validate that all scores produced by the judge fall within this range.

[CITATION_FORMAT]

The expected format for citations within the reasoning chain, used to verify source grounding.

"[doc_id:section]"

Must be a non-empty string describing the regex or pattern. Use this to parse citations from [REASONING_CHAIN] and cross-reference against [SOURCE_EVIDENCE_LIST]. If format is unrecognized, log warning and proceed with loose matching.

[EVALUATION_CONTEXT]

Optional additional constraints or domain-specific rules that modify the rubric application.

Domain: clinical trial analysis. Additional rule: flag any step that infers patient outcomes without direct source evidence.

Null allowed. If provided, must be a string. Parse for additional rule keywords and append to rubric dimension checks. If null, evaluate against default rubric only.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Decomposed Reasoning Evaluation Rubric Prompt into an automated regression testing harness for reasoning chains.

This prompt is designed to be used as an LLM-as-judge within an automated evaluation pipeline, not as a one-off manual grading tool. The primary integration point is a CI/CD or pre-release testing workflow that runs whenever the upstream reasoning prompt (the prompt being evaluated) is modified. The harness should retrieve a golden dataset of complex questions, their corresponding retrieved context, and the reasoning chains generated by the candidate prompt. Each reasoning chain is then fed into this rubric prompt alongside the original question and source evidence to produce a structured scorecard.

For a robust implementation, wrap the prompt call in a validation and retry layer. The expected output is a JSON object matching a strict schema (fields like logical_coherence_score, evidence_grounding_score, overall_verdict, and an array of critical_failures). After the LLM call, validate the JSON structure. If parsing fails or required fields are missing, implement a retry loop (maximum 2-3 attempts) that feeds the raw output and the validation error back to the model for self-correction. Log every raw response and parsing failure to an observability store for later analysis. For model choice, a capable frontier model with strong instruction-following (like GPT-4o or Claude 3.5 Sonnet) is recommended for the judge role, as it must apply a detailed rubric consistently. Avoid using a smaller, cheaper model for the judge unless you have calibrated its grading against a human-annotated baseline.

The final step in the harness is aggregation and gating. Collect the scorecards across the entire golden dataset. Calculate the pass rate based on your predefined overall_verdict threshold (e.g., 80% of test cases must pass). If the pass rate falls below the threshold, the CI pipeline should fail, blocking the reasoning prompt change from being released. Store all scorecards as artifacts of the test run. Crucially, flag any test case where the critical_failures array is non-empty for immediate human review, as these represent logical leaps or hallucinations that the judge deemed severe. This harness transforms a subjective quality assessment into a repeatable, automated regression gate.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when using an LLM to evaluate decomposed reasoning chains, and how to guard against it in your evaluation harness.

01

Evaluator Hallucinates Rubric Compliance

What to watch: The judge LLM declares a step 'logically sound' or 'well-grounded' when the cited source doesn't actually support the claim. The evaluator confuses fluent writing with factual accuracy. Guardrail: Require the evaluator to quote the exact source text that supports each scored criterion. If no quote exists, the score must default to the lowest tier for that dimension.

02

Score Drift Across Evaluation Runs

What to watch: The same reasoning chain receives different scores when evaluated multiple times or when the order of chains in a batch changes. LLM judges are sensitive to context and positioning. Guardrail: Run each evaluation at least three times with shuffled batch order. Flag any chain where the score variance exceeds your threshold for manual review. Use temperature 0 and fixed seeds where possible.

03

Rubric Dimension Collapse

What to watch: The evaluator conflates distinct rubric dimensions—treating 'logical coherence' and 'evidence grounding' as the same thing, or letting a high score on 'step necessity' inflate 'conclusion validity.' Guardrail: Force independent scoring by requiring the evaluator to assess each dimension in a separate pass or with explicit 'do not consider other dimensions' instructions. Validate dimension score correlation in your eval logs.

04

Over-Penalizing Minor Formatting Issues

What to watch: A reasoning chain that is substantively correct but uses slightly non-standard formatting or verbose language gets docked severely, while a well-formatted but subtly wrong chain passes. Guardrail: Add an explicit instruction to separate 'presentation quality' from 'reasoning quality.' If formatting matters, create a dedicated, low-weight dimension for it rather than letting it contaminate core reasoning scores.

05

Evaluator Misses Missing Steps

What to watch: The reasoning chain contains a logical leap where a necessary intermediate conclusion is assumed but never stated. The evaluator fills in the gap itself and scores the chain as complete. Guardrail: Instruct the evaluator to explicitly list every inferential hop it expects before scoring. If the chain under review skips a hop, that dimension must fail. Test your rubric against chains with known gaps to calibrate sensitivity.

06

Length Bias in Scoring

What to watch: Longer, more verbose reasoning chains consistently score higher than concise, equally valid chains. The evaluator equates quantity with quality. Guardrail: Include a 'conciseness' or 'no redundancy' dimension in your rubric. Normalize scores by chain length in post-processing. Include both verbose and terse golden examples in your calibration set to detect length bias early.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to configure an LLM-as-judge evaluation harness for decomposed reasoning chains. Each criterion targets a specific failure mode in multi-hop reasoning. Run this rubric against a golden dataset before shipping any changes to your decomposition prompts.

CriterionPass StandardFailure SignalTest Method

Logical Coherence

Each reasoning step follows from the previous step and cited evidence without gaps

Non-sequitur transitions, missing intermediate inferences, or circular reasoning loops

Human review of 50 random traces; automated check for step-to-step entailment using a second LLM call

Evidence Grounding

Every factual claim in the reasoning chain is directly supported by at least one cited source passage

Unsupported assertions, hallucinated facts, or claims attributed to sources that do not contain them

Parse citations, extract source text, run NLI model to verify entailment between source and claim

Step Necessity

No redundant, irrelevant, or tautological reasoning steps are present

Steps that restate the same fact, steps that do not advance the chain, or filler content

Ablation test: remove each step and check if the conclusion still follows; flag removable steps

Decomposition Completeness

All sub-questions required to answer the original query are present and correctly ordered

Missing sub-questions that leave evidence gaps, or sub-questions that do not contribute to the final answer

Compare generated sub-questions against a reference decomposition set; measure recall of required sub-questions

Conclusion Validity

The final answer is fully supported by the reasoning chain and does not over-extrapolate

Answer contradicts the chain, introduces new unsupported claims, or draws conclusions beyond the evidence

Check that the answer is entailed by the final reasoning step plus cited evidence; flag over-extrapolation

Source Conflict Handling

Contradictory evidence is explicitly acknowledged and resolved with a documented rationale

Conflicting sources are ignored, silently dropped, or merged without explanation

Inject known conflicting passages into the context; verify the output surfaces and addresses the conflict

Citation Accuracy

Every citation points to the correct source document and passage; no misattribution

Citation points to wrong source, fabricated source IDs, or correct source but wrong passage

Automated span-matching between cited text and source passages; flag mismatches above a similarity threshold

Abstention Appropriateness

The chain correctly abstains or expresses uncertainty when evidence is insufficient

Confident answer given when evidence is missing, or unnecessary abstention when evidence is sufficient

Provide contexts with known evidence gaps; measure abstention rate and compare against expected abstention labels

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base rubric prompt and a small golden set of 10-20 reasoning chains. Remove strict schema enforcement initially; accept prose scorecards. Focus on calibrating the rubric dimensions (logical coherence, evidence grounding, step necessity, conclusion validity) against human judgment before locking down output format.

Prompt modification

  • Replace strict JSON output instructions with: Provide a scorecard with a rating and brief justification for each dimension.
  • Add: If you are uncertain about a dimension, flag it with [LOW_CONFIDENCE] rather than guessing.
  • Use a single example reasoning chain with an annotated scorecard as a one-shot demonstration.

Watch for

  • Score inflation on short or superficially plausible chains
  • The judge model hallucinating evidence that isn't in the provided context
  • Inconsistent application of the rubric across similar chains
  • Overly verbose justifications that mask weak reasoning
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.