This prompt is for regulated-industry engineering and governance teams who must prove that a model's factual claims are backed by evidence and governed by a specific instruction. The primary job-to-be-done is producing an audit artifact that connects each claim in a generated response to its source instruction, cites the provided evidence, and explicitly flags unsupported statements for human review. Use this when you are preparing a compliance submission, responding to a model behavior inquiry, or building a continuous evidence-grounding monitor into your AI pipeline.
Prompt
Instruction Grounding Evidence Audit Prompt

When to Use This Prompt
Define the job, reader, and constraints for the Instruction Grounding Evidence Audit Prompt.
You should not use this prompt for real-time, low-latency chat moderation or as a substitute for a structured retrieval-augmented generation (RAG) pipeline. It is a post-hoc audit and traceability tool, not a real-time guardrail. The ideal user is a compliance engineer, AI safety reviewer, or technical auditor who has access to the full model response, the active system and policy instructions, and the evidence context that was available at generation time. The prompt assumes you can provide these inputs; if you cannot reconstruct the exact instruction set and evidence context, the audit output will be incomplete.
Before running this prompt, ensure you have captured the [FULL_MODEL_RESPONSE], the [ACTIVE_INSTRUCTIONS] (including system, policy, and tool-use rules), and the [EVIDENCE_CONTEXT] (retrieved documents, tool outputs, or data payloads). The prompt will produce a structured claim-by-claim trace. For high-stakes regulatory use, the output must be reviewed by a human who can verify that the identified evidence genuinely supports each claim. Do not treat the audit output as a self-certification; it is a structured input for human judgment and governance logging.
Use Case Fit
Where the Instruction Grounding Evidence Audit Prompt delivers value and where it introduces risk. This prompt is designed for high-stakes, regulated environments where every factual claim must be traceable to an instruction and evidence source.
Good Fit: Regulated Industry Compliance
Use when: You need to produce an audit packet proving that model outputs are grounded in specific, versioned policy instructions and source evidence. Guardrail: Always pair the output with a human review step before submitting to regulators.
Bad Fit: Real-Time Chat or Low-Latency Systems
Avoid when: The prompt's deep audit trace adds unacceptable latency for user-facing chat. Guardrail: Run this prompt asynchronously on a sample of production traffic for offline QA, not in the critical path of a real-time response.
Required Input: Complete Instruction Stack
What to watch: The audit is only as good as its inputs. If you omit a policy layer or tool output, the trace will have blind spots. Guardrail: Programmatically inject the full system prompt, active policy version, and raw tool outputs into the [CONTEXT] before running the audit.
Operational Risk: Model Hallucinating an Audit Trail
What to watch: The model can fabricate a plausible but false link between a claim and an instruction. Guardrail: Treat the output as a draft evidence map. A separate deterministic system should verify that each cited instruction actually exists in the provided context.
Good Fit: Pre-Deployment QA and Red-Teaming
Use when: You are stress-testing a new RAG pipeline or instruction hierarchy to find grounding failures before launch. Guardrail: Use this prompt against a golden dataset of known edge cases to measure grounding accuracy and instruction adherence systematically.
Bad Fit: Subjective or Creative Analysis
Avoid when: The output is a summary, opinion, or creative synthesis where there is no single "correct" source instruction for every statement. Guardrail: Apply this prompt only to outputs making verifiable factual claims, not to interpretative or stylistic text.
Copy-Ready Prompt Template
A reusable prompt template for auditing factual claims in model outputs against their governing instructions and evidence sources.
This template is the core of the Instruction Grounding Evidence Audit workflow. It accepts a model-generated response, the set of active instructions that governed its production, and any source documents or tool outputs available at generation time. The prompt instructs the auditing model to extract each factual claim, map it to the instruction that required or permitted it, cite the specific evidence supporting it, and flag claims that lack sufficient grounding. Use this template when you need to produce an audit artifact that proves which rules were active and whether the output adhered to them—critical for regulated industries, compliance reviews, and production debugging.
textYou are an instruction grounding auditor. Your task is to examine a model-generated response and determine whether each factual claim is grounded in evidence and consistent with the active instructions that governed its production. ## INPUTS ### MODEL RESPONSE [RESPONSE] ### ACTIVE INSTRUCTIONS Provide the full text of all instructions active during generation, labeled by layer and priority. [ACTIVE_INSTRUCTIONS] ### SOURCE EVIDENCE Provide all documents, tool outputs, retrieved passages, or data available to the model at generation time. [SOURCE_EVIDENCE] ### AUDIT CONFIGURATION - Risk Level: [RISK_LEVEL] - Required Confidence Threshold: [CONFIDENCE_THRESHOLD] - Flag Unsupported Claims For: [REVIEW_ACTION] ## OUTPUT SCHEMA Return a JSON object with the following structure: { "audit_metadata": { "audit_id": "string", "response_timestamp": "string", "instruction_version": "string", "total_claims_extracted": number, "claims_fully_grounded": number, "claims_partially_grounded": number, "claims_unsupported": number, "overall_grounding_score": number }, "claims": [ { "claim_id": "string", "claim_text": "string", "claim_type": "factual_assertion | interpretation | recommendation | value_statement", "governing_instruction": { "instruction_text": "string", "instruction_layer": "system | developer | user | tool | policy", "instruction_priority": number }, "evidence_assessment": { "grounding_status": "fully_grounded | partially_grounded | unsupported | not_applicable", "supporting_evidence": [ { "source_id": "string", "source_excerpt": "string", "relevance": "direct | indirect | weak", "confidence": number } ], "evidence_gap_description": "string or null" }, "requires_human_review": boolean, "review_reason": "string or null" } ], "instruction_compliance_summary": { "instructions_evaluated": number, "instructions_fully_satisfied": number, "instructions_partially_satisfied": number, "instructions_violated": number, "violations": [ { "instruction_text": "string", "violation_description": "string", "affected_claim_ids": ["string"] } ] } } ## CONSTRAINTS 1. Extract every factual claim from the response, including implicit claims embedded in recommendations or interpretations. 2. For each claim, identify the specific instruction that required, permitted, or constrained that claim. If no instruction governs the claim, note this as a potential instruction gap. 3. Match each claim to evidence in the source documents. If evidence is missing, incomplete, or only tangentially related, flag the gap explicitly. 4. Do not invent evidence. If a claim cannot be traced to provided sources, mark it as unsupported. 5. For claims marked unsupported or partially grounded, set requires_human_review to true and provide a clear review_reason. 6. If the risk level is "high" or "critical", err on the side of flagging for review rather than accepting weak evidence. 7. Preserve exact source excerpts in the supporting_evidence array. Do not paraphrase evidence. 8. If the model response contains no factual claims (e.g., purely conversational or procedural output), return an empty claims array with appropriate metadata.
To adapt this template for your environment, replace the square-bracket placeholders with your actual data at runtime. [RESPONSE] should contain the full model output under audit. [ACTIVE_INSTRUCTIONS] must include every instruction layer active during generation—system prompts, developer messages, user directives, tool output instructions, and policy constraints—each labeled with its layer and priority. [SOURCE_EVIDENCE] should contain the complete set of documents, retrieved passages, API responses, or database records available to the model. Set [RISK_LEVEL] to "low", "medium", "high", or "critical" to control the audit's sensitivity. [CONFIDENCE_THRESHOLD] defines the minimum evidence confidence score (0.0–1.0) required to consider a claim grounded. [REVIEW_ACTION] specifies what to do with flagged claims: "queue_for_human", "block_output", or "log_only". For high-stakes regulated workflows, always set risk_level to "high" or "critical" and review_action to "queue_for_human".
Before deploying this prompt into production, validate that your instruction labeling is consistent across all layers. If system instructions reference policy documents by name but those documents aren't included in [SOURCE_EVIDENCE], the audit will produce false unsupported flags. Test the prompt against a golden dataset of responses with known grounding status—include examples where claims are fully grounded, partially grounded, and completely unsupported—to calibrate your confidence threshold. For regulated industries, retain the full audit output JSON alongside the original response and active instructions as part of your compliance evidence package. Do not use this prompt as a real-time guardrail on every generation; it is designed for post-hoc audit sampling, incident investigation, and periodic compliance review, not for blocking outputs at inference time.
Prompt Variables
Required inputs for the Instruction Grounding Evidence Audit Prompt. Each variable must be populated before the prompt can produce a reliable audit trace. Missing or malformed inputs are the most common cause of false negatives in grounding detection.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[MODEL_RESPONSE] | The full model-generated text to audit for grounding evidence | The capital of France is Paris. The Eiffel Tower was built in 1889. | Must be non-empty string. Strip trailing whitespace. If response contains multiple paragraphs, preserve original structure for claim segmentation accuracy. |
[ACTIVE_INSTRUCTIONS] | The complete instruction stack active when the response was generated, including system prompt, developer messages, tool outputs, and policy layers | System: You are a factual assistant. Always cite sources. User: What is the capital of France? | Must include all instruction layers with clear layer-type labels. Missing layers cause false negatives in attribution. Validate that system instructions are present if grounding was required. |
[INSTRUCTION_VERSION_MAP] | Mapping of each instruction layer to its version identifier for audit traceability | {"system": "v2.4.1", "policy": "grounding-policy-v1.0", "user": "runtime"} | Must be valid JSON object with layer-type keys. Version strings must match deployment registry. Null allowed for runtime user messages. Missing version for system or policy layers should trigger a pre-audit warning. |
[GROUNDING_POLICY_RULES] | The specific policy instructions that require evidence grounding, extracted from the active instruction stack | All factual claims must cite a source. If no source exists, state 'I cannot confirm this.' | Must be extracted verbatim from [ACTIVE_INSTRUCTIONS]. Do not paraphrase. If no grounding policy exists, set to null and expect the audit to flag all claims as ungoverned. |
[EVIDENCE_SOURCES] | The retrieved documents, tool outputs, or context passages available to the model when generating the response | [{"source_id": "doc-42", "content": "Paris is the capital of France.", "retrieval_score": 0.94}] | Must be array of objects with source_id and content fields. Empty array is valid if model had no retrieval context. Validate that source_ids are unique and content is non-null. |
[AUDIT_THRESHOLD] | Confidence threshold below which grounding assignments are flagged for human review | 0.85 | Float between 0.0 and 1.0. Default 0.85. Lower values increase false positives in unsupported-claim detection. Higher values risk missing borderline grounding failures. Store in config, not hardcoded in prompt. |
[OUTPUT_SCHEMA] | The expected JSON schema for the audit output, defining claim-level fields and required evidence structure | {"claims": [{"claim_text": "string", "source_instruction": "string", "evidence_cited": "string|null", "grounding_status": "supported|unsupported|partial", "human_review_required": "boolean"}]} | Must be valid JSON Schema or example structure. Validate that grounding_status enum values match downstream processing logic. Schema changes require regression testing against known audit traces. |
Common Failure Modes
What breaks first when auditing instruction grounding evidence and how to guard against it.
Hallucinated Source Instructions
What to watch: The model fabricates instruction text or cites a policy version that never existed. This is common when the prompt asks for attribution but the model lacks access to the actual instruction registry. Guardrail: Always inject the canonical instruction text and version metadata into the prompt context. Never ask the model to recall instructions from memory. Validate that cited instruction IDs match known versions in your registry before accepting the audit output.
Plausible but Unsupported Evidence Chains
What to watch: The model constructs a logical-sounding chain from instruction to evidence to claim, but the evidence snippet does not actually support the claim when read in full context. The audit looks correct on the surface but fails under human review. Guardrail: Require the prompt to quote the exact evidence text alongside each claim. Implement a secondary verification step where a separate model call or human reviewer checks whether the quoted evidence genuinely supports the claim. Flag any claim where the evidence is paraphrased rather than quoted.
Silent Omission of Unsupported Claims
What to watch: The audit prompt successfully flags some unsupported claims but quietly skips others—especially claims that are partially supported or ambiguous. The output looks complete but misses critical gaps. Guardrail: Include an explicit instruction requiring the model to enumerate every factual claim in the response before evaluating grounding. Use a structured output schema that forces a claim-by-claim inventory. Compare the claim count against a human-annotated baseline during eval.
Instruction Layer Confusion
What to watch: The model misattributes a claim to the wrong instruction layer—for example, citing a system-level policy when the grounding actually came from a tool output or user-provided document. This corrupts the audit trail and misleads remediation efforts. Guardrail: Provide clear definitions and examples of each instruction layer in the prompt. Require the model to justify its layer attribution with a direct quote from the instruction text. Add an eval check that compares layer attribution against a ground-truth annotation for a sample of claims.
Over-Confidence in Ambiguous Grounding
What to watch: The model marks a claim as grounded when the evidence is only tangentially related or requires significant inference. This is especially dangerous in regulated contexts where audit reports are submitted as evidence of compliance. Guardrail: Add a confidence scale to the output schema (e.g., DIRECTLY_GROUNDED, INFERRED, UNSUPPORTED). Instruct the model to use INFERRED when the connection requires reasoning beyond direct textual match. Route INFERRED claims for mandatory human review before the audit report is finalized.
Context Window Truncation Artifacts
What to watch: Long conversations or large evidence sets exceed the context window, causing the model to lose access to early instructions or evidence. The audit output becomes incomplete or attributes claims to the wrong source because critical context was truncated. Guardrail: Chunk the audit task by conversation segment or evidence batch. Run the prompt on overlapping windows to catch boundary effects. Include a completeness check that verifies every turn in the conversation trace appears in the audit output. Log context-window utilization as an operational metric.
Evaluation Rubric
Criteria for evaluating the Instruction Grounding Evidence Audit Prompt before production deployment. Each row defines a pass standard, a failure signal, and a test method to verify the prompt reliably identifies unsupported claims.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Claim Extraction Completeness | Every factual assertion in [MODEL_OUTPUT] is extracted as a discrete claim in the audit report | Audit report misses a factual claim present in the original output | Run against a golden set of 10 outputs with known claim counts; require exact match on claim count |
Source Instruction Attribution Accuracy | Each extracted claim is correctly mapped to the [INSTRUCTION_LAYER] that required grounding | Claim is attributed to a wrong instruction layer or marked as ungrounded when a source instruction exists | Manual review of 20 claims by a domain expert; require >95% attribution accuracy |
Evidence Citation Validity | Every claim marked as grounded includes a citation to a specific passage in [SOURCE_EVIDENCE] that supports the claim | Citation points to a passage that does not support the claim, or citation is fabricated | Spot-check 30 grounded claims; verify each citation against the source document |
Unsupported Claim Flagging | All claims without supporting evidence in [SOURCE_EVIDENCE] are flagged for human review with a reason | An unsupported claim is marked as grounded, or a supported claim is incorrectly flagged | Run against a dataset where 40% of claims are intentionally unsupported; require >90% recall on unsupported claims |
Output Schema Compliance | Audit report strictly follows [OUTPUT_SCHEMA] with all required fields present and correctly typed | Missing required fields, extra fields, or wrong types in the JSON output | Validate output with a JSON Schema validator; require zero schema violations across 50 runs |
Instruction Version Traceability | Each governing instruction includes its version identifier from [INSTRUCTION_VERSION_METADATA] | Version field is null, missing, or contains a placeholder when real version data was provided | Check that version field is non-null and matches input metadata for all attributed instructions |
Human Review Escalation Accuracy | Claims flagged for human review include a severity level and the specific grounding gap | Flagged claims lack a reason, or severity is always set to a default value regardless of risk | Review 20 flagged claims; require that reason field is specific and severity varies across claims |
Multi-Turn Context Handling | Audit correctly traces claims across multiple turns in [CONVERSATION_HISTORY] without losing attribution | Claims from earlier turns are omitted or attributed to wrong conversation context | Run against 5 multi-turn conversations with 10+ turns; verify claim count per turn matches expected |
Implementation Harness Notes
How to wire the Instruction Grounding Evidence Audit Prompt into a production application with validation, retries, logging, and human review gates.
The Instruction Grounding Evidence Audit Prompt is not a one-shot conversational tool—it is a compliance-grade audit component that must be embedded in a deterministic, observable pipeline. The prompt expects a structured input containing the original model response, the active instruction set (with version metadata), and any evidence or tool outputs that were available at generation time. The output is a structured audit record that maps each factual claim to its governing instruction and supporting evidence, flags unsupported statements, and assigns a grounding confidence score. Because this output may be used in regulatory submissions or internal governance reviews, the implementation harness must enforce schema validation, handle model non-determinism, and preserve an immutable audit trail of the audit itself.
Pipeline Integration: Wire this prompt as a post-generation audit step that runs after the primary model response is produced but before the response is delivered to the user or written to the system of record. The harness should assemble the input payload from three sources: (1) the original model response text, (2) the active instruction stack with version hashes and layer labels (system, developer, user, tool, policy), and (3) the evidence corpus or tool outputs that were in context during generation. If your system uses RAG, include the retrieved passages with their source identifiers. If tool calls were made, include the raw tool outputs, not just the model's summary of them. The prompt's [CLAIMS] placeholder should be populated by first extracting discrete factual claims from the response using a lightweight extraction step—this separation improves audit precision compared to asking the model to both extract and evaluate claims in one pass.
Validation and Retry Logic: The output schema is strict: each claim must have a claim_text, governing_instruction_id, instruction_layer, evidence_citation, grounding_status (one of GROUNDED, PARTIALLY_GROUNDED, UNSUPPORTED, OPINION), and confidence_score. Implement a JSON schema validator in your harness that rejects malformed outputs before they enter the audit log. If validation fails, retry with the same input up to two times, appending the validation error message to the prompt as a [PREVIOUS_ERROR] constraint. If the third attempt still fails, escalate to a human reviewer with the raw model output and validation errors attached. For high-risk domains (healthcare, legal, finance), configure the harness to always route UNSUPPORTED and PARTIALLY_GROUNDED claims to a human review queue before the audit record is finalized. The human reviewer should be able to override the grounding status, add notes, and sign off on the final record.
Model Choice and Logging: Use a model with strong instruction-following and structured output capabilities—GPT-4o, Claude 3.5 Sonnet, or equivalent—with a low temperature setting (0.0–0.2) to minimize creative variance in audit judgments. Log every audit invocation as an immutable record: input payload hash, model version, prompt template version, raw output, validation result, retry count, human review actions, and final signed audit record. Store these logs in a write-once data store that supports downstream traceability queries. If your system processes high volumes, consider batching multiple responses into a single audit invocation to reduce API costs, but ensure each response's audit remains independently addressable in the log. Never use the audit prompt's output to automatically suppress or modify the original response—the audit is an observation layer, not a control layer.
What to Avoid: Do not skip the claim extraction pre-processing step and feed the raw response directly into the [CLAIMS] placeholder—the model will often miss claims or produce vague groupings that weaken the audit's evidentiary value. Do not treat the audit prompt as a real-time guardrail that blocks responses; its latency profile and occasional need for human review make it better suited as an asynchronous governance layer. Finally, do not assume the audit output is ground truth—it is itself a model-generated artifact that must be sampled, reviewed, and calibrated against human auditor judgments as part of your evaluation program. The harness should include a periodic calibration workflow where human auditors review a random sample of audit records and flag discrepancies, feeding those corrections back into prompt improvements and model selection decisions.
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
Start with the base prompt and a single model response. Remove the structured JSON output requirement initially—ask the model to list claims and evidence in plain paragraphs. Use a small set of 3-5 known claims to validate the pattern before scaling.
Simplify the prompt template:
- Replace [OUTPUT_SCHEMA] with: "For each factual claim, state whether it is supported, partially supported, or unsupported, and cite the source instruction."
- Drop the [EVIDENCE_THRESHOLD] variable and use a fixed rule: "Flag any claim without a direct source quote."
- Skip the [HUMAN_REVIEW_ESCALATION] section initially.
Watch for
- The model may fabricate source instructions that don't exist in the system prompt
- Claims may be marked as 'supported' with vague references instead of exact instruction text
- Without schema enforcement, output format will drift across runs
- The model may skip claims it considers 'obvious' rather than auditing every factual statement

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