Inferensys

Prompt

Evidence Grounding Pass/Fail Prompt

A practical prompt playbook for using the Evidence Grounding Pass/Fail Prompt in production AI verification workflows. Designed for verification teams who need binary grounded/ungrounded decisions per factual claim with direct quote mapping and inference flagging.
Wide-angle shot of a modern WeWork open floor plan with creative walls covered in AI system architecture diagrams, product team collaborating in standing desk area with industrial lighting.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the production job-to-be-done, ideal user, required context, and clear boundaries for the Evidence Grounding Pass/Fail prompt.

This prompt is a production-grade gate for verifying whether factual claims in AI-generated or human-authored text are supported by provided source evidence. It is designed for verification teams, RAG system builders, and compliance engineers who need a binary pass/fail signal per claim before content reaches an end user or auditor. The core job-to-be-done is automatable, evidence-backed decision-making: for every discrete claim you submit alongside a body of source documents, the prompt returns a grounded/ungrounded verdict, a direct quote mapping, and an inference flag. This replaces manual spot-checking with a repeatable, loggable, and evaluable process.

Use this prompt when you have already extracted discrete claims from a text and retrieved a set of candidate source documents. The prompt performs the alignment check—it does not extract claims or retrieve sources. Ideal users are engineers building RAG evaluation harnesses, compliance officers reviewing AI-generated reports, or QA teams verifying that summarization pipelines haven't introduced unsupported assertions. The required context is strict: you must provide the full text of each claim and the full text of each source document. The prompt cannot verify claims against knowledge the model may have been trained on; it only judges alignment with the evidence you provide. For high-risk domains such as healthcare, finance, or legal review, the prompt's output should be treated as a decision-support signal, not a final determination, and must be paired with human review.

Do not use this prompt for open-ended quality scoring, stylistic review, or tasks where source evidence is not provided. It is not a hallucination detector that works from model weights—it is a grounding checker that works from your supplied evidence. It is also not suitable for evaluating whether the provided sources themselves are authoritative, complete, or up-to-date; source quality assessment is a separate upstream concern. If you need to verify claims against a live knowledge base or the open web, you must retrieve that evidence first and pass it into this prompt as source material. The prompt's binary output is designed for pipeline gating: pass means the claim can proceed to publication or downstream consumption; fail means the claim must be blocked, rewritten, or escalated. Wire the output into your CI/CD or content approval workflow with clear actions for each verdict.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Evidence Grounding Pass/Fail Prompt delivers reliable binary decisions and where it introduces unacceptable risk.

01

Good Fit: Source-to-Claim Mapping

Use when: you need to verify that every factual claim in a generated text maps directly to a provided source document. Guardrail: The prompt requires explicit quote extraction per claim, making the grounding decision auditable and reproducible.

02

Bad Fit: Implicit Knowledge Tasks

Avoid when: the model must reason over broad domain knowledge not contained in the provided evidence. Risk: The prompt will flag all claims as ungrounded, generating false negatives. Guardrail: Use a RAG answer generation prompt instead of a pass/fail gate for open-domain QA.

03

Required Inputs

What you must provide: A single source document or a clearly delimited set of passages, plus a target text containing discrete factual claims. Guardrail: Pre-process the target text to split it into individual claims before invoking the gate to improve per-claim verdict accuracy.

04

Operational Risk: Multi-Source Synthesis

What to watch: A claim that synthesizes information from two separate source passages may be incorrectly flagged as ungrounded. Guardrail: Provide all relevant source passages in a single context window and instruct the prompt to check for cross-passage grounding before issuing a final verdict.

05

Operational Risk: Negative Evidence

What to watch: The prompt may fail to flag a claim as ungrounded when the source explicitly contradicts it, focusing only on positive support. Guardrail: Add a specific instruction to check for contradiction between the claim and the source, and treat direct contradiction as an ungrounded verdict.

06

Bad Fit: Subjective Interpretation

Avoid when: the target text contains opinion, analysis, or subjective interpretation rather than verifiable factual claims. Risk: The binary pass/fail structure forces a decision on inherently unverifiable statements. Guardrail: Pre-filter claims to remove subjective statements or use a multi-class rubric that includes an 'opinion/analysis' category.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt for binary grounded/ungrounded classification of factual claims with direct quote mapping and inference flagging.

