Inferensys

Prompt

Evidence-to-Claim Alignment Scoring Prompt

A practical prompt playbook for using Evidence-to-Claim Alignment Scoring Prompt 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, ideal user, required context, and constraints for the Evidence-to-Claim Alignment Scoring Prompt.

This prompt is designed for evaluation engineers and fact-checking pipeline builders who need a calibrated, repeatable method for scoring how well a retrieved passage supports or refutes a specific claim. The primary job-to-be-done is automated evidence quality assessment: given a claim and a candidate passage, produce an alignment score on a defined scale along with reasoning that explains the score. This is a critical component in RAG evaluation harnesses, claim verification systems, and any production pipeline where grounding fidelity must be measured programmatically before answers reach users.

Use this prompt when you have already retrieved candidate passages and need to rank or filter them by evidentiary strength. It is appropriate for offline evaluation runs, online guardrails that check answer grounding before display, and batch scoring of evidence-claim pairs for dataset curation. The prompt expects structured inputs: a single claim and a single passage. It is not designed for multi-hop reasoning across documents, open-ended summarization, or direct answer generation. The output is a score and reasoning, not a final answer. For high-stakes domains such as legal, medical, or financial compliance, always route outputs through human review and maintain audit logs of scored pairs.

Do not use this prompt when you need to compare multiple passages simultaneously, generate a grounded answer, or detect hallucinations in already-written text. Those tasks require separate playbooks for evidence ranking, RAG answer generation, or hallucination detection. This prompt is also not a substitute for human judgment in safety-critical decisions; it is a signal that should feed into a larger evaluation or guardrail system. Before deploying, calibrate the scoring rubric against human-annotated alignment judgments and establish pass/fail thresholds that match your application's tolerance for grounding errors.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Evidence-to-Claim Alignment Scoring Prompt works and where it introduces risk. Use this to decide if the prompt fits your evaluation pipeline before you invest in integration.

01

Good Fit: Automated Eval Harnesses

Use when: you need to score thousands of evidence-claim pairs in a regression testing or LLM-judge pipeline. The prompt produces calibrated alignment scores with reasoning, making it ideal for automated quality gates. Guardrail: always calibrate scores against a human-annotated golden dataset before trusting the scale in production.

02

Good Fit: Fact-Checking Pipelines

Use when: you need to determine whether a retrieved passage supports, refutes, or is neutral toward a specific factual claim. The rubric distinguishes direct support from tangential relevance. Guardrail: set explicit score thresholds for 'supported,' 'refuted,' and 'insufficient evidence' before routing outputs to downstream systems.

03

Bad Fit: Real-Time User-Facing Chat

Avoid when: latency budgets are under 500ms or when the user is waiting for a conversational response. Alignment scoring requires careful reasoning that adds inference time. Guardrail: run this prompt asynchronously in a background evaluation pipeline, not in the critical path of a chat response.

04

Required Inputs

What you must provide: a specific claim string, a retrieved evidence passage, and an output schema specifying the score range and reasoning format. Guardrail: validate that both claim and evidence are non-empty and that the evidence passage includes source metadata before calling the prompt. Missing context produces unreliable scores.

05

Operational Risk: Score Drift

What to watch: alignment scores can drift across model versions, temperature settings, or prompt revisions. A '4' on one model may not equal a '4' on another. Guardrail: pin model versions in evaluation pipelines, log score distributions over time, and recalibrate thresholds when models or prompts change.

06

Operational Risk: Tangential Relevance Overconfidence

What to watch: the model may assign moderate alignment scores to passages that are topically related but do not actually support the claim. This inflates perceived evidence quality. Guardrail: include few-shot examples that explicitly distinguish topical overlap from evidentiary support, and audit borderline scores with human review.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for scoring how well a retrieved passage supports or refutes a specific claim, with calibration guidance and failure-mode notes.

The prompt below is designed for evaluation pipelines, fact-checking harnesses, and RAG quality measurement. It takes a claim and one or more evidence passages and returns an alignment score on a calibrated scale, along with reasoning that explains the score. The template uses square-bracket placeholders so you can swap in your own claim, evidence, scoring rubric, and output schema without rewriting the instruction structure.

text
You are an evidence alignment scorer. Your job is to evaluate how well a retrieved passage supports or refutes a specific claim.

## INPUT
Claim: [CLAIM]
Evidence Passage: [EVIDENCE_PASSAGE]

