Inferensys

Prompt

Contradiction-Aware Confidence Adjustment Prompt Template

A practical prompt playbook for pipeline developers handling conflicting evidence across sources. Produces a revised confidence score that accounts for contradiction severity, source reliability trade-offs, and unresolved conflicts.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

A downstream adjustment step for verification pipelines that prevents over-confident outputs when sources disagree.

This prompt is designed for verification pipeline developers who have already scored a claim's initial confidence and detected contradictory evidence from multiple sources. It takes the original confidence score, the claim, the supporting evidence, and the contradicting evidence as inputs, then produces a revised confidence score that accounts for contradiction severity, source reliability trade-offs, and unresolved conflicts. The core job-to-be-done is calibrated confidence adjustment—applying a reasoned, evidence-aware penalty rather than a flat reduction or binary rejection. The ideal user is a verification system architect or pipeline engineer who needs to maintain score integrity when evidence is mixed, ensuring that downstream triage thresholds and human-review routing decisions are based on realistic confidence levels.

Use this prompt when your pipeline has completed claim extraction and evidence matching, and you need to adjust confidence downward in a calibrated way. It is not a replacement for initial confidence scoring or evidence retrieval. It assumes you already have a structured claim, a set of supporting evidence items with source metadata, and a set of contradicting evidence items with source metadata. The prompt works best when each evidence item includes a reliability indicator (such as source authority tier, recency, or methodology transparency) so the model can weigh contradictions proportionally. For example, a contradiction from a high-authority primary source should reduce confidence more than a contradiction from a low-tier aggregator. The prompt also requires the original confidence score as a numeric input, typically on a 0-1 or 0-100 scale, so the adjustment is anchored to a prior assessment rather than generated from scratch.

Do not use this prompt when you lack structured evidence metadata, when contradictions are purely stylistic or interpretive rather than factual, or when the initial confidence score was not produced by a consistent scoring method. It is also inappropriate for claims where the contradiction is a direct negation of the claim by a single authoritative source—in those cases, a binary override or human escalation is more appropriate than a calibrated adjustment. After running this prompt, you should validate the output by checking that the revised score is strictly less than or equal to the original score, that the adjustment magnitude correlates with contradiction severity, and that the explanation references specific evidence items rather than vague generalizations. For high-stakes domains such as healthcare, legal, or financial claims, always route the adjusted output to human review with the full evidence packet before accepting the revised score.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Contradiction-Aware Confidence Adjustment Prompt works, where it fails, and what you must have in place before using it.

01

Good Fit: Multi-Source Verification Pipelines

Use when: your pipeline retrieves evidence from multiple independent sources and some sources directly conflict. The prompt excels at adjusting confidence downward proportionally to contradiction severity rather than binary rejection. Guardrail: ensure sources are truly independent—echo citations (same underlying data) will trigger false contradiction signals.

02

Bad Fit: Single-Source or No-Evidence Scenarios

Avoid when: only one evidence source exists or the claim lacks any retrievable evidence. Contradiction adjustment requires at least two sources to compare. Without multiple sources, the prompt will either hallucinate conflicts or produce meaningless adjustments. Guardrail: gate this prompt behind a minimum-source-count check (≥2 sources) before invocation.

03

Required Input: Structured Claim-Evidence Pairs

What you need: each claim must arrive with pre-extracted evidence items containing source identifiers, authority scores, and the specific supporting or contradicting passages. The prompt cannot perform retrieval itself. Guardrail: validate input schema before calling—missing source metadata or ungrounded evidence items will produce uncalibrated confidence adjustments.

04

Operational Risk: Over-Penalization of Minor Conflicts

What to watch: the model may treat minor terminological differences or temporal framing shifts as substantive contradictions, excessively penalizing confidence. This is the most common production failure mode. Guardrail: implement a contradiction severity threshold—only adjust confidence when contradiction severity exceeds a calibrated minimum, and log all adjustments for human spot-checking.

05

Operational Risk: False Equivalence Between Sources

