This prompt is designed for RAG system improvement workflows. Use it when you need to analyze an AI-generated answer against a set of retrieved context documents and identify which claims in the answer lack supporting evidence. The prompt distinguishes between two critical gap types: retrievable gaps, where the information likely exists in your knowledge base but was not surfaced by the current retrieval strategy, and knowledge-boundary limitations, where the required information falls outside the scope of your indexed documents. This distinction is essential for guiding retrieval optimization efforts—retrievable gaps suggest tuning chunking parameters, embedding models, or query rewriting, while knowledge-boundary gaps indicate a need to expand the document corpus itself.
Prompt
Missing Evidence Identification Prompt

When to Use This Prompt
Identify when to deploy the Missing Evidence Identification Prompt to improve retrieval quality without confusing it with real-time fact verification.
Run this prompt during offline evaluation of RAG pipelines, as part of a feedback loop for tuning chunking strategies or embedding models, or before shipping a new retriever to production. The ideal user is an AI engineer or search relevance engineer who owns retrieval quality and needs structured diagnostics rather than anecdotal spot checks. You should have a set of representative queries, their corresponding retrieved context, and the AI-generated answers ready before invoking this prompt. The output is a structured gap analysis that can feed directly into retrieval metric dashboards or prioritization backlogs.
Do not use this prompt for real-time answer generation or as a substitute for a fact-verification system that requires authoritative ground truth. This prompt operates on the relationship between an answer and the context you provided—it does not access external knowledge or validate claims against the real world. It also should not replace human review when the output will be used in regulated domains such as healthcare, legal, or financial compliance. In those cases, treat the prompt's gap analysis as a prioritization aid for human reviewers, not as a final determination of factual correctness. For production monitoring of live RAG answers, pair this with a separate faithfulness evaluation prompt that runs on every response.
Use Case Fit
Where the Missing Evidence Identification Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt fits your RAG improvement workflow.
Good Fit: Retrieval Gap Analysis
Use when: You need to systematically identify which claims in an AI answer lack support in the retrieved context. Guardrail: Run this prompt on a sample of production answers weekly to prioritize which document sources or chunking strategies need improvement.
Bad Fit: Real-Time Answer Correction
Avoid when: You need to fix an answer before showing it to a user. This prompt analyzes gaps but does not repair them. Guardrail: Pair this with a separate repair or abstention prompt in your pipeline. Use this prompt offline for system improvement, not inline for user-facing correction.
Required Inputs: Answer and Source Material
What you must provide: A complete AI-generated answer and the full set of retrieved context passages that were available during generation. Guardrail: If you truncate or summarize the context before running this prompt, you will get false-positive missing-evidence flags. Always pass the raw retrieved chunks.
Operational Risk: Knowledge Boundary Confusion
What to watch: The model may label a claim as having missing evidence when the evidence exists but requires inference, or it may miss gaps that require domain expertise. Guardrail: Distinguish between retrievable gaps (fix your retrieval) and knowledge-boundary gaps (the model shouldn't answer). Log both categories separately for different remediation paths.
Operational Risk: Over-Flagging Minor Gaps
What to watch: The prompt may flag stylistic or transitional phrases as unsupported claims, creating noise that buries real retrieval failures. Guardrail: Add a severity filter in post-processing. Only escalate claims that are factual, material to the answer, and verifiable. Ignore rhetorical framing and obvious common knowledge.
Pipeline Fit: Offline Analysis, Not Online Serving
Use when: You are tuning retrieval parameters, evaluating a new embedding model, or auditing answer quality. Avoid when: You need latency under 500ms. Guardrail: Run this prompt as a batch evaluation job against logged answer-context pairs. Feed the gap reports into your retrieval optimization backlog, not your real-time serving path.
Copy-Ready Prompt Template
A reusable prompt for identifying claims in an AI-generated answer that lack supporting evidence in the provided context.
This template is the core instruction set for a Missing Evidence Identification workflow. It is designed to be dropped into an evaluation harness that supplies the original AI answer and the retrieved context used to generate it. The prompt instructs the model to act as a strict auditor, decomposing the answer into discrete claims and checking each one for direct support in the source material. The output is a structured report that separates retrievable gaps from knowledge-boundary limitations, giving your team a clear signal for improving retrieval precision or expanding the knowledge base.
textYou are an expert evidence auditor. Your task is to analyze an AI-generated answer against the provided source context and identify every factual claim that lacks direct supporting evidence. ## INPUT **AI Answer:** [AI_ANSWER] **Source Context (retrieved documents):** [SOURCE_CONTEXT] ## INSTRUCTIONS 1. Decompose the AI Answer into a list of discrete, verifiable factual claims. Ignore opinions, stylistic phrasing, and purely structural language. 2. For each claim, search the Source Context for direct evidence that supports it. A claim is supported only if the context explicitly states the fact or provides data from which the fact is a direct, inescapable inference. 3. Classify each unsupported claim into one of two categories: - **Retrievable Gap:** The claim is factual in nature and likely exists in the broader knowledge base, but the provided context does not contain it. This indicates a retrieval failure. - **Knowledge-Boundary Limitation:** The claim requires information beyond the scope of the source material (e.g., future predictions, proprietary data, real-time events, or the model's own pre-training knowledge). This indicates a fundamental limitation of the available evidence. 4. For each Retrievable Gap, suggest a specific search query that would likely retrieve the missing evidence. ## CONSTRAINTS - Do not mark a claim as unsupported if the source context implies it through necessary and obvious reasoning. Flag only genuinely missing evidence. - If the AI Answer states a fact that is contradicted by the source context, mark it as a "Contradiction" instead of a "Retrievable Gap" and cite the contradicting source. - Be precise in your citations. When a claim is supported, cite the exact source passage. ## OUTPUT_SCHEMA Return a valid JSON object with the following structure: { "answer_summary": "A one-sentence summary of the AI answer.", "total_claims": <integer>, "supported_claims": <integer>, "unsupported_claims": [ { "claim_text": "The exact claim from the answer.", "gap_type": "retrievable_gap | knowledge_boundary_limitation | contradiction", "explanation": "Why the source context fails to support this claim.", "suggested_query": "A retrieval query to find the missing evidence, or null if not applicable.", "contradicting_source": "The exact source passage that contradicts the claim, or null." } ], "overall_assessment": "A brief summary of the answer's groundedness and the primary failure mode (retrieval vs. knowledge boundary)." }
To adapt this template, replace the [AI_ANSWER] and [SOURCE_CONTEXT] placeholders with your data. The [SOURCE_CONTEXT] should be the raw text of the retrieved chunks, concatenated with clear document separators. For production use, wrap this prompt in a validation layer that parses the JSON output and confirms the total_claims count matches the length of the decomposed claims list. If the model returns malformed JSON, use a retry prompt with the schema re-stated. For high-stakes domains like healthcare or finance, always route outputs flagged as knowledge_boundary_limitation or contradiction to a human review queue before any downstream action is taken.
Prompt Variables
Required inputs for the Missing Evidence Identification 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 |
|---|---|---|---|
[AI_ANSWER] | The generated answer to audit for missing evidence | The patient's blood pressure improved after starting the new medication regimen. | Must be non-empty string. Check length > 0. Truncate if exceeding model context window minus other inputs. |
[RETRIEVED_CONTEXT] | Source documents or passages provided to the RAG system during generation | DOC-1: Clinical trial results show 12% improvement in systolic BP with Drug X over 8 weeks. | Must be non-empty string or array of document strings. Validate each document has a unique identifier. Null allowed if answer was generated without retrieval. |
[CLAIM_EXTRACTION_MODE] | Controls whether the prompt extracts all claims or only unsupported claims | all_claims | Must be one of: all_claims, unsupported_only, high_risk_only. Default to all_claims if not specified. Enum check required. |
[SEVERITY_THRESHOLD] | Minimum severity level for flagging a gap as actionable | medium | Must be one of: low, medium, high, critical. Gaps below threshold are noted but not escalated. Enum check required. |
[OUTPUT_SCHEMA] | Expected structure for the gap report output | json | Must be one of: json, markdown_table, inline_annotations. Schema validation against expected field names required when json is selected. |
[MAX_GAPS_REPORTED] | Upper limit on number of evidence gaps returned to avoid token blowout | 10 | Must be positive integer. Validate range 1-50. If more gaps exist, prompt should return top N by severity and note truncation. |
[INCLUDE_RETRIEVAL_ADVICE] | Whether the output should suggest query rewrites or retrieval improvements for each gap | Must be boolean true or false. When true, each gap includes a suggested_retrieval_query field. When false, only gap identification is returned. |
Implementation Harness Notes
How to wire the Missing Evidence Identification prompt into a RAG evaluation pipeline with validation, retries, and human review gates.
The Missing Evidence Identification prompt is designed to sit inside an evaluation harness that runs after a RAG system generates an answer but before that answer reaches the end user or is logged as complete. The harness calls the prompt with the generated answer and the retrieved context chunks, then parses the structured output to identify claims that lack supporting evidence. This output feeds two downstream workflows: retrieval optimization (improving what gets fetched) and answer revision (adding disclaimers or suppressing unsupported claims). The harness must treat the prompt's output as a signal, not a final verdict—false positives on missing evidence are common when the model misreads implicit support or when context chunks contain the evidence but the judge model misses it.
Wire the prompt into your application as a post-generation evaluation step. After your RAG pipeline produces an answer, extract the retrieved context passages that were actually provided to the generator model. Pass both the answer and the context array into the prompt using the [ANSWER] and [RETRIEVED_CONTEXT] placeholders. Parse the JSON output into a structured object with fields for each identified claim, its grounding status, the missing evidence description, and a retrievability flag. Validate the output schema immediately: check that required fields are present, enums match expected values, and claim text actually appears in the source answer. If validation fails, retry once with a stricter schema reminder. Log every evaluation result with a trace ID linking the answer, context, and judge output for later analysis. For high-stakes domains like healthcare or legal, route outputs flagged as having critical unsupported claims to a human review queue before any automated action is taken.
Model choice matters for this harness. Use a capable judge model—GPT-4o, Claude 3.5 Sonnet, or equivalent—because detecting subtle evidence gaps requires strong reading comprehension. Smaller or faster models will miss implicit unsupported claims and produce higher false-negative rates. If latency is critical, run the evaluation asynchronously after the answer is delivered and use the results to improve future retrievals rather than blocking the current response. Store evaluation results in a structured log with fields for answer_id, context_hash, claim_count, unsupported_count, retrievable_gap_count, and knowledge_boundary_count. Aggregate these metrics over time to detect retrieval degradation, context chunking problems, or generator model drift. Never use the missing evidence count alone as a pass/fail gate without human calibration—some answers legitimately require inference beyond the provided context, and the prompt distinguishes these knowledge-boundary cases from retrieval failures.
Build a feedback loop from this harness into your retrieval system. When the prompt identifies retrievable gaps—claims that could be supported if better context were fetched—use the missing evidence descriptions as queries for additional retrieval rounds or as signals to adjust chunking strategies, embedding models, or retrieval parameters. Track whether follow-up retrievals actually find the missing evidence to measure the prompt's precision as a retrieval diagnostic. For knowledge-boundary gaps where the evidence doesn't exist in your corpus, route the gap descriptions to your content or knowledge base team as expansion candidates. Avoid the trap of treating every unsupported claim as a retrieval failure—the prompt's distinction between retrievable and knowledge-boundary gaps is the key signal that prevents wasted engineering effort on unfixable gaps.
Common Failure Modes
Missing evidence identification is a critical diagnostic tool, but it fails in predictable ways. These cards cover the most common failure modes when analyzing AI answers for unsupported claims, with concrete guardrails to keep your evaluation pipeline trustworthy.
False Positives from Semantic Mismatch
What to watch: The judge flags a claim as unsupported because the source uses different terminology or sentence structure, even though the meaning is equivalent. This inflates hallucination metrics and wastes retrieval engineering effort on non-problems. Guardrail: Include a semantic equivalence instruction in the prompt and calibrate with human-annotated examples where paraphrased support counts as grounded.
Implicit Knowledge Boundary Confusion
What to watch: The judge cannot distinguish between a claim that is truly missing from the provided context and a claim that requires world knowledge the model legitimately possesses. This leads to flagging correct common-sense completions as unsupported. Guardrail: Add a classification dimension that separates 'missing from context' from 'requires external knowledge' and only flag the former as a retrieval gap.
Context Window Truncation Blindness
What to watch: When the provided context is truncated or the relevant passage falls outside the model's effective attention window, the judge incorrectly marks claims as unsupported because it cannot see the evidence. Guardrail: Verify that the evidence passage containing the claim is present in the prompt before running evaluation. Log context length and position of matched evidence for auditability.
Multi-Hop Evidence Fragmentation
What to watch: A claim requires combining information from two or more separate passages, but the judge evaluates each passage independently and marks the claim unsupported because no single passage contains the full answer. Guardrail: Instruct the judge to consider evidence across all provided passages collectively. Include few-shot examples demonstrating valid multi-hop support to calibrate expectations.
Overclaiming from Partial Matches
What to watch: The judge accepts a weak or tangential source match as sufficient evidence, producing false negatives where unsupported claims pass through undetected. This undermines the entire evaluation pipeline. Guardrail: Require the judge to output a confidence score and explicit reasoning for each claim-evidence pair. Set a minimum alignment threshold and route low-confidence matches to human review.
Prompt Drift Across Model Versions
What to watch: The same missing-evidence prompt produces different flagging behavior after a model upgrade, silently breaking your evaluation metrics and making historical comparisons invalid. Guardrail: Pin evaluation prompts to a specific model version in production. Maintain a golden dataset of claim-evidence pairs with known ground-truth labels and run regression tests before deploying any model or prompt change.
Evaluation Rubric
Use this rubric to test the Missing Evidence Identification Prompt before production deployment. Each criterion defines a pass standard, a failure signal, and a concrete test method.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Claim Extraction Completeness | All factual claims in [AI_ANSWER] are extracted into the output list; no claim is omitted. | Output misses a verifiable factual statement present in the answer. | Compare extracted claims against a human-annotated gold set of claims for 10 test answers. Require recall >= 0.95. |
Evidence Matching Precision | Each extracted claim is paired with the most relevant passage from [CONTEXT] or correctly marked as unmatched. | A claim is paired with a passage that does not address the claim, or a retrievable passage is missed. | For 20 claim-evidence pairs, have a domain expert judge whether the matched passage genuinely supports the claim. Require precision >= 0.90. |
Retrievable vs. Knowledge-Boundary Classification | Claims without evidence in [CONTEXT] are correctly classified as 'retrievable_gap' or 'knowledge_boundary'. | A claim is labeled 'knowledge_boundary' when the context clearly contains the answer, or 'retrievable_gap' when the topic is outside the model's expected knowledge. | Test with 15 claims where ground-truth classification is known. Require F1 >= 0.85 on the binary distinction. |
Output Schema Compliance | Output is valid JSON matching [OUTPUT_SCHEMA] with all required fields present and correctly typed. | JSON parse failure, missing required field, or field contains wrong type. | Validate output with a JSON schema validator. Run across 50 varied inputs; require 100% parse success and schema conformance. |
No Fabricated Evidence Passages | The output never invents a passage or quotes text not present in [CONTEXT] when claiming evidence exists. | Output includes a quoted string or passage ID that cannot be found in the provided context. | Automated substring match of every quoted evidence string against [CONTEXT]. Flag any quote with edit distance > 5 characters from the nearest context match. |
Abstention on Unverifiable Claims | Claims that cannot be verified due to ambiguous context are marked with confidence 'low' and a note, not forced into a category. | A claim with genuinely ambiguous grounding is confidently labeled 'supported' or 'unsupported' without caveat. | Review 10 edge-case claims where context is vague. Require that >= 80% include a low-confidence flag or explicit uncertainty language. |
Handling of Implicit Claims | Implicit or inferred claims are identified and flagged separately from explicitly stated claims. | An implied claim is treated as explicitly stated, or an explicit claim is mislabeled as implied. | Test with 8 answers containing a mix of explicit and implicit claims. Require agreement with human labels on the explicit/implicit distinction >= 0.85. |
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 set of 10-20 test cases. Focus on getting the claim extraction and evidence matching logic right before adding strict schema enforcement. Start with a simple JSON output structure and iterate on field definitions as you observe model behavior.
Watch for
- The model conflating 'missing evidence' with 'contradicted claims'
- Overly verbose reasoning that buries the actionable gap analysis
- Inconsistent distinction between retrievable gaps and knowledge-boundary limitations
- Missing schema checks leading to unparseable outputs in downstream tooling

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