## SCORING RUBRIC
Use the following 5-point scale to rate alignment between the claim and the evidence passage:
- 5: Directly supports the claim with explicit, unambiguous evidence.
- 4: Strongly supports the claim but requires minor inference.
- 3: Partially supports the claim; some elements align, others are missing or tangential.
- 2: Weakly related; the passage mentions the topic but does not substantiate the claim.
- 1: Contradicts or refutes the claim.
- 0: No relationship; the passage is irrelevant to the claim.

## CONSTRAINTS
[CONSTRAINTS]

## OUTPUT SCHEMA
Return a single JSON object with the following fields:
{
  "alignment_score": <integer 0-5>,
  "alignment_label": <"direct_support" | "strong_support" | "partial_support" | "weak_relation" | "contradicts" | "no_relationship">,
  "reasoning": <string explaining the score with specific reference to the claim and passage text>,
  "key_evidence_span": <string quoting the most relevant sentence or phrase from the passage, or null if none>,
  "missing_elements": <array of strings listing claim components not addressed by the passage>
}

## EXAMPLES
[EXAMPLES]

## INSTRUCTIONS
1. Read the claim and evidence passage carefully.
2. Identify which parts of the claim are addressed, supported, contradicted, or unmentioned.
3. Assign the alignment score that best matches the rubric.
4. Provide reasoning that cites specific text from both the claim and the passage.
5. If the passage contradicts the claim, explain the contradiction explicitly.
6. If the passage is irrelevant, set the score to 0 and explain why.
7. Return only the JSON object. Do not include any text outside the JSON.

To adapt this template, replace [CLAIM] and [EVIDENCE_PASSAGE] with your actual inputs. Populate [CONSTRAINTS] with domain-specific rules such as "ignore passages shorter than 20 words" or "treat hedging language as weak support." Add [EXAMPLES] as few-shot demonstrations showing scored claim-passage pairs, especially edge cases where partial support and contradiction are easy to confuse. For high-stakes domains like legal or clinical review, add a [RISK_LEVEL] field and require human review when the alignment score is 2 or below. Validate the output JSON against the schema before accepting the score, and log any parse failures for retry or escalation.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Evidence-to-Claim Alignment Scoring Prompt. Each placeholder must be populated before the prompt is sent. Missing or malformed inputs are the most common cause of scoring failures in production.

PlaceholderPurposeExampleValidation Notes

[CLAIM]

The statement to evaluate for evidential support

The defendant was present at the scene on March 12

Must be a single, self-contained factual assertion. Reject compound claims or questions. Max 200 words.

[EVIDENCE_PASSAGE]

The retrieved passage to score against the claim

Security footage shows an individual matching the defendant's description entering the building at 8:47 PM on March 12

Must be raw text from a single source document. Reject empty strings. Truncate at 2000 tokens if longer.

[EVIDENCE_SOURCE_METADATA]

Provenance information for the evidence passage

{"doc_id": "EXH-142", "source_type": "surveillance_log", "date": "2024-03-12", "authority": "primary"}

Must be valid JSON with at minimum doc_id and source_type fields. Null allowed if provenance is genuinely unavailable.

[SCORING_DIMENSIONS]

The dimensions on which alignment is evaluated

["directness", "specificity", "contradiction_risk", "temporal_match"]

Must be a JSON array of 2-6 dimension names. Each dimension must have a corresponding definition in the prompt's rubric section.

[SCORE_RANGE]

The numeric range for alignment scores

{"min": 0, "max": 5, "step": 1, "labels": {"0": "contradicts", "1": "no_relation", "3": "partially_supports", "5": "directly_supports"}}

Must be a JSON object with min, max, and labels. Labels must cover the full range. Reject ranges wider than 0-10.

[OUTPUT_SCHEMA]

The expected JSON structure for the model response

{"alignment_score": "number", "dimension_scores": "object", "reasoning": "string", "confidence": "number", "key_quote": "string"}

Must be a valid JSON Schema or type description. Enforce with a post-generation validator. Reject responses that omit required fields.

[ABSTENTION_THRESHOLD]

Confidence level below which the model should refuse to score

0.6

Must be a float between 0.0 and 1.0. When confidence falls below this threshold, the prompt instructs the model to return a null score with an abstention reason instead of guessing.

[CONTRADICTION_POLICY]

Instruction for how to handle evidence that directly refutes the claim

Assign score 0 and flag as contradiction. Do not treat contradiction as neutral.

