Inferensys

Prompt

Confidence Calibration with Evidence Weighting Prompt Template

A practical prompt playbook for using Confidence Calibration with Evidence Weighting Prompt Template in production AI workflows.
Wide-angle shot of a modern WeWork open floor plan with creative walls covered in AI system architecture diagrams, product team collaborating in standing desk area with industrial lighting.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the ideal production context, required inputs, and failure modes for the confidence calibration prompt to help verification architects decide when it fits their pipeline.

This prompt is designed for verification system architects and pipeline engineers who need to assign calibrated confidence scores to individual claims. It is intended for production pipelines where binary true/false labels are insufficient and where downstream routing decisions—such as auto-verify, human review, or reject—depend on nuanced confidence signals. The ideal user is someone integrating this prompt into a multi-step verification workflow, specifically after claim extraction and evidence retrieval are complete. The prompt expects structured evidence packets with source metadata and produces a confidence score with explicit evidence weights, source authority factors, and an uncertainty interval.

Do not use this prompt for real-time chat or conversational fact-checking where latency and context windows preclude structured evidence input. It is also unsuitable for scenarios where evidence has not yet been retrieved or where claims have not been decomposed into atomic, verifiable units. The prompt requires a specific input shape: a single claim string, a list of evidence objects each containing the evidence text, source identifier, source authority score, and publication date. If your pipeline cannot provide this structured input, you should first implement claim extraction and evidence matching prompts before attempting confidence calibration. Using this prompt with unstructured or incomplete evidence will produce unreliable confidence scores and misleading uncertainty intervals.

Before deploying this prompt, ensure you have a calibration set of human-labeled verification outcomes to validate the model's confidence scores against. The prompt includes instructions for the model to self-assess its calibration, but this is not a substitute for offline evaluation. Common failure modes include overconfidence on claims with superficially strong but shallow evidence, underconfidence when evidence is technically sufficient but poorly written, and miscalibration when source authority scores are inflated. Wire the output into a validation layer that checks for score range compliance, interval coherence, and evidence weight summation before routing decisions are made. If the claim domain is high-risk (legal, medical, financial), always route outputs through human review regardless of the confidence score.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Confidence Calibration with Evidence Weighting prompt works, where it fails, and what you must have in place before using it in a verification pipeline.

01

Good Fit: Multi-Source Verification Pipelines

Use when: you have multiple evidence sources per claim and need a calibrated confidence score that weights source authority, recency, and corroboration. Why it works: the prompt template is designed to combine evidence dimensions into a single calibrated output with explicit weighting rationale.

02

Bad Fit: Single-Source or No-Evidence Scenarios

Avoid when: only one evidence source is available or evidence retrieval hasn't occurred yet. Risk: the model will hallucinate authority justifications or inflate confidence from insufficient data. Guardrail: gate this prompt behind an evidence completeness check—require at least two sources before invoking calibration.

03

Required Input: Pre-Extracted Claims with Evidence Pairs

Prerequisite: claims must already be extracted and paired with candidate evidence before this prompt runs. Missing input risk: feeding raw documents directly produces unreliable confidence scores because the model conflates extraction with evaluation. Guardrail: chain this prompt after a claim extraction step and an evidence retrieval step in your pipeline.

04

Operational Risk: Confidence Drift Across Claim Types

What to watch: the same confidence score may mean different things for statistical claims versus quote-accuracy claims. Guardrail: maintain calibration sets per claim type and run periodic eval checks comparing model-assigned confidence to human-labeled verification outcomes. Recalibrate thresholds when drift exceeds 5%.

05

Operational Risk: Source Authority Inflation

What to watch: the model may assign high authority to sources that match domain keywords without verifying actual credentials. Guardrail: pair this prompt with a source authority pre-check that validates publication venue, author credentials, and recency before authority weights enter the calibration prompt.

06

Human-in-the-Loop Threshold: Low-Confidence Escalation

What to watch: confidence scores in the 0.4–0.7 range often indicate ambiguous evidence that the model can't resolve reliably. Guardrail: define explicit escalation thresholds—route claims below 0.7 to human review with the evidence summary and confidence breakdown attached. Never auto-publish mid-range scores without review.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for assigning calibrated confidence scores to claims based on weighted evidence, source authority, and corroboration.

