This prompt is for RAG pipeline architects and search engineers who need to move beyond a flat list of retrieved documents. Its job is to assign a calibrated confidence tier—high, medium, low, or insufficient—to each evidence passage based on specificity, directness of support, and source quality. Use it when your downstream answer generation or citation logic must gate on evidence strength, not just relevance. The ideal user is someone integrating this step between retrieval and generation in a production system where hallucination risk must be controlled programmatically.
Prompt
Evidence Confidence Score Assignment Prompt

When to Use This Prompt
Define when to deploy the Evidence Confidence Score Assignment Prompt and when to choose a different tool.
Deploy this prompt when you have a set of candidate passages and need a structured, machine-readable confidence label for each one before they enter the final context window. It is appropriate for high-stakes domains like legal research, clinical decision support, or financial analysis where using weak evidence is worse than admitting uncertainty. The prompt expects a query, a claim or question, and a list of passages with source metadata. It is not designed for ranking passages against each other in a head-to-head comparison—use the Pairwise Evidence Comparison Prompt for that. It is also not a replacement for a retrieval model; it assumes you already have candidates and need to score their evidentiary weight.
Do not use this prompt when you need a single ranked list sorted by relevance. For that, use the Multi-Passage Evidence Ranking Prompt Template. Avoid it when your primary goal is to detect contradictions between sources—the Evidence Ranking with Contradiction Detection Prompt handles that explicitly. If you are operating under a strict token budget and need to select a top-K subset, combine this prompt's output with the Top-K Evidence Selection Prompt Template. Finally, if your system requires a detailed, human-readable explanation for every score, use the Evidence Ranking with Explainability Output Prompt instead. This prompt prioritizes structured, gating-ready labels over narrative justification.
Use Case Fit
Where the Evidence Confidence Score Assignment Prompt delivers calibrated rankings and where it introduces risk. Use these cards to decide if this prompt fits your pipeline stage and operational constraints.
Good Fit: Pre-Generation Gating
Use when: you need to block low-confidence evidence from reaching the answer generation step. Guardrail: Set a minimum confidence tier threshold (e.g., only HIGH and MEDIUM passages proceed) and route INSUFFICIENT passages to a clarification or refusal workflow.
Bad Fit: Real-Time Chat Without Retrieval
Avoid when: the system has no retrieval step or evidence passages to score. Risk: The prompt will hallucinate source assessments or assign confidence to fabricated context. Guardrail: Only invoke this prompt downstream of a retrieval call with actual passage content and metadata.
Required Inputs
Required: A query or claim, a set of retrieved passages with source metadata, and a defined confidence schema (HIGH/MEDIUM/LOW/INSUFFICIENT). Guardrail: Validate that each passage includes a unique ID, full text, and source origin before calling the prompt. Missing metadata produces uncalibrated scores.
Operational Risk: Score Drift Across Models
Risk: Confidence tier boundaries shift when the underlying model changes, causing previously HIGH passages to score MEDIUM. Guardrail: Calibrate tier thresholds against a golden dataset of scored passages after any model upgrade. Run regression tests before promoting the new prompt version.
Operational Risk: Position Bias
Risk: Earlier passages in the input list receive inflated confidence scores regardless of content quality. Guardrail: Randomize passage order before scoring or run a separate position-bias check that re-scores passages in reversed order and flags discrepancies.
Not a Replacement for Human Review
Risk: Teams treat HIGH confidence as ground truth and skip verification. Guardrail: For regulated domains, require human review of all HIGH-confidence assignments before they gate downstream answers. Log confidence decisions with rationale for audit trails.
Copy-Ready Prompt Template
A reusable prompt for assigning confidence tiers to evidence passages based on specificity, directness of support, and source quality.
This prompt template is designed to be dropped into a RAG pipeline immediately after retrieval and before answer generation. It forces the model to evaluate each evidence passage against explicit criteria—specificity, directness of support, and source quality—and assign a calibrated confidence tier. The output is a ranked list with confidence labels that downstream components can use for gating, citation selection, or answer abstention. The template uses square-bracket placeholders so you can wire in your own retrieval results, query context, and output constraints without modifying the core evaluation logic.
textYou are an evidence quality evaluator for a retrieval-augmented generation system. Your task is to assign a confidence tier to each evidence passage based on how well it supports the user's query. ## INPUT **User Query:** [QUERY] **Retrieved Evidence Passages:** [EVIDENCE_PASSAGES] ## EVALUATION CRITERIA For each passage, assess three dimensions on a scale of 1-5: 1. **Specificity:** How precisely does the passage address the query? (1 = vague/general, 5 = highly specific) 2. **Directness of Support:** Does the passage directly support an answer, or is it tangential? (1 = unrelated, 5 = directly confirms or denies) 3. **Source Quality:** Consider the source's authority, recency, and reliability based on available metadata. (1 = low quality/unknown, 5 = high authority/verified) ## CONFIDENCE TIERS - **HIGH:** Combined score >= 12, with no dimension below 3. The passage provides strong, direct, authoritative support. - **MEDIUM:** Combined score 8-11, or any dimension at 2. The passage is relevant but has gaps in specificity, directness, or authority. - **LOW:** Combined score 5-7, or any dimension at 1. The passage is weakly relevant and should not be used as primary evidence. - **INSUFFICIENT:** Combined score < 5. The passage does not meaningfully support the query and should be discarded. ## CONSTRAINTS [CONSTRAINTS] ## OUTPUT SCHEMA Return a JSON object with the following structure: { "ranked_evidence": [ { "passage_id": "string", "confidence_tier": "HIGH|MEDIUM|LOW|INSUFFICIENT", "scores": { "specificity": 1-5, "directness": 1-5, "source_quality": 1-5 }, "rationale": "Brief explanation of the assigned tier." } ], "summary": { "total_passages": number, "high_count": number, "medium_count": number, "low_count": number, "insufficient_count": number, "sufficient_evidence_available": true|false } } ## INSTRUCTIONS 1. Evaluate every passage independently before comparing. 2. If source metadata is missing, score source_quality as 2 (unknown) unless the content itself signals authority. 3. If no passage reaches HIGH confidence, set sufficient_evidence_available to false. 4. Do not fabricate scores. If a passage is genuinely insufficient, label it as such.
To adapt this template for your pipeline, replace [QUERY] with the user's original question and [EVIDENCE_PASSAGES] with your retrieval results formatted as an array of objects containing at minimum a passage_id and text field. The [CONSTRAINTS] placeholder lets you inject domain-specific rules—for example, requiring recency thresholds for financial data or mandating that only peer-reviewed sources can reach HIGH confidence. After the model returns its JSON output, validate the structure against the schema before passing ranked passages to your answer generation step. For high-stakes domains, add a human review gate when sufficient_evidence_available is false or when the gap between HIGH and MEDIUM counts exceeds a threshold you define.
Prompt Variables
Required inputs for the Evidence Confidence Score Assignment Prompt. Each placeholder must be populated before the prompt is assembled and sent to the model. Validation notes describe how to verify the input is well-formed before execution.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[QUERY] | The user question or claim that evidence passages are being scored against | What is the standard treatment protocol for stage II hypertension in adults? | Must be non-empty string. Check length > 10 chars. If multi-sentence, verify it represents a single query intent rather than multiple unrelated questions. |
[EVIDENCE_PASSAGES] | Array of retrieved passages to score, each with content and optional metadata | [{"id": "p1", "text": "First-line treatment for stage II hypertension includes...", "source": "AHA Guidelines 2023", "date": "2023-06-01"}] | Must be valid JSON array with 1-20 objects. Each object requires 'id' and 'text' fields. 'text' must be non-empty string. Optional fields: 'source', 'date', 'authority', 'doc_type'. Reject if array is empty or contains duplicate IDs. |
[CONFIDENCE_TIERS] | Definition of confidence levels used to classify each passage | ["high", "medium", "low", "insufficient"] | Must be array of 3-5 unique string labels. Each tier should have a clear operational definition in the prompt instructions. Default tiers are 'high', 'medium', 'low', 'insufficient'. Verify no duplicate tier names. |
[SCORING_DIMENSIONS] | Criteria used to evaluate each passage: specificity, directness, source quality, recency | ["specificity", "directness", "source_quality", "recency"] | Must be array of 2-6 unique dimension names. Each dimension must map to explicit scoring guidance in the prompt body. Common dimensions: 'specificity', 'directness', 'source_quality', 'recency', 'authority'. Verify dimensions are not contradictory. |
[OUTPUT_SCHEMA] | Expected JSON structure for the ranked and scored output | {"ranked_passages": [{"id": "string", "confidence": "string", "score": 0.0-1.0, "rationale": "string"}]} | Must be valid JSON Schema or example structure. Verify it includes fields for passage ID, confidence tier, numerical score, and rationale. Schema must match the confidence tiers defined in [CONFIDENCE_TIERS]. Reject if schema allows tiers not in the defined set. |
[SOURCE_AUTHORITY_MAP] | Optional mapping of source names to authority scores for consistent source quality weighting | {"AHA Guidelines": 0.95, "PubMed": 0.90, "WebMD": 0.60, "Unknown Blog": 0.20} | If provided, must be valid JSON object mapping source name strings to float scores 0.0-1.0. If null or omitted, the prompt should score source quality from passage content alone. Verify no negative scores or scores > 1.0. |
[TEMPORAL_WEIGHT_CONFIG] | Optional configuration for how recency affects confidence scoring | {"enabled": true, "max_age_days": 365, "decay_factor": 0.5} | If provided, must be valid JSON object with 'enabled' boolean. If enabled, requires 'max_age_days' (positive integer) and 'decay_factor' (float 0.0-1.0). If null, temporal weighting is disabled and all passages are treated as equally current. |
[MINIMUM_CONFIDENCE_THRESHOLD] | Threshold below which passages are marked insufficient and should not be used for answer generation | 0.40 | Must be float between 0.0 and 1.0. Passages scoring below this threshold receive 'insufficient' tier regardless of relative ranking. Default: 0.30. Verify threshold is not higher than the expected floor for 'low' tier passages to avoid marking all passages insufficient. |
Common Failure Modes
Confidence scoring prompts fail in predictable ways. Here are the most common failure modes for evidence confidence assignment and how to guard against them before they reach downstream answer generation.
Overconfidence on Vague Passages
What to watch: The model assigns HIGH confidence to passages that use authoritative-sounding language but lack specific, verifiable facts. Generic statements like 'studies show' or 'experts agree' trigger false confidence. Guardrail: Add a specificity check dimension to the scoring rubric. Require the model to extract the exact claim the passage supports before assigning a tier. Flag passages with zero extractable claims as INSUFFICIENT regardless of tone.
Position Bias in Multi-Passage Scoring
What to watch: Earlier passages in the list receive systematically higher confidence scores than later passages of equal quality. The model anchors on first-seen evidence and undervalues later entries. Guardrail: Randomize passage order before scoring, or run two passes with reversed ordering and flag passages where scores diverge by more than one tier. Use the average or the more conservative score.
Source Authority Overfitting
What to watch: The model overweights domain or brand authority and ignores content quality. A weak passage from a prestigious journal gets HIGH confidence while a specific, well-supported passage from an unknown source gets LOW. Guardrail: Separate source authority from content quality in the scoring schema. Score content specificity and directness independently, then combine. Require the model to justify each score with content evidence, not source reputation alone.
Confidence Score Inflation Under Uncertainty
What to watch: When no passage clearly supports the query, the model still assigns MEDIUM confidence to the least-bad option rather than correctly labeling all passages as LOW or INSUFFICIENT. This leaks weak evidence into downstream answer generation. Guardrail: Include an explicit 'no passage meets the threshold' option in the output schema. Set a minimum specificity bar that must be cleared for MEDIUM or higher. Test with queries that have no good evidence in the retrieval set.
Length Bias Distorting Scores
What to watch: Longer passages receive higher confidence scores than shorter, more precise passages that directly answer the query. The model confuses verbosity with evidentiary weight. Guardrail: Normalize for length by instructing the model to score based on information density and directness, not word count. Include a counterexample in few-shot demonstrations where a short passage correctly outranks a long, rambling one.
Tier Boundary Inconsistency Across Batches
What to watch: The same passage receives HIGH in one scoring run and MEDIUM in another when scored alongside different companion passages. Relative scoring drifts because the model lacks a stable absolute reference frame. Guardrail: Define each tier with concrete, measurable criteria (e.g., 'HIGH: contains a specific, extractable claim that directly addresses the query with named entities or numbers'). Run calibration checks with a fixed anchor set of passages scored independently before each batch.
Evaluation Rubric
Use this rubric to test whether the Evidence Confidence Score Assignment Prompt produces calibrated, reliable confidence tiers before integrating it into a production RAG pipeline.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Tier Assignment Accuracy | High-confidence passages are directly on-point, specific, and from authoritative sources; low-confidence passages are vague or tangential. | A passage with a direct quote supporting the claim is scored as 'low' or 'insufficient'. | Run 20 hand-labeled passage-claim pairs through the prompt and measure exact tier match rate against ground truth. |
Score Calibration | Confidence scores within a tier are monotonically ordered: high > medium > low > insufficient. | A 'medium' passage receives a higher numeric score than a 'high' passage. | Extract numeric scores from output and verify ordering across 50 ranked lists using Spearman rank correlation. |
Schema Compliance | Output is valid JSON matching the defined [OUTPUT_SCHEMA] with all required fields present. | Output is missing the 'rationale' field or contains extra unvalidated keys. | Validate output against the JSON schema programmatically; reject any response that fails after one retry. |
Source Quality Discrimination | Passages from known high-authority sources (e.g., peer-reviewed journals) are ranked higher than low-authority sources (e.g., forum posts) when content relevance is equal. | A forum post with matching keywords outranks a journal abstract with direct evidence. | Construct 10 pairs where source authority differs but content relevance is controlled; check that authority breaks the tie correctly. |
Specificity Detection | Passages containing precise numbers, dates, or named entities receive higher confidence than general statements. | A passage stating 'revenue grew' is scored above one stating 'revenue grew 23% YoY'. | Create 15 passage pairs that differ only in specificity; verify the more specific passage always receives a higher or equal confidence score. |
Insufficient Evidence Flagging | Passages that are irrelevant, contradictory, or too thin to support any claim are flagged as 'insufficient'. | A passage about a different topic is scored as 'medium' because it shares keywords. | Feed 10 clearly irrelevant passages into the prompt; assert all are labeled 'insufficient'. |
Rationale Grounding | The 'rationale' field references specific content from the passage, not generic statements. | Rationale says 'The passage is relevant' without quoting or paraphrasing specific evidence. | Manual review of 20 rationales: check that each contains at least one specific reference to passage content. |
Boundary Case Stability | Passages that are partially relevant but lack direct support are consistently scored as 'low' or 'insufficient', not oscillating between tiers. | The same passage-claim pair receives 'medium' on one run and 'insufficient' on the next. | Run the same 10 borderline passage-claim pairs 3 times each; assert tier assignment is identical across runs. |
Implementation Harness Notes
How to wire the Evidence Confidence Score Assignment prompt into a production RAG pipeline with validation, retries, and gating logic.
This prompt is designed to sit between retrieval and answer generation in a RAG pipeline. It takes a set of retrieved passages and assigns each a confidence tier—high, medium, low, or insufficient—based on specificity, directness of support, and source quality. The output is a confidence-labeled ranking that downstream components can use to gate answer generation: only passages meeting a minimum confidence threshold should be passed to the answer synthesizer. This prevents the model from building answers on weak or tangential evidence.
Wire the prompt into your application as a post-retrieval, pre-generation step. After your retriever returns candidate passages, batch them with the user query and any available source metadata (publication date, author authority, document type) into the [EVIDENCE_PASSAGES] and [QUERY] placeholders. The model should return a structured JSON array with each passage ID, its assigned tier, and a brief rationale. Validate the output immediately: confirm every passage ID in the input appears in the output, that tier values are only high, medium, low, or insufficient, and that rationales are non-empty strings. If validation fails, retry once with the same input and a stronger constraint instruction appended. If the second attempt fails, log the failure and route the request to a human review queue rather than proceeding with unlabeled evidence.
For production deployments, implement a confidence gate before answer generation. Define a minimum tier threshold—typically medium or higher—and filter out passages below that threshold. If no passages meet the threshold, the system should return a grounded refusal rather than fabricating an answer from weak evidence. Log every confidence assignment with the passage ID, tier, rationale, and model version for auditability. When source metadata is available, consider running a secondary check: if a passage from a high-authority source receives a low confidence score, flag it for human review, as this may indicate a retrieval-query mismatch rather than genuinely weak evidence. Avoid using this prompt on retrieval sets larger than 20 passages without chunking, as confidence assignment quality degrades with long context windows and position bias becomes more pronounced.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a frontier model (GPT-4o, Claude 3.5 Sonnet) and a small batch of 5-10 passages. Skip strict schema enforcement initially—accept natural language tier assignments and parse them loosely. Focus on whether the tier logic (specificity, directness, source quality) produces reasonable rankings before investing in output contracts.
Prompt modification
- Remove the
[OUTPUT_SCHEMA]block and replace with:Return each passage ID followed by its tier and a one-sentence reason. - Reduce
[CONSTRAINTS]to:If evidence is ambiguous, default to MEDIUM. - Use a flat list of passages without metadata to test core reasoning.
Watch for
- Tier inflation: everything landing in HIGH because the model is reluctant to call evidence weak
- Missing rationale when confidence is LOW or INSUFFICIENT
- Inconsistent tier boundaries between similar passages across runs

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us