What to watch: the model may weight a low-authority contradictory source equally against a high-authority supporting source, producing an unjustified confidence drop. Guardrail: pre-compute source authority scores and pass them as explicit weights in the evidence structure. Include an eval check that flags adjustments where low-authority contradictions drive disproportionate confidence reduction.

06

Pipeline Position: After Evidence Matching, Before Final Scoring

Where it fits: this prompt belongs after claim-evidence matching and contradiction detection, but before final confidence scoring or triage routing. It adjusts an initial confidence estimate based on contradiction analysis. Guardrail: maintain a clear handoff contract—input must include the pre-adjustment confidence score, and output must feed directly into the triage threshold comparison step without intermediate transformation.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template that adjusts a claim's confidence score based on the severity, source reliability, and resolution status of contradictory evidence.

This template is designed to be the core instruction set for a contradiction-aware confidence adjustment step in your verification pipeline. It takes an original claim, its initial confidence score, and a structured summary of contradictory evidence as inputs. The model's job is not to re-verify the claim from scratch, but to apply a principled, explainable penalty to the confidence score based on the nature of the contradiction. The output is a revised score and a structured justification, making the adjustment logic auditable.

text
You are a precise verification analyst. Your task is to adjust the confidence score of a claim based on a set of identified contradictions. Do not re-evaluate the claim's truthfulness from scratch. Apply a penalty to the initial confidence score that is proportional to the contradiction's severity, the reliability of the contradicting source, and whether the conflict is resolvable.

INPUTS:
- ORIGINAL_CLAIM: [CLAIM_TEXT]
- INITIAL_CONFIDENCE_SCORE: [INITIAL_SCORE] (a float between 0.0 and 1.0)
- CONTRADICTIONS: [CONTRADICTION_LIST] (a JSON list of objects, each with "contradicting_evidence", "source_authority_score", and "contradiction_type" fields)
- ADJUSTMENT_RULES: [ADJUSTMENT_RULES] (a string describing the penalty logic, e.g., "A direct contradiction from a highly authoritative source should reduce confidence by at least 0.4.")

INSTRUCTIONS:
1. For each contradiction in the list, assess its impact based on the ADJUSTMENT_RULES.
2. Calculate a final adjusted confidence score. The score must be a float between 0.0 and 1.0, and cannot be higher than the INITIAL_CONFIDENCE_SCORE.
3. Classify the contradiction's resolution status as "resolvable," "unresolvable_conflict," or "insufficient_information."
4. Provide a concise, step-by-step justification for the adjustment.

OUTPUT_SCHEMA:
{
  "adjusted_confidence_score": <float>,
  "contradiction_resolution_status": "<status_string>",
  "adjustment_justification": "<step_by_step_reasoning_string>"
}

CONSTRAINTS:
- Do not invent new evidence or contradictions.
- If the CONTRADICTIONS list is empty, return the INITIAL_CONFIDENCE_SCORE unchanged.
- If a contradiction is deemed irrelevant or from a completely unreliable source, explain why its penalty was 0.0.

To adapt this template, replace the square-bracket placeholders with data from your upstream pipeline steps. The [CONTRADICTION_LIST] should be the direct output of a contradiction detection prompt, and the [ADJUSTMENT_RULES] can be a static policy string or dynamically generated based on the claim's domain. After receiving the output, validate the adjusted_confidence_score is within the [0.0, 1.0] range and is less than or equal to the [INITIAL_SCORE]. For high-stakes verification, route outputs where the contradiction_resolution_status is "unresolvable_conflict" directly to a human review queue, packaging the original claim, all evidence, and the model's justification into the review packet.

IMPLEMENTATION TABLE

Prompt Variables

Each variable must be validated before the prompt is sent. Missing or malformed inputs are the most common cause of contradiction mis-scoring and false-equivalence errors in production.

PlaceholderPurposeExampleValidation Notes

[CLAIM_TEXT]

The claim being evaluated for confidence adjustment