This template is the core instruction set for a verification model. It forces the model to decompose its confidence decision into explicit factors—evidence weight, source authority, corroboration count, and contradiction presence—before producing a final score and an uncertainty interval. Replace every square-bracket placeholder with the actual values for your verification run before sending the prompt to the model. The template is designed to be stateless and idempotent: given the same inputs, it should produce a structurally identical output that can be validated programmatically.

text
You are a claim verification specialist. Your task is to assign a calibrated confidence score to a single claim based on the provided evidence set. You must not rely on any knowledge outside the provided evidence. Produce a structured output that explains your confidence decision before stating the final score.

## CLAIM TO VERIFY
[CLAIM_TEXT]

## EVIDENCE SET
[EVIDENCE_ITEMS]

## SOURCE AUTHORITY CONTEXT
[SOURCE_AUTHORITY_MAP]

## OUTPUT SCHEMA
Return a single JSON object with the following fields:
- "claim_id": "[CLAIM_ID]"
- "confidence_score": number between 0.0 and 1.0
- "confidence_interval": {"lower": number, "upper": number}
- "evidence_weights": [{"evidence_id": string, "weight": number, "rationale": string}]
- "source_authority_factors": [{"source_id": string, "authority_score": number, "domain_relevance": string}]
- "corroboration_count": number
- "contradiction_flags": [{"evidence_id": string, "severity": "direct"|"partial"|"temporal"|"none", "description": string}]
- "uncertainty_rationale": string
- "calibration_note": string

## CONSTRAINTS
- Base confidence on evidence weights, source authority, corroboration, and contradictions.
- If no evidence supports the claim, confidence_score must be 0.0.
- If evidence is mixed, widen the confidence_interval proportionally.
- Do not invent evidence. If evidence is missing, state it in uncertainty_rationale.
- For high-risk domains ([RISK_LEVEL]), flag low-confidence scores for human review.

## EXAMPLES
[FEW_SHOT_EXAMPLES]

## INSTRUCTIONS
1. Weigh each evidence item for relevance and reliability.
2. Assess source authority per the provided authority map.
3. Count independent corroborating sources; discount redundant citations.
4. Identify and classify any contradictions.
5. Compute a confidence_score and a justified confidence_interval.
6. Explain your uncertainty and any calibration concerns.
7. Output only the JSON object. No markdown, no preamble.

Adaptation guidance: The [EVIDENCE_ITEMS] placeholder should contain a pre-retrieved, deduplicated list of evidence passages with unique IDs. The [SOURCE_AUTHORITY_MAP] should be a pre-computed mapping of source IDs to authority scores and domain relevance tags—do not ask the model to assess authority from scratch unless you have no prior authority model. The [FEW_SHOT_EXAMPLES] placeholder is critical for score calibration; include at least three examples spanning high-confidence, mixed-evidence, and no-evidence scenarios, each with the exact output schema. If you omit examples, expect score drift. For production pipelines, post-process the output with a JSON schema validator and a confidence interval sanity check (lower ≤ score ≤ upper). If the validator fails, retry once with the error message appended to the prompt. If [RISK_LEVEL] is "high" or "critical", route any output with confidence_score < 0.7 or contradiction_flags containing "direct" severity to a human review queue before the score is used downstream.

IMPLEMENTATION TABLE

Prompt Variables

Inputs required by the Confidence Calibration with Evidence Weighting prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe how to check that the input is well-formed and safe.

PlaceholderPurposeExampleValidation Notes

[CLAIM]

The single, atomic factual assertion to be scored.

The Acme 5000 processor is 23% faster than the previous generation.

Must be a single declarative sentence. Reject compound claims (multiple 'and'/'or' clauses). Run a sentence-boundary check.

[EVIDENCE_LIST]

An array of evidence objects, each with source, content, and retrieval date.

[{"source": "Acme Corp press release", "content": "...", "date": "2025-03-15"}]

Must be valid JSON array. Each object must have non-empty 'source', 'content', and ISO-8601 'date' fields. Reject if array is empty.

[CLAIM_DOMAIN]

The knowledge domain of the claim, used to calibrate source authority.

technology, finance, medicine, legal, general

Must match a predefined domain enum. Reject unknown domains to prevent authority miscalibration. Use 'general' as fallback.