Must be a clear string instruction. Test with known contradiction pairs to verify the model follows the policy rather than defaulting to mid-range scores.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when scoring evidence-to-claim alignment and how to guard against it in production.

01

Tangential Relevance Over-Scoring

What to watch: The model assigns high alignment scores to passages that share keywords or domain context but don't actually support the specific claim. A passage about 'cloud security best practices' gets scored as supporting 'our cloud security audit passed' when it contains no audit evidence. Guardrail: Include negative examples in the rubric showing tangential vs. direct support. Require the model to quote the exact claim phrase and the exact evidence span before scoring. Add a calibration step that asks 'Would this passage convince a skeptical reviewer?'

02

Contradiction Blindness

What to watch: The model misses passages that directly refute the claim, especially when the contradiction is implicit or requires domain knowledge. A passage stating 'the system was down for 4 hours' gets scored as neutral when the claim is '99.9% uptime was maintained.' Guardrail: Add an explicit contradiction-detection pass before alignment scoring. Prompt the model to identify refuting evidence first, then score alignment. Use a separate 'refutation score' field in the output schema to force the model to consider negative evidence.

03

Scale Miscalibration Across Runs

What to watch: The same evidence-claim pair receives a score of 4/5 in one run and 2/5 in another because the model interprets the rubric scale inconsistently. This breaks automated evaluation pipelines and makes regression testing unreliable. Guardrail: Anchor each scale point with concrete behavioral descriptions and multiple examples. Use a 3-point or 5-point scale with explicit criteria per level. Run calibration checks against a golden set of scored pairs before trusting production scores. Log score distributions to detect drift.

04

Length and Fluency Bias

What to watch: Longer, well-written passages receive higher alignment scores than shorter, choppy passages that contain stronger evidence. The model confuses writing quality with evidentiary strength. Guardrail: Explicitly instruct the model to ignore prose quality, length, and formatting. Include examples where a short, poorly formatted passage is the correct high-score choice. Test with deliberately degraded text to verify the model still identifies strong evidence.

05

Missing Partial Support Recognition

What to watch: The model scores passages as fully supporting a claim when they only address one component. A multi-part claim like 'the system is secure, compliant, and cost-effective' gets a high score from a passage that only addresses security. Guardrail: Decompose complex claims into atomic sub-claims before scoring. Score each sub-claim independently, then aggregate. Add a 'coverage' field that tracks which claim components have evidence and which don't. Flag partial support explicitly rather than letting it hide inside a composite score.

06

Source Authority Leakage into Alignment

What to watch: The model inflates alignment scores for passages from authoritative sources and deflates scores for unknown sources, even when the evidence quality is identical. A peer-reviewed paper and an internal wiki page with the same factual content get different scores. Guardrail: Separate authority scoring from alignment scoring into distinct prompts or pipeline stages. Instruct the alignment scorer to treat all sources as equally credible for the purpose of evidence-to-claim matching. Combine scores downstream only after both dimensions are independently assessed.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to evaluate the quality of evidence-to-claim alignment scores before deploying the prompt. Each criterion targets a specific failure mode observed in production alignment scoring.

CriterionPass StandardFailure SignalTest Method

Alignment Score Calibration

Score correctly distinguishes direct support (0.8-1.0) from tangential relevance (0.4-0.7) and contradiction (0.0-0.3)

Tangential passages receive scores above 0.8 or contradictory passages score above 0.3

Run against a golden set of 20 passage-claim pairs with human-annotated alignment scores; measure Spearman correlation

Reasoning Trace Completeness

Reasoning field explains why the score was assigned, referencing specific claim elements and passage content

Reasoning is generic, circular, or fails to mention any specific content from the passage or claim

Spot-check 10 outputs for reasoning that contains at least one direct quote or paraphrase from the passage

Contradiction Detection

Passages that directly refute the claim receive scores below 0.3 with explicit contradiction reasoning

Contradictory passages receive neutral scores (0.4-0.6) or are misclassified as supportive

Test with 10 known contradiction pairs; measure recall of contradiction flag in reasoning field

Null Evidence Handling

Empty or irrelevant passages receive scores of null or exactly 0.0 with reasoning stating no alignment possible

Empty passages receive non-zero scores or hallucinated alignment justifications

Submit 5 empty or entirely off-topic passages; verify null or 0.0 score output

Schema Compliance