This prompt template performs a binary pass/fail evaluation on whether each factual claim in an AI-generated output is directly supported by provided source evidence. It is designed to be placed in your system or user message, with variables populated from your upstream extraction and retrieval pipeline. The prompt forces explicit quote mapping, flags inferred claims that lack direct textual support, and handles multi-source synthesis and negative-evidence scenarios. Use this when you need a reliable go/no-go signal for claim-to-source alignment before content reaches end users.

text
You are an evidence verification specialist. Your task is to evaluate whether each factual claim in the [OUTPUT_TO_VERIFY] is directly grounded in the provided [SOURCE_EVIDENCE].

For each claim, you must produce a binary verdict: GROUNDED or UNGROUNDED.

## Verification Rules
1. A claim is GROUNDED only if the exact fact or a direct, unambiguous paraphrase exists in the source evidence. Quote the supporting text.
2. A claim is UNGROUNDED if:
   - The source evidence does not contain the fact.
   - The claim requires inference beyond what the source explicitly states.
   - The source evidence contradicts the claim (negative evidence).
   - The claim combines facts from multiple sources in a way that creates a new, unsupported assertion.
3. For multi-source synthesis claims, each component fact must be individually grounded in at least one source. Flag the claim as UNGROUNDED if the synthesis itself is not explicitly stated in any single source.
4. If the source evidence is insufficient to verify a claim (e.g., missing context, ambiguous language), mark it UNGROUNDED and explain why.

## Output Format
Return a JSON object with the following structure:
{
  "overall_verdict": "PASS" | "FAIL",
  "claims": [
    {
      "claim_text": "The exact claim from the output",
      "verdict": "GROUNDED" | "UNGROUNDED",
      "source_quote": "Direct quote from source evidence, or null if ungrounded",
      "source_location": "Document identifier and section where quote was found, or null",
      "inference_flag": true | false,
      "explanation": "Brief explanation of the verdict"
    }
  ],
  "failure_summary": "If FAIL, summarize which claims failed and why. If PASS, state 'All claims grounded.'"
}

## Input Data
### Output to Verify
[OUTPUT_TO_VERIFY]

### Source Evidence
[SOURCE_EVIDENCE]

## Constraints
- Do not consider information outside the provided source evidence.
- Do not mark a claim as GROUNDED based on general world knowledge.
- Flag any claim that requires logical leaps or assumptions as UNGROUNDED.
- If the output contains no factual claims, return PASS with an empty claims array.

To adapt this template, populate [OUTPUT_TO_VERIFY] with the AI-generated text you are evaluating and [SOURCE_EVIDENCE] with the retrieved documents, passages, or reference material that should support the output. For RAG systems, [SOURCE_EVIDENCE] typically comes from your retrieval pipeline. For document summarization, it is the original document. For multi-source synthesis, include all source documents with clear identifiers. The prompt is designed for a single model call, but for high-stakes verification, consider running it per claim in parallel to reduce context-window pressure and improve accuracy on long outputs. Always log the full JSON response for audit trails and eval analysis. If your use case involves regulated content, route FAIL verdicts to human review before any downstream action.

IMPLEMENTATION TABLE

Prompt Variables

Inputs the Evidence Grounding Pass/Fail prompt needs to work reliably. Validate these before sending to the model. Each placeholder maps to a specific role in claim-to-source alignment verification.

PlaceholderPurposeExampleValidation Notes

[CLAIMS_LIST]

Array of factual claims extracted from the target content that need source verification

["The API supports OAuth 2.0", "Latency is under 100ms p99"]

Must be a non-empty JSON array of strings. Each claim must be a single verifiable assertion. Reject compound claims (split them first).

[SOURCE_DOCUMENTS]

Evidence corpus against which claims are checked, with document identifiers and full text

[{"doc_id": "docs/v2.3/api-spec.pdf", "text": "..."}, {"doc_id": "reports/perf-march.md", "text": "..."}]

Must be a JSON array with at least one object containing doc_id and text fields. Text must be non-empty. Validate doc_id uniqueness before sending.

[GROUNDING_RULES]

Explicit rules defining what counts as grounded, ungrounded, or inferred support

{"direct_quote_required": true, "paraphrase_allowed": true, "inference_allowed": false, "multi_source_synthesis": "flag"}

Must be a valid JSON object. Check that at least one grounding mode is enabled. If inference_allowed is true, require an inference_threshold field.

[OUTPUT_SCHEMA]

Expected JSON structure for the pass/fail verdict per claim with evidence mapping

{"claim": "string", "verdict": "grounded|ungrounded|inferred", "direct_quotes": ["string"], "source_ids": ["string"], "inference_chain": "string|null"}