[VERIFICATION_CONTEXT]

Optional context about where the claim appeared, used to detect quote-stripping or framing issues.

From a product review article published on example.com on 2025-04-01.

If provided, must be a non-empty string. If null, the prompt skips context-misrepresentation checks. Validate string length < 2000 chars.

[CALIBRATION_REFERENCE]

Optional set of human-labeled claim/score pairs for in-prompt calibration.

[{"claim": "...", "human_confidence": 0.85}]

If provided, must be valid JSON array with 'claim' (string) and 'human_confidence' (float 0.0-1.0). Reject if confidence values are outside bounds.

[OUTPUT_SCHEMA]

The required JSON schema for the confidence output, including fields for score, interval, and explanation.

{"confidence_score": 0.0, "confidence_interval": [0.0, 0.0], "evidence_weights": [], "explanation": ""}

Must be a valid JSON Schema object. Validate with a schema parser before prompt assembly. Reject schemas that omit required fields: confidence_score, evidence_weights, explanation.

[CONSTRAINTS]

Hard constraints on the output, such as requiring explicit uncertainty flags or prohibiting unsupported claims.

Never return a confidence_score above 0.7 without at least two corroborating sources.

Must be a non-empty string. Review for contradictory constraints (e.g., 'always be confident' vs 'flag all uncertainty'). Log constraint set for audit.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Confidence Calibration with Evidence Weighting prompt into a production verification pipeline.

This prompt is designed to be a single step within a larger claim verification pipeline. It should not be called in isolation. The upstream system must first extract discrete, atomic claims from source content and retrieve a candidate evidence set for each claim. The output of this prompt—a calibrated confidence score with evidence weights, source authority factors, and an uncertainty interval—feeds into downstream routing logic that decides whether to auto-verify, escalate for human review, or reject the claim as unverifiable. Treat this prompt as a scoring microservice: it receives a structured claim-evidence pair and returns a structured score, nothing more.

Input Contract: The application layer must assemble the following variables before calling the model: [CLAIM_TEXT] (the exact claim string, not a summary), [CLAIM_DOMAIN] (a controlled vocabulary label like financial, medical, scientific, legal, news), [EVIDENCE_LIST] (a JSON array of evidence objects, each with source_id, source_text, source_type, publication_date, and authority_metadata), [CORROBORATION_COUNT] (integer), [CONTRADICTION_FLAGS] (array of contradiction descriptions if any), and [CALIBRATION_REFERENCE] (optional historical accuracy data for this domain and claim type). Output Contract: Parse the model response into a typed object with fields: confidence_score (float 0.0–1.0), confidence_interval_lower (float), confidence_interval_upper (float), evidence_weight_breakdown (array of objects mapping each evidence item to its weight and rationale), source_authority_factors (object with domain_relevance, recency, and credential_justification), uncertainty_drivers (array of strings explaining what lowered confidence), and calibration_note (string describing alignment with reference data if provided). Use a strict JSON schema validator on the model output before accepting it. If parsing fails, retry once with the validation error included in the retry prompt.