Output matches [OUTPUT_SCHEMA] exactly: score is float 0.0-1.0 or null, reasoning is non-empty string

Missing fields, score outside 0.0-1.0 range, or reasoning field empty

Validate 50 outputs against JSON schema; require 100% structural compliance

Source Grounding

Reasoning references the passage content, not external knowledge or assumptions about the claim

Reasoning mentions facts not present in the provided passage text

Review 20 outputs for statements in reasoning that cannot be traced to the passage content

Score Consistency

Same passage-claim pair produces scores within 0.15 across 3 repeated runs with temperature 0

Score variance exceeds 0.15 across repeated runs on identical input

Run 10 passage-claim pairs 3 times each at temperature 0; measure max score delta per pair

Edge Case: Partial Support

Passages that partially support the claim receive scores 0.4-0.7 with reasoning noting what is and is not supported

Partial support passages receive binary 0.0 or 1.0 scores without nuance

Test with 5 partially supportive passages; verify scores fall in 0.4-0.7 range with nuanced reasoning

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Evidence-to-Claim Alignment Scoring Prompt into an evaluation pipeline or fact-checking application.

This prompt is designed to operate as a scoring microservice within a larger evaluation harness. It expects a single claim and a single retrieved passage as input and returns a structured alignment score with reasoning. The primary integration pattern is a batch evaluation loop: for each claim-evidence pair in your test set, call the LLM with this prompt, parse the structured output, and aggregate scores to measure retrieval precision or grounding quality. Do not use this prompt in a real-time user-facing chat flow without caching or async processing—it is an evaluation tool, not a conversational interface.

Wiring the prompt into an application requires a thin orchestration layer. In Python, wrap the prompt template as a function that accepts claim and evidence strings, injects them into the [CLAIM] and [EVIDENCE] placeholders, and calls your model endpoint. Enforce the output schema with a validator: parse the JSON response, confirm the alignment_score field is an integer between 1 and 5, check that reasoning is a non-empty string, and verify verdict is one of the allowed enum values (SUPPORTS, REFUTES, NEUTRAL, INSUFFICIENT). If validation fails, retry once with the error message appended to the prompt. Log every raw response, parsed score, and validation outcome for later trace analysis. For high-stakes pipelines (legal, clinical, financial), route INSUFFICIENT verdicts and low-confidence scores to a human review queue before they influence downstream decisions.

Model choice matters. This prompt relies on calibrated reasoning and rubric adherence. Use a model with strong instruction-following and structured output capabilities (GPT-4o, Claude 3.5 Sonnet, or equivalent). Avoid smaller or older models that may drift toward always assigning a middling score or misinterpreting the REFUTES category. For cost-sensitive batch evaluation, consider using a faster model for the initial pass and escalating ambiguous cases (scores of 2-3, or NEUTRAL verdicts) to a stronger model for re-scoring. Tool use and RAG are not required for this prompt—it operates on pre-retrieved evidence. If your pipeline retrieves multiple passages per claim, call this prompt once per passage, then aggregate scores with a downstream ranking or max-score selection step. Avoid feeding multiple passages into a single prompt call; the rubric is calibrated for pairwise claim-evidence alignment, and multi-passage inputs degrade score reliability.

Testing and evaluation should include a golden dataset of claim-evidence pairs with human-annotated alignment scores. Measure agreement between model-assigned scores and human labels using quadratic weighted kappa or exact-match accuracy. Pay special attention to failure modes: the model may assign SUPPORTS to tangentially related passages, conflate REFUTES with NEUTRAL, or overuse INSUFFICIENT when the passage is short. Build a regression test suite that includes these edge cases and run it after any prompt or model version change. For production monitoring, track score distribution drift over time—a sudden shift toward higher or lower scores may indicate retrieval pipeline degradation or model behavior changes.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base rubric and a small set of 10-20 claim-evidence pairs. Use a frontier model (GPT-4o, Claude 3.5 Sonnet) with the full scoring rubric inline. Skip strict schema validation initially—focus on whether the scores and reasoning feel calibrated.

Simplify the output to { "score": 1-5, "reasoning": "..." } without the full breakdown. Run the same pairs through 3 times and check score stability.

Watch for

  • Score drift between runs on identical inputs
  • Model defaulting to score=3 when uncertain instead of reasoning through the rubric
  • Overly verbose reasoning that buries the actual alignment judgment
  • Missing the distinction between "directly supports" and "tangentially relevant"
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.