The 2023 Q4 revenue grew 12% year-over-year according to the earnings call.

Must be a single atomic claim. Reject if multiple claims detected. Length: 10-500 characters. Schema check: non-empty string.

[INITIAL_CONFIDENCE_SCORE]

The pre-adjustment confidence score from the upstream scoring step

0.85

Must be a float between 0.0 and 1.0 inclusive. Reject if null or out of range. Parse check: numeric type coercion allowed but warn if string input.

[EVIDENCE_LIST]

Array of evidence items with source, content, and authority metadata

[{"source_id":"src_42","content":"Revenue grew 11.8%...","authority_tier":"primary","recency_days":30}]

Must be a valid JSON array with 1-50 items. Each item requires source_id, content, and authority_tier fields. Schema check: validate against evidence item schema. Reject empty array.

[CONTRADICTION_PAIRS]

List of contradiction pairs found between evidence items or against the claim

[{"evidence_a_id":"src_42","evidence_b_id":"src_17","conflict_type":"numerical_disagreement","severity":"moderate","description":"Q4 growth reported as 12% vs 11.8%"}]

Must be a valid JSON array. Each pair requires evidence_a_id, evidence_b_id, conflict_type, and severity. Severity must be one of: negligible, minor, moderate, major, critical. Empty array allowed if no contradictions detected.

[SOURCE_RELIABILITY_MAP]

Reliability scores for each source referenced in evidence or contradictions

{"src_42":0.92,"src_17":0.78}

Must be a valid JSON object mapping source_id strings to float scores 0.0-1.0. Every source_id in EVIDENCE_LIST and CONTRADICTION_PAIRS must have an entry. Missing source triggers pre-flight rejection.

[ADJUSTMENT_RULES]

Domain-specific rules governing how contradictions affect confidence

{"numerical_disagreement":{"minor":0.05,"moderate":0.15,"major":0.30,"critical":0.50},"factual_contradiction":{"minor":0.10,"moderate":0.25,"major":0.45,"critical":0.70}}

Must be a valid JSON object. Rules must map conflict_type to severity-to-penalty mappings. Penalty values must be floats 0.0-1.0. Schema check: validate against expected conflict_type enum. Null allowed if using default rules.

[CORROBORATION_COUNT]

Number of independent sources supporting the claim before contradiction adjustment

3

Must be a non-negative integer. Used to prevent over-penalization when multiple sources agree despite one contradiction. Parse check: integer coercion allowed. Null defaults to 1.

[DOMAIN_CONTEXT]

The subject domain for calibrating contradiction severity expectations

financial_reporting

Must be a non-empty string from the allowed domain enum. Controls whether a numerical disagreement of 0.2% is treated as minor or major. Reject unrecognized domains. Schema check: enum validation required.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the contradiction-aware confidence adjustment prompt into a production verification pipeline with validation, retries, and audit logging.

This prompt is designed to sit downstream of claim extraction and evidence retrieval, receiving a claim, its initial confidence score, and a set of contradictory evidence items. It is not a standalone fact-checker. The harness must supply structured inputs: the original claim text, the pre-contradiction confidence score with its basis, and each contradictory source with its authority score and the specific conflicting assertion. Without this structured context, the model cannot perform calibrated adjustment and will default to generic hedging.

Wire the prompt as a synchronous step in your verification pipeline after contradiction detection has fired. The application layer should validate inputs before calling the model: ensure the initial confidence is a float between 0.0 and 1.0, each contradiction entry includes a source identifier and a severity flag, and source authority scores are normalized to a consistent scale. After receiving the model output, validate the revised confidence score is within [0.0, 1.0] and that the adjustment rationale references specific contradictions rather than vague language. If validation fails, retry once with the validation error appended to the prompt as a correction hint. Log every adjustment decision—original score, contradictions presented, revised score, and rationale—to an audit trail for downstream governance review.