Model Choice and Latency: This prompt benefits from models with strong reasoning and calibration capabilities. GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro are suitable defaults. For high-throughput pipelines, consider routing low-complexity claims (single evidence source, no contradictions) to a faster model like Claude 3 Haiku or GPT-4o-mini, reserving the full prompt for multi-source, contradictory, or high-stakes claims. Retry and Fallback Logic: If the model returns a malformed response, retry once with the original prompt plus the parse error. If the second attempt fails, log the failure, flag the claim for human review, and emit a default low-confidence score (0.0) with an uncertainty_drivers entry of `

scoring_failure

.

Do not silently accept unparseable scores. Human Review Integration: When the output confidence_score falls below your configured threshold (start with 0.7 and tune based on domain risk tolerance)

route the claim to a human review queue. Package the full prompt input

the model's scored output

and the evidence list into a review packet. The reviewer should see exactly what the model saw

plus the model's reasoning

to make an efficient override decision.

Logging and Audit Trail: Log every scoring call with: claim_id, prompt_version, model_id, timestamp, input_evidence_ids, output_confidence_score, output_confidence_interval, parse_success (boolean), retry_count, and routing_decision. This log becomes the foundation for calibration analysis. Periodically compare scored confidence intervals against actual human verification outcomes to detect drift. If the model's confidence intervals consistently fail to contain the true outcome rate (e.g., 90% confidence intervals that contain the correct label only 70% of the time), the prompt needs recalibration—adjust the [CALIBRATION_REFERENCE] input with updated historical accuracy data or add few-shot examples of well-calibrated scores. What to Avoid: Do not use this prompt for claims where no evidence was retrieved—route those to the Unsupported Statement Flagging prompt instead. Do not bypass the output validator; unvalidated scores corrupt downstream routing. Do not treat the confidence score as a probability in the strict statistical sense without calibration evidence; treat it as a calibrated signal for triage decisions.

IMPLEMENTATION TABLE

Expected Output Contract

Validate the structure and content of the calibrated confidence output before routing it to downstream systems or human review queues.

Field or ElementType or FormatRequiredValidation Rule

confidence_score

number (0.0 to 1.0)

Must be a float within the inclusive range [0.0, 1.0]. Reject if null, string, or out of bounds.

confidence_interval

object with lower and upper numbers

Both lower and upper must be numbers, lower <= upper, and both within [0.0, 1.0]. Reject if interval width is 0.0 without explicit justification in interval_justification.

evidence_weights

array of objects

Each object must contain source_id (string), weight (number 0.0-1.0), and rationale (string). Reject if array is empty or any weight is null.

source_authority_factors

array of objects

Each object must contain source_id (string), authority_score (number 0.0-1.0), and domain_relevance (string). Reject if any source_id in evidence_weights is missing from this array.

calibration_notes

string or null

If present, must be a non-empty string. If null, the confidence_interval width must be <= 0.2. Flag for human review if missing and interval width > 0.2.

triage_recommendation

enum string

Must be exactly one of: auto_verify, human_review, reject. Reject if value does not match the enum or is missing.

uncertainty_drivers

array of strings

Must contain at least one entry if confidence_score < 0.8. Reject if empty when score is below threshold. Each string must be non-empty.

audit_trail

object

Must contain model_id (string), prompt_version (string), and timestamp (ISO 8601 string). Reject if any field is missing or timestamp is not a valid ISO 8601 date-time.

PRACTICAL GUARDRAILS

Common Failure Modes

Confidence calibration prompts fail in predictable ways. These are the most common failure modes when assigning evidence-weighted confidence scores, with concrete guardrails to catch them before they reach production.

01

Overconfidence on Thin Evidence

What to watch: The model assigns HIGH confidence to a claim supported by a single low-authority source or a source that only tangentially mentions the claim. The prompt fails to penalize evidence sparsity. Guardrail: Require the prompt to output an explicit evidence count and a minimum corroboration threshold before HIGH confidence is permitted. Add a validator that rejects HIGH confidence when corroboration_count < 2 or source_authority_tier == 'LOW'.

02

Source Authority Inflation

What to watch: The model treats all named sources as authoritative, assigning high weight to press releases, blog posts, or self-published material as if they were peer-reviewed journals. Domain mismatch between source type and claim domain is ignored. Guardrail: Include a source-type-to-claim-domain relevance matrix in the prompt. Require the output to justify authority tier assignments with specific source credentials. Add an eval check that flags when source_authority_tier == 'HIGH' but source_type is not in an approved list for the claim domain.

03

Echo Chamber Corroboration

What to watch: Multiple sources all cite the same original source or syndicate the same wire report. The model counts them as independent corroboration, inflating the confidence score. Guardrail: Instruct the prompt to trace citations to their origin and group sources by root provenance. Require a unique_source_count separate from total_mention_count. Add a test case with five articles all citing one press release and verify the confidence score does not exceed LOW.

04

Contradiction Underweighting

What to watch: Strong contradictory evidence from a high-authority source is present, but the model averages it with supporting evidence rather than treating contradiction as a confidence floor. The score remains MEDIUM when it should drop to LOW or VERY LOW. Guardrail: Add a contradiction severity rule in the prompt: 'If any HIGH-authority source directly contradicts the claim, maximum confidence is LOW regardless of supporting evidence count.' Validate that contradiction presence triggers a confidence ceiling in eval tests.

05

Stale Evidence Penalty on Stable Facts

What to watch: The model applies recency decay to claims about historical facts, physical constants, or settled knowledge where evidence age is irrelevant. A 2010 source on the boiling point of water gets penalized. Guardrail: Include a claim temporal-sensitivity classification step before recency weighting. Instruct the prompt: 'Apply recency decay only to claims classified as time-sensitive (market data, current events, technology specs). Stable facts use source authority without recency penalty.' Test with a mix of time-sensitive and time-stable claims.

06

Missing Evidence Treated as Negative Evidence

What to watch: The model cannot find evidence for a claim and assigns LOW confidence, implying the claim is false. In reality, absence of evidence in the provided source set means the claim is UNVERIFIED, not false. Guardrail: Require a distinct UNVERIFIED confidence level separate from LOW. Instruct the prompt: 'When no relevant evidence is found in the provided sources, output confidence = UNVERIFIED, not LOW. LOW means evidence exists and contradicts or weakly supports the claim.' Add eval cases with empty evidence sets to confirm UNVERIFIED output.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the calibration and reliability of confidence scores produced by the prompt before shipping to production. Each criterion targets a specific failure mode in evidence-weighted confidence scoring.

CriterionPass StandardFailure SignalTest Method

Confidence Score Calibration

Predicted confidence interval contains the true outcome for ≥90% of claims in a labeled test set

Scores are systematically overconfident (narrow intervals missing true labels) or underconfident (wide intervals providing no signal)

Run prompt on 50+ human-labeled claims; compute empirical coverage of 90% confidence intervals

Evidence Weight Justification

Every confidence score is accompanied by explicit weights for at least 2 evidence dimensions (source authority, recency, corroboration count, contradiction severity)

Scores appear without weight breakdowns, or weights are identical across claims with different evidence profiles

Parse output for weight fields; verify weights vary across claims with known evidence differences

Source Authority Factor Validity

Authority scores for known high-credibility sources (peer-reviewed journals, official government data) are ≥0.7; known low-credibility sources (anonymous forums, unverified social media) are ≤0.3

Authority scores are uniformly high regardless of source type, or authority is assigned without source identification

Test with 10 source pairs of known authority levels; check score ordering matches expected ranking

Contradiction Impact on Confidence

Presence of a verified contradiction reduces confidence by ≥0.2 compared to the same claim without contradiction

Contradictions are noted but confidence remains unchanged, or contradictions are ignored entirely

Submit claim pairs with and without contradictions; measure confidence delta

Uncertainty Interval Width Appropriateness

Interval width correlates with evidence scarcity: claims with single weak source have wider intervals than claims with multiple strong sources

All intervals have identical width regardless of evidence quantity, or intervals are so wide they provide no discrimination

Compute interval width variance across claims with 1, 3, and 5+ corroborating sources; verify monotonic relationship

Missing Evidence Flagging

Claims with zero supporting evidence receive confidence <0.5 and an explicit missing-evidence flag

Claims with no evidence receive confidence ≥0.5 or are scored without noting evidence absence

Submit claims with empty evidence set; verify confidence below threshold and flag presence

Calibration Drift Across Claim Types

Confidence score calibration error (ECE) is ≤0.1 for each of 3+ claim categories (numerical, textual, temporal)

One claim category shows ECE >0.2 while others are calibrated, indicating systematic bias

Stratify test set by claim type; compute ECE per category

Human-Review Routing Threshold Consistency

Claims scoring below [CONFIDENCE_THRESHOLD] are consistently routed to human review with complete evidence packets

Boundary claims near threshold flip routing decisions on repeated runs, or review packets omit key evidence

Run prompt 3 times on 10 boundary claims; check routing stability and packet completeness

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a single model. Replace [EVIDENCE_ITEMS] with a flat list of pre-retrieved passages. Use a simple 1–5 confidence scale instead of the full interval output. Skip source authority weighting initially—focus on evidence-to-claim relevance scoring.

code
CONFIDENCE_SCALE: 1 (no support) to 5 (fully supported)
OUTPUT: { "score": int, "rationale": string }

Watch for

  • Scores clustering at 3 for every claim (central tendency bias)
  • Rationale repeating claim text instead of citing evidence
  • No distinction between missing evidence and contradictory evidence
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.