Must be a valid JSON Schema or example structure. Verify that verdict enum values match the grounding rules. Reject schemas missing source_ids or direct_quotes fields.

[NEGATIVE_EVIDENCE_FLAG]

Boolean toggle to enable detection of source passages that contradict a claim

Must be true or false. When true, the prompt must include instructions to scan for contradictory evidence and report it separately from ungrounded verdicts. Validate that the output schema includes a contradictions field.

[CONFIDENCE_THRESHOLD]

Minimum confidence score (0.0-1.0) required for a grounded verdict to pass automatically

0.85

Must be a float between 0.0 and 1.0. Values below 0.7 should trigger a human-review recommendation. Validate that the prompt includes instructions to attach confidence scores to each verdict.

[HUMAN_REVIEW_TRIGGERS]

Conditions that force a claim into human review regardless of model verdict

["inferred", "multi_source_synthesis", "negative_evidence_found", "confidence_below_0.8"]

Must be a JSON array of trigger strings. Validate each trigger against known categories. If empty, the system assumes no automatic human escalation. Reject unknown trigger values.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Evidence Grounding Pass/Fail prompt into a production verification pipeline with validation, retries, and human review.

The Evidence Grounding Pass/Fail prompt is designed to operate as a deterministic gate inside a larger verification pipeline, not as a standalone chat interaction. In production, you will typically call this prompt once per factual claim extracted from a model output, passing the claim text, the source document context, and any relevant retrieval metadata. The prompt returns a structured JSON verdict with a binary grounded field, a direct quote mapping, and an inference flag. Wire this into your application by first extracting discrete claims from the target output using a separate extraction prompt or parser, then fanning out parallel calls to this grounding prompt for each claim. Aggregate results to produce an overall faithfulness score or to trigger downstream actions such as regeneration, human review, or output blocking.

Implement a validation layer immediately after the model response to enforce the expected output schema before the verdict enters your decision logic. The prompt template specifies a JSON output contract with required fields: claim_id, grounded (boolean), source_quote (string or null), inference_required (boolean), and explanation. Use a JSON Schema validator or a lightweight parser to confirm field presence, correct types, and non-null constraints where applicable. If validation fails, retry the prompt call once with the same inputs and an explicit error message appended to the context, such as 'Your previous response was missing the required field source_quote. Please provide a complete JSON response.' If the retry also fails, log the failure, flag the claim for human review, and do not silently accept a malformed verdict. For high-stakes domains like healthcare or legal review, route any claim where inference_required is true or where grounded is false to a human review queue with the full claim, source context, and model explanation attached.

Model choice matters for this prompt. Use a model with strong instruction-following and structured output capabilities, such as GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro. Avoid smaller or older models that may struggle with the dual task of quote extraction and binary classification simultaneously. Set temperature to 0 or a very low value (0.1 maximum) to reduce variance in verdicts. Enable structured output mode if your provider supports it, binding the response to a typed object schema rather than relying on prompt-alone format instructions. For latency-sensitive pipelines, consider batching multiple claims into a single prompt call with an array output structure, but keep batch sizes small (5-10 claims) to avoid attention dilution. Log every verdict with the prompt version, model identifier, claim text, source context, and raw model response for auditability and regression testing. When you update the prompt template, run your full golden dataset of known grounded and ungrounded claim pairs through the new version and compare pass/fail rates against the previous version before promoting to production.

PRACTICAL GUARDRAILS

Common Failure Modes

Evidence grounding prompts fail in predictable ways. These are the most common failure modes for binary grounded/ungrounded classification and how to prevent them in production.

01

Paraphrased Support Missed as Ungrounded

What to watch: The prompt rejects claims that are factually supported but expressed in different wording than the source. This happens when the model over-indexes on lexical overlap rather than semantic equivalence. Guardrail: Include few-shot examples showing paraphrased support as valid grounding. Add explicit instruction: 'A claim is grounded if the evidence supports its meaning, even when wording differs.'

02

Plausible Fabrications Pass as Grounded

What to watch: The model accepts claims that sound consistent with the source but introduce unsupported details, dates, or causal links. This is the most dangerous failure because it produces false confidence. Guardrail: Require direct quote mapping per claim. Add a verification step: 'For each grounded claim, output the exact source text that supports it. If no exact match exists, mark ungrounded.'

03

Implicit Inference Treated as Explicit Support