For high-stakes domains such as healthcare claims or financial disclosures, route any adjustment exceeding a 0.3 magnitude change to a human review queue with the full contradiction packet and model rationale attached. Use a structured output schema with fields for revised_confidence, adjustment_rationale, unresolved_conflicts, and over-penalization_check to make automated threshold routing reliable. Avoid using this prompt for claims with more than five active contradictions; instead, split the contradiction set or escalate for human analysis, as the model's severity calibration degrades with excessive conflicting signals.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the required fields, types, and validation rules for the contradiction-adjusted confidence output. Use this contract to parse, validate, and store the model response before routing downstream.

Field or ElementType or FormatRequiredValidation Rule

adjusted_confidence_score

float (0.0 to 1.0)

Must be a number between 0.0 and 1.0 inclusive. Reject if null, non-numeric, or out of range.

original_confidence_score

float (0.0 to 1.0)

Must match the input confidence score exactly. Reject if missing or mismatched.

contradiction_severity

string enum

Must be one of: 'none', 'minor', 'moderate', 'major', 'direct'. Reject any other value.

adjustment_rationale

string (<= 500 chars)

Must contain a non-empty explanation referencing specific contradictions and source reliability trade-offs. Reject if empty or generic.

contradicting_sources

array of objects

Each object must have 'source_id' (string) and 'contradiction_type' (string). Reject if array is empty when contradiction_severity is not 'none'.

unresolved_conflicts

array of strings

Must list specific factual points that remain unresolved. Reject if empty when contradiction_severity is 'major' or 'direct'.

over_penalization_check

boolean

Must be true if the adjustment was reviewed for over-penalization risk. Reject if false or missing.

false_equivalence_check

boolean

Must be true if the adjustment was reviewed for false-equivalence errors. Reject if false or missing.

PRACTICAL GUARDRAILS

Common Failure Modes

Contradiction-aware confidence adjustment is powerful but brittle. These are the most common production failures when scoring claims against conflicting evidence, with concrete mitigations for each.

01

Over-Penalization from Minor Conflicts

What to watch: The model treats any contradiction, no matter how trivial (e.g., a date off by one day, a rounding difference), as a severe confidence penalty. This produces falsely low scores for substantially correct claims. Guardrail: Add a contradiction_materiality field to your output schema. Require the model to classify each conflict as 'material' or 'immaterial' before applying the penalty weight. Test with a golden set of claims containing known immaterial discrepancies.

02

False Equivalence Between Unequal Sources

What to watch: The model assigns equal weight to a contradiction from a high-authority primary source and a low-credibility source, dragging confidence down disproportionately. A single unreliable source can tank an otherwise well-supported claim. Guardrail: Require source authority scoring before contradiction weighting. Implement a rule: a contradiction only reduces confidence if the contradicting source meets a minimum authority threshold. Log cases where low-authority contradictions are discarded for auditability.

03

Confidence Collapse on Unresolvable Conflicts

What to watch: When two equally authoritative sources directly contradict each other, the model may collapse confidence to near-zero rather than expressing calibrated uncertainty. This destroys the signal value of the score for triage routing. Guardrail: Set a floor value for confidence when contradictory evidence is of equal quality. The output should indicate 'conflict-unresolved' status rather than 'likely false.' Route these cases to human review with a structured conflict brief, not a low-confidence auto-rejection.

04

Ignoring Temporal Context in Contradictions

What to watch: The model flags a contradiction between a 2019 source and a 2023 source without recognizing that the claim may have been true at one point and false later. This produces false contradiction signals for time-evolving facts. Guardrail: Include a temporal_relevance check in the prompt. Require the model to compare source dates and assess whether the contradiction is genuine or reflects a legitimate change over time. Add a temporal_conflict flag separate from substantive contradiction.

05

Prompt Leakage of Prior Confidence Anchoring

What to watch: If the prompt includes an initial confidence score before contradiction analysis, the model may anchor on that score and under-adjust or over-adjust based on phrasing rather than evidence weight. This produces scores that appear calibrated but are actually prompt-artifact driven. Guardrail: Present contradictory evidence without the initial score in the adjustment prompt. Ask the model to produce a revised score from scratch given all evidence, then compare deltas programmatically. Test with counterbalanced prompt variants to detect anchoring effects.

