This prompt is built for AI engineers and product teams operating factual-domain assistants where every claim must be traceable to retrieved evidence. It functions as a post-generation or pre-release enforcement layer that audits assistant statements across multiple turns, checking whether each claim remains grounded in the provided sources. The primary job-to-be-done is automated grounding verification: you feed in the conversation history, the evidence set, and your grounding policy, and the prompt returns a structured score, a list of ungrounded claims, and remediation instructions. This is not a RAG answer-generation prompt. It does not produce user-facing responses. It validates them before they ship.
Prompt
Evidence Grounding Requirement Prompt

When to Use This Prompt
Defines the job-to-be-done, ideal user, required context, and boundaries for the Evidence Grounding Requirement Prompt.
Use this prompt when you need a programmatic grounding audit that can be wired into a CI-like eval harness, a pre-release review queue, or an automated guardrail before a response reaches the user. It is appropriate for assistants in regulated domains, internal knowledge-base Q&A, clinical documentation review, financial analysis, and any product where hallucinated claims carry material risk. The prompt expects several inputs: the full conversation history or a window of recent turns, the evidence passages retrieved for those turns, and a grounding policy that defines what counts as a supported claim versus speculation. You should also provide an output schema so the audit result is machine-readable and can trigger downstream actions like blocking, flagging for human review, or re-prompting with stricter instructions.
Do not use this prompt when you need real-time answer generation, when the evidence set is unavailable or incomplete, or when the assistant operates in a creative or opinion-based domain where strict source grounding is not the expected behavior. It is also not a substitute for human review in high-risk scenarios; instead, it should feed into a human approval queue when the grounding score falls below your threshold. The prompt works best as part of a multi-layered validation pipeline: schema validation catches format errors, this prompt catches evidentiary drift, and human review handles edge cases. If you skip the evidence input or feed it stale retrieval results, the audit will produce false positives that erode trust in the enforcement layer itself.
Use Case Fit
Where the Evidence Grounding Requirement Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt fits your workflow before embedding it in a production harness.
Good Fit: Regulated Factual Domains
Use when: every assistant claim must be traceable to a source document for compliance, audit, or clinical safety. Why it works: the prompt explicitly scores grounding against provided evidence and flags unsupported statements before they reach the user.
Bad Fit: Open-Ended Creative Tasks
Avoid when: the assistant is expected to brainstorm, summarize subjective opinions, or generate novel ideas. Risk: the grounding requirement will suppress legitimate creative output by flagging anything not verbatim in the sources as ungrounded, producing excessive false positives.
Required Inputs: Source Evidence Block
What to watch: the prompt cannot function without a structured evidence block containing retrieved passages, document excerpts, or verified facts. Guardrail: always validate that the evidence payload is non-empty and includes source identifiers before invoking the grounding check. An empty evidence block guarantees a failing score.
Operational Risk: Evidence Drift Over Long Sessions
What to watch: in multi-turn sessions, the evidence block may become stale as new information enters the context window. Guardrail: pair this prompt with a stale-context detector that re-triggers retrieval when the conversation domain shifts or when the grounding score drops below a defined threshold across consecutive turns.
Operational Risk: Latency and Cost Amplification
What to watch: running a separate grounding evaluation call for every assistant turn doubles the model inference cost and adds latency. Guardrail: implement sampling (every Nth turn), threshold-based triggering (only when confidence is low), or asynchronous evaluation for non-blocking workflows. Reserve synchronous checks for high-risk domains only.
Boundary: Not a Substitute for Retrieval Quality
What to watch: teams may treat the grounding prompt as a fix for poor retrieval. Guardrail: the prompt only detects ungrounded claims; it cannot invent missing evidence. Invest in retrieval quality, query rewriting, and evidence ranking before relying on grounding checks. A high failure rate signals a retrieval problem, not a prompt problem.
Copy-Ready Prompt Template
A reusable prompt that enforces evidence grounding across assistant turns by scoring claims against source documents and flagging ungrounded statements.
This prompt template acts as a guardrail step inserted between the assistant's draft response and the user. It evaluates every factual claim in the assistant's latest turn against the provided evidence set, assigns a grounding score, and either passes the response through or returns it for remediation. The template is designed for multi-turn RAG assistants in factual domains—clinical documentation, legal review, financial audit, technical support—where ungrounded claims create compliance risk and erode user trust. Use it when your assistant must maintain citation discipline across long sessions and when evidence drift (the assistant gradually relying on its own parametric knowledge instead of retrieved sources) is a known failure mode.
codeSYSTEM: You are an evidence grounding auditor. Your job is to evaluate whether every factual claim in the assistant's latest response is supported by the provided evidence set. You do not answer the user's question. You only audit grounding. INPUTS: - [ASSISTANT_RESPONSE]: The assistant's draft response to the user. - [EVIDENCE_SET]: The retrieved evidence passages available to the assistant, each with a unique [SOURCE_ID]. - [GROUNDING_POLICY]: The session-level grounding rules, including required citation format, acceptable evidence types, and abstention rules. - [PRIOR_GROUNDING_SCORES]: Grounding scores from previous turns in this session, if available. - [RISK_LEVEL]: The risk classification for this domain: LOW, MEDIUM, HIGH, or CRITICAL. INSTRUCTIONS: 1. Extract every factual claim from [ASSISTANT_RESPONSE]. A factual claim is any statement that asserts something true about the world, including numbers, dates, names, relationships, events, definitions, procedures, and causal statements. Exclude opinions, hedging language, and meta-commentary about the conversation itself. 2. For each claim, attempt to locate supporting evidence in [EVIDENCE_SET]. A claim is grounded if at least one passage directly supports it. Partial support counts as ungrounded unless the assistant explicitly qualifies the uncertainty. 3. For each claim, produce a grounding verdict: GROUNDED (with [SOURCE_ID]), UNGROUNDED (no supporting evidence found), or PARTIAL (some support but missing key details). 4. Calculate an overall grounding score: (number of GROUNDED claims) / (total number of claims). Express as a percentage. 5. If [PRIOR_GROUNDING_SCORES] are provided, compare the current score to the session trend. Flag if the score has dropped more than [DRIFT_THRESHOLD] percentage points since the session start. 6. Apply the [GROUNDING_POLICY] to determine the pass/fail decision: - If [RISK_LEVEL] is CRITICAL: fail if any claim is UNGROUNDED. - If [RISK_LEVEL] is HIGH: fail if grounding score < 95%. - If [RISK_LEVEL] is MEDIUM: fail if grounding score < 85%. - If [RISK_LEVEL] is LOW: fail if grounding score < 70%. 7. If the response fails, generate a remediation instruction that tells the assistant exactly which claims are ungrounded, what evidence is missing, and whether it should abstain, cite differently, or request additional retrieval. OUTPUT_SCHEMA: { "pass": boolean, "grounding_score": number, "total_claims": number, "grounded_claims": number, "claims": [ { "claim_text": string, "verdict": "GROUNDED" | "UNGROUNDED" | "PARTIAL", "source_id": string | null, "explanation": string } ], "session_trend": { "prior_average_score": number | null, "drift_detected": boolean, "drift_magnitude": number | null }, "remediation": string | null, "escalation_required": boolean } CONSTRAINTS: - Do not evaluate the quality of the assistant's writing, only its factual grounding. - If the assistant explicitly states uncertainty or cites a source for a claim, treat that as a grounding signal. - If [EVIDENCE_SET] is empty, all claims are UNGROUNDED and the response must fail. - If [ASSISTANT_RESPONSE] contains no factual claims (e.g., it only asks a clarification question), pass automatically with a grounding score of 100%. - Never invent evidence. If a claim appears plausible but is not in [EVIDENCE_SET], mark it UNGROUNDED.
Adapt this template by adjusting the pass/fail thresholds in step 6 to match your domain's risk tolerance. For clinical or legal workflows, keep CRITICAL and HIGH thresholds strict. For internal knowledge-base assistants, MEDIUM thresholds may be appropriate. The [GROUNDING_POLICY] placeholder should contain your session-level citation rules—for example, requiring inline citations with source IDs, prohibiting claims without direct quotes, or defining which evidence types are authoritative. Wire this prompt as a post-generation validation step: the assistant drafts a response, this auditor evaluates it, and if pass is false, the remediation text is fed back to the assistant for a single correction attempt before escalating to human review. Do not loop more than once without human intervention in HIGH or CRITICAL risk domains.
Prompt Variables
Inputs required by the Evidence Grounding Requirement Prompt to reliably check whether assistant statements are traceable to retrieved sources. Each variable must be populated before the prompt is assembled.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[ASSISTANT_STATEMENTS] | One or more assistant responses to evaluate for evidence grounding | The model's last 3 turns in the conversation | Must be non-empty string or array of strings. Reject if only whitespace or system messages are provided. |
[RETRIEVED_EVIDENCE] | The source passages, documents, or facts provided to the assistant during generation | Array of {source_id, content, retrieval_score} objects | Must contain at least one evidence item. Validate that each item has a non-empty content field and a unique source_id. |
[GROUNDING_POLICY] | The session-level policy defining what counts as grounded, allowed speculation, and citation requirements | All factual claims must cite a source_id. Speculation must be labeled with [SPECULATIVE]. | Must be a non-empty string. Validate that it contains at least one actionable rule (contains 'must', 'required', or 'shall'). |
[UNCERTAINTY_POLICY] | The required confidence calibration language for the assistant | Use 'high confidence' only when 2+ sources agree. Use 'moderate confidence' for single-source claims. | Must be a non-empty string. Validate presence of at least one confidence tier definition. |
[CITATION_FORMAT] | The expected format for inline citations in assistant responses | [source_id] in brackets immediately after the claim | Must be a non-empty string. Validate that the format includes a source_id reference pattern. |
[EVALUATION_MODE] | Controls whether the prompt returns a full audit or a pass/fail gate | full_audit | pass_fail | Must be one of the two allowed enum values. Default to full_audit if null or invalid. |
[GROUNDING_THRESHOLD] | The minimum grounding score required for a statement to pass | 0.8 | Must be a float between 0.0 and 1.0. Reject values outside range. Default to 0.7 if null. |
[MAX_UNGOUNDED_CLAIMS] | The maximum number of ungrounded claims allowed before the entire turn fails | 2 | Must be a non-negative integer. Set to 0 for zero-tolerance deployments. Default to 1 if null. |
Implementation Harness Notes
How to wire the Evidence Grounding Requirement Prompt into a production RAG or copilot application with validation, retries, and audit logging.
The Evidence Grounding Requirement Prompt is not a standalone check; it is a guardrail that should run as a post-generation validation step inside your application harness. After the assistant drafts a response, pass the draft, the retrieved evidence set, and the conversation turn context through this prompt before the response reaches the user. The harness should treat the grounding score as a gating signal: if the score falls below your defined threshold, the response is blocked, repaired, or escalated rather than delivered. This prompt is designed for high-stakes factual domains—healthcare, finance, legal, compliance—where an ungrounded claim is a product defect, not a minor quality issue.
Wire the prompt into your application as a synchronous validation step within the response pipeline. The harness must supply three required inputs: the assistant's draft response, the list of retrieved evidence chunks with source identifiers, and the user's current turn plus any relevant prior turns that establish context. The prompt returns a structured JSON output containing a grounding_score (0.0 to 1.0), a list of ungrounded_claims with the specific text spans that lack evidence support, a remediation field with suggested corrections or source-backed alternatives, and an evidence_drift flag that detects when the assistant is citing sources that no longer apply to the current turn. Implement a retry loop: if the grounding score is below your threshold, feed the remediation output back to the generation model with a re-prompt instruction to revise the response using only the provided evidence. Cap retries at two attempts; if the score still fails, escalate to a human review queue with the full grounding report attached. Log every grounding check result—score, claims flagged, retry count, and final disposition—to your observability platform for trend analysis and prompt tuning.
Model choice matters for this harness. Use a model with strong instruction-following and structured output capabilities for the grounding check itself, even if your primary generation model is smaller or faster. The grounding evaluator needs to perform careful textual entailment between claims and evidence, which benefits from larger context windows and precise reasoning. If latency is a concern, run the grounding check asynchronously on a sampled percentage of non-critical responses while keeping synchronous checks for high-risk categories. Never skip the check entirely for regulated domains. The harness should also maintain a session-level grounding history so you can detect gradual evidence drift across multiple turns—a single turn passing the check does not guarantee the conversation remains grounded. Wire the evidence_drift flag into your context refresh logic so stale evidence is re-retrieved before the next generation cycle.
Expected Output Contract
Fields, types, and validation rules for the grounding assessment output. Use this contract to parse and validate the model response before accepting it in your application.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
grounding_score | number (0.0-1.0) | Must be a float between 0.0 and 1.0 inclusive. Parse as float and check range. If missing or out of range, reject the output. | |
overall_assessment | enum string | Must be one of: 'fully_grounded', 'partially_grounded', 'ungrounded', 'insufficient_evidence'. Reject if value is not in the allowed set. | |
claim_checks | array of objects | Must be a non-empty JSON array. Each element must be an object with the required sub-fields. Reject if array is missing, empty, or contains non-object elements. | |
claim_checks[].claim_text | string | Must be a non-empty string containing the exact claim extracted from the assistant response. Reject if null, empty, or whitespace-only. | |
claim_checks[].source_reference | string or null | Must be a string containing a source identifier from [EVIDENCE] or null if no source supports the claim. Reject if field is missing entirely. | |
claim_checks[].grounding_status | enum string | Must be one of: 'grounded', 'partially_grounded', 'ungrounded', 'speculation'. Reject if value is not in the allowed set. | |
claim_checks[].explanation | string | Must be a non-empty string explaining why the grounding_status was assigned. Reject if null, empty, or fewer than 10 characters. | |
ungrounded_claims_count | integer | Must be a non-negative integer. Validate that this count matches the number of claim_checks with grounding_status 'ungrounded' or 'speculation'. Flag mismatch as a consistency error. |
Common Failure Modes
Evidence grounding fails silently in production. The model sounds confident, the prose is fluent, and the claims are wrong. These are the most common failure modes when enforcing source traceability across turns—and how to catch them before users do.
Citation Fatigue Over Long Sessions
What to watch: The assistant starts strong with citations but gradually drops them as the session lengthens, especially after turn 8–10. The model optimizes for conversational flow over evidentiary rigor when citations aren't explicitly re-requested. Guardrail: Re-inject the citation requirement into the context window every N turns using an instruction re-injection trigger. Monitor citation density per turn and alert when it drops below a defined threshold.
Evidence Drift Across Retrieval Rounds
What to watch: The assistant cites source A in turn 3, but by turn 7 it's making claims that source A never supported—without retrieving new evidence. The model blends retrieved facts with parametric knowledge and loses track of which claims came from where. Guardrail: Require explicit source-to-claim mapping in every assistant response. Run a post-hoc grounding check that compares each claim against its cited source span and flags unsupported assertions.
Plausible-Sounding Fabrication Under Retrieval Gaps
What to watch: When retrieval returns empty, low-relevance, or insufficient results, the model fills the gap with confident-sounding but fabricated claims rather than admitting it lacks evidence. This is the highest-risk failure mode in regulated domains. Guardrail: Include an explicit abstention instruction that requires the model to state 'Insufficient evidence in provided sources' when no retrieved passage supports the answer. Validate abstention compliance with a judge prompt that penalizes unsupported claims.
Stale Evidence Persistence After Context Refresh
What to watch: The assistant continues citing evidence from an earlier retrieval round even after new, contradictory evidence has been loaded into the context window. The model anchors on the first retrieved set and underweights updates. Guardrail: Implement a context refresh marker that explicitly invalidates prior evidence when new retrieval results are inserted. Include a grounding re-verification step that compares claims against only the most recent evidence block.
Implicit Claim Inflation from Source Summarization
What to watch: The assistant summarizes a source passage but adds qualifiers, generalizations, or causal claims that weren't present in the original text. The summary reads naturally but overstates what the evidence actually supports. Guardrail: Add a grounding score requirement that rates each claim on a scale (Directly Supported / Reasonably Inferred / Unsupported). Flag any 'Reasonably Inferred' or 'Unsupported' claims for human review before they reach the user.
Cross-Turn Claim Contamination
What to watch: A claim made by the assistant in turn 4 is treated as established fact in turn 6, even though it was never grounded in evidence. The model treats its own prior outputs as authoritative sources, creating a self-reinforcing hallucination loop. Guardrail: Distinguish between 'user-provided facts,' 'source-grounded claims,' and 'assistant-generated statements' in the dialogue state. Require that any assistant-generated statement used as a premise in later turns be re-verified against sources before reuse.
Evaluation Rubric
Use this rubric to test whether the Evidence Grounding Requirement Prompt reliably detects ungrounded claims, speculation, and evidence drift before shipping to production.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Grounded Claim Detection | All claims explicitly supported by a [SOURCE_ID] receive grounding_score >= 0.9 | Supported claim receives grounding_score < 0.7 or is flagged as UNGROUNDED | Run 20 grounded single-turn responses through the prompt; verify all pass the threshold |
Ungrounded Claim Flagging | Statements not present in any [EVIDENCE_BLOCK] are flagged with grounding_type: UNGROUNDED and grounding_score <= 0.3 | Fabricated statistic or unsupported assertion receives grounding_score > 0.5 or grounding_type: GROUNDED | Inject 10 responses containing claims absent from provided evidence; confirm all are flagged |
Speculation Classification | Statements using hedging language without source support are classified as grounding_type: SPECULATION with score 0.3-0.5 | Speculative claim classified as GROUNDED or UNGROUNDED instead of SPECULATION | Test 8 responses with phrases like may indicate or possibly suggests without evidence; verify SPECULATION label |
Evidence Drift Detection | When a claim cites [SOURCE_ID] but the claim content diverges from the source text, grounding_type: EVIDENCE_DRIFT is assigned | Drifted claim receives grounding_type: GROUNDED because a source ID was present | Create 6 responses where source is cited but claim exaggerates or contradicts the source; confirm EVIDENCE_DRIFT flag |
Multi-Turn Grounding Persistence | Claims grounded in turn N remain grounded in turn N+3 when evidence is still in context and no new contradictory evidence appears | Previously grounded claim is re-evaluated as UNGROUNDED in later turn without evidence change | Run a 5-turn session with stable evidence; verify grounding scores remain consistent across turns |
Remediation Instruction Completeness | For each flagged claim, remediation field contains specific instruction referencing the claim text, the violation type, and the required fix action | Remediation field is empty, generic, or omits the specific claim that failed | Parse remediation output for 15 flagged claims; verify each contains claim reference, violation type, and fix instruction |
Citation Fatigue Resistance | After 8+ turns, the prompt continues to require citations for factual claims rather than accepting unsupported assertions as conversational | Turn 10 response with unsupported factual claim passes grounding check without flagging | Simulate a 12-turn session; insert ungrounded claim at turn 10; verify it is still flagged |
Null Evidence Handling | When [EVIDENCE_BLOCK] is empty or null, all factual claims are classified as UNGROUNDED with appropriate remediation | Response with empty evidence block receives any grounding_type: GROUNDED classification | Submit 5 responses with evidence_block: null containing factual claims; verify all are flagged UNGROUNDED |
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
Add structured JSON output with per-claim grounding scores, source spans, and a remediation block. Include retry logic: if the grounding score falls below a threshold, re-prompt with the specific ungrounded claims and ask for correction or removal. Log every grounding check for traceability.
Prompt snippet
json{ "claims": [ { "claim_text": "[CLAIM]", "grounding_score": 0.0-1.0, "source_span": "[EXACT_SOURCE_TEXT]", "grounding_status": "GROUNDED|PARTIAL|UNGROUNDED" } ], "overall_grounding_score": 0.0-1.0, "remediation": "[CORRECTIVE_ACTION_IF_ANY]" }
Watch for
- Schema drift across long sessions
- Grounding scores that don't match manual review
- Missing source spans when model paraphrases
- Retry loops that burn context budget without improvement

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