What to watch: The model marks a claim as grounded when the source implies or suggests it but does not state it. This collapses the distinction between 'the source says X' and 'X could be inferred from the source.' Guardrail: Add an inference flagging rule: 'If the claim requires any reasoning step beyond what the source explicitly states, mark it as inference and classify as ungrounded unless inference is explicitly permitted.'

04

Multi-Source Synthesis Without Traceability

What to watch: The model combines information from multiple sources to support a claim but loses track of which piece came from where. The claim may be true but the grounding trail is broken. Guardrail: Require per-source attribution: 'When a claim draws from multiple sources, list each source and the specific text it contributes. If any part of the claim cannot be traced to a specific source, mark the entire claim as ungrounded.'

05

Negative Evidence Ignored

What to watch: The model finds one source that appears to support a claim and ignores other sources that contradict or undermine it. This produces grounded verdicts that are technically true against one document but misleading against the full evidence set. Guardrail: Add a contradiction check: 'Before finalizing a grounded verdict, scan all provided sources for contradictory evidence. If any source directly conflicts with the claim, flag it and downgrade the grounding assessment.'

06

Threshold Gaming on Borderline Claims

What to watch: The model inconsistently handles claims that are partially supported, hedging between grounded and ungrounded based on irrelevant context or prompt phrasing. This breaks binary decision reliability in CI/CD pipelines. Guardrail: Define a tie-breaking rule: 'When a claim is partially supported but missing key details, default to ungrounded. Only mark grounded when all material facts in the claim have direct source support.' Include calibration examples at the boundary.

IMPLEMENTATION TABLE

Evaluation Rubric

Run these checks on a golden dataset of at least 50 claims with known ground-truth verdicts. Each criterion targets a specific failure mode observed in evidence grounding tasks.

CriterionPass StandardFailure SignalTest Method

Direct Quote Accuracy

Extracted quote exactly matches source text segment

Quote contains added, removed, or altered words from source

Exact string match between [EXTRACTED_QUOTE] and source document span

Claim-to-Quote Alignment

Quote directly supports the specific factual claim being checked

Quote addresses a different claim or provides only tangential context

Human review of 50 claim-quote pairs; agreement that quote substantiates claim

Implicit Grounding Detection

Claims requiring inference are correctly flagged as [INFERRED] rather than [GROUNDED]

Inferred claim is incorrectly marked [GROUNDED] without direct supporting quote

Compare [GROUNDING_STATUS] against ground-truth labels for inference-heavy claims

Multi-Source Synthesis Handling

Claims requiring multiple sources are flagged with [MULTI_SOURCE] and all sources cited

Single source cited when claim requires synthesis across two or more documents

Check [SOURCE_COUNT] against known multi-source claims in golden dataset

Negative Evidence Recognition

Source contradicting claim produces [CONTRADICTED] verdict with contradiction quote

Contradictory source is ignored or misclassified as [NO_EVIDENCE]

Verify [VERDICT] equals [CONTRADICTED] when source explicitly refutes claim

Source Absence Handling

No relevant source produces [UNGROUNDED] verdict, not hallucinated support

Fabricated quote or citation when source material lacks relevant evidence

Check [VERDICT] against ground truth for claims with known-empty evidence pool

Partial Grounding Classification

Partially supported claims receive [PARTIALLY_GROUNDED] with supported and unsupported segments separated

Partially supported claim incorrectly binarized as fully [GROUNDED] or fully [UNGROUNDED]

Compare [VERDICT] and [SUPPORTED_SEGMENTS] against annotated partial-grounding examples

Citation Span Precision

Citation references specific paragraph, section, or line number where evidence appears

Vague citation like 'the document states' without locatable reference

Verify [CITATION_LOCATOR] contains parseable reference that resolves to correct source location

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a small set of 10-20 claim-evidence pairs you can manually verify. Use a frontier model (GPT-4o, Claude 3.5 Sonnet) with temperature 0. Remove the [OUTPUT_SCHEMA] constraint and ask for free-text reasoning before the binary verdict so you can read the model's logic. Focus on getting the grounded/ungrounded boundary right before adding strict JSON parsing.

code
For each claim in [CLAIMS], determine if it is grounded in [SOURCE_TEXT].
First explain your reasoning, then output GROUNDED or UNGROUNDED.

Watch for

  • The model marking paraphrased support as ungrounded because it expects exact string match
  • Over-flagging reasonable inferences as ungrounded when the source clearly implies the claim
  • Missing the distinction between "source doesn't mention this" and "source contradicts this"
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.