06

Silent Failure on Implicit Contradictions

What to watch: The model misses contradictions that require inference or domain knowledge to detect—such as two sources implying incompatible timelines without stating them explicitly. Confidence remains high because no explicit conflict was flagged. Guardrail: Add an explicit instruction to check for 'implied contradictions' where source A and source B cannot both be true given logical or domain constraints. Include few-shot examples of implied contradictions in your prompt. Test with adversarial claim pairs designed to surface inference gaps.

IMPLEMENTATION TABLE

Evaluation Rubric

Run these checks on a golden dataset of claims with known contradiction outcomes to validate the prompt before production deployment.

CriterionPass StandardFailure SignalTest Method

Contradiction Detection Recall

Prompt identifies >= 95% of known contradictions in the golden dataset

Known contradictions are scored as 'no contradiction' or severity is null

Run on 50+ labeled claim-evidence pairs with ground-truth contradiction labels

Over-Penalization Rate

Confidence drop is within ±10% of human-annotated adjustment for non-contradicting evidence

Non-contradicting evidence triggers a confidence reduction > 10%

Compare prompt-adjusted confidence to human-annotated confidence on 30+ non-contradiction pairs

False-Equivalence Error Rate

Prompt correctly distinguishes direct contradiction from partial disagreement in >= 90% of cases

Partial disagreement is assigned the same severity as direct contradiction

Test on 20+ pairs with graded contradiction severity labels from human reviewers

Source Reliability Trade-Off Handling

When high-authority and low-authority sources conflict, the prompt favors the high-authority source in >= 85% of cases

Confidence adjustment ignores source authority tier or weights sources equally

Use 15+ pairs with known authority differentials and expected resolution direction

Unresolved Conflict Flagging

Prompt marks conflict as 'unresolved' when evidence is evenly balanced and contradictory

Balanced contradictory evidence produces a definitive confidence score without an unresolved flag

Test on 10+ pairs with intentionally balanced contradictory evidence from equally authoritative sources

Output Schema Compliance

Output matches [OUTPUT_SCHEMA] with all required fields present and correctly typed

Missing fields, extra fields, or type mismatches in the JSON output

Validate output against JSON Schema for 100 sampled runs; reject if validation errors > 0

Confidence Score Range Adherence

Adjusted confidence is within [MIN_CONFIDENCE] to [MAX_CONFIDENCE] inclusive

Confidence score outside the defined range or non-numeric

Assert numeric range check on all outputs from the golden dataset run

Explanation Grounding

Every sentence in the adjustment explanation references a specific evidence item or source attribute

Explanation contains unsupported claims, hallucinated evidence details, or generic statements without source reference

Manual review of 25 explanations; flag if any sentence lacks a traceable evidence reference

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt\nStart with the base contradiction-aware confidence adjustment prompt but relax strict schema enforcement. Use a single model call with inline evidence pairs rather than a multi-step pipeline. Accept free-text confidence explanations alongside the numeric score.\n\n```\nSYSTEM: You are a claim verifier. Given a claim, supporting evidence, and contradicting evidence, produce a revised confidence score (0-100) and a brief explanation of how contradictions affected the score.\n\nCLAIM: [CLAIM_TEXT]\nSUPPORTING EVIDENCE: [SUPPORTING_EVIDENCE_LIST]\nCONTRADICTING EVIDENCE: [CONTRADICTING_EVIDENCE_LIST]\n\nOUTPUT: JSON with "adjusted_confidence", "contradiction_impact", "explanation"\n```\n\n### Watch for\n- Missing contradiction severity differentiation (direct vs. indirect contradictions treated equally)\n- Over-penalization when contradicting sources have low authority\n- False equivalence between single weak contradiction and multiple strong supporting sources\n- No source reliability weighting in the adjustment logic

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.