Inferensys

Prompt

Citation Accuracy Audit Prompt

A practical prompt playbook for using Citation Accuracy Audit Prompt in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the job-to-be-done, ideal user, required context, and boundaries for the Citation Accuracy Audit Prompt.

This prompt is a post-generation auditor designed for teams shipping AI outputs that include citations. Its job is to verify three properties per citation: that the source actually exists, that any quoted material matches the source text, and that the source genuinely supports the claim it's attached to. Use it when your system produces cited summaries, research briefs, legal analyses, or documentation where a fabricated or misattributed citation carries reputational, compliance, or operational risk. The ideal user is an AI engineer, evaluation lead, or content verification specialist embedding this prompt into a validation layer before outputs reach end users, reviewers, or downstream systems.

This is an evaluation prompt, not a generation prompt. It belongs in a post-generation pipeline stage—after the model produces a cited output but before that output is published, stored, or acted upon. Wire it into a CI/CD gate for documentation pipelines, a human review queue where each citation receives a pass/fail verdict with evidence, or an automated monitoring system that samples production outputs for citation quality. The prompt expects a generated text and its cited sources as input. It returns a structured audit report with per-citation verdicts, evidence for each verdict, and an overall pass/fail summary. Do not use this prompt to generate cited content; it verifies existing citations and will hallucinate if asked to produce them.

Avoid this prompt when citations are decorative rather than evidentiary, when sources are not available for verification, or when the cost of verification exceeds the risk of error. It is not a substitute for human review in high-stakes domains like legal filings or medical documentation—use it to triage and prioritize human attention, not to replace it. For RAG systems where citations are generated alongside answers, pair this prompt with a retrieval-augmented generation pipeline that provides the source text for each citation. If your system cannot supply the full source content, this prompt cannot verify quote accuracy or claim support and should be scoped down to source existence checks only. Start by running this prompt on a sample of production outputs to calibrate its verdicts against human judgment before deploying it as an automated gate.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Citation Accuracy Audit Prompt delivers reliable value and where it introduces unacceptable risk. Use these cards to decide if this prompt fits your workflow before you integrate it.

01

Good Fit: Pre-Publication Review

Use when: A documentation, research, or legal team needs a final gate before publishing a report, article, or memo. Guardrail: Integrate this prompt into a CI/CD documentation pipeline where a failing audit blocks the merge request until a human reviewer resolves the flagged citations.

02

Bad Fit: Real-Time Chat

Avoid when: A user expects an instant answer in a conversational interface. This prompt requires a complete, static text and performs a deep, citation-by-citation analysis. Guardrail: For real-time use, run a lighter, sentence-level grounding check first and reserve this full audit for asynchronously generated long-form content.

03

Required Inputs

What to watch: The prompt is useless without the full text to audit and the actual source content for each citation. A list of references is not enough. Guardrail: Architect your system to fetch and provide the full text of each cited source alongside the document. If a source is inaccessible, the citation must be flagged as 'unverifiable' rather than ignored.

04

Operational Risk: Source Access Gaps

What to watch: The model cannot verify a citation against a paywalled, internal, or offline source. It may hallucinate a verification result. Guardrail: Implement a pre-processing step that identifies inaccessible sources and marks them as 'Verification Blocked' before the prompt runs. The prompt's instructions must explicitly prohibit the model from guessing the content of inaccessible sources.

05

Operational Risk: Cost and Latency

What to watch: Auditing a document with dozens of citations requires a very large context window and significant processing time, making it expensive per run. Guardrail: Use this prompt for high-value, final-stage content only. For routine checks, use a cheaper, faster prompt that samples a subset of citations or checks only for fabricated references.

06

Human-in-the-Loop Requirement

What to watch: A 'pass' from the model is not a guarantee of factual accuracy; it's a signal of internal consistency with the provided sources. The model can miss subtle misrepresentations. Guardrail: The audit report must be a decision-support tool for a human reviewer, not an automated pass/fail authority. The final workflow must route all flagged and borderline citations to a human queue for final judgment.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

Paste this prompt into your evaluation harness to audit citation accuracy. Replace square-bracket placeholders with your inputs.

This prompt template performs a structured audit of every citation in a provided text. It verifies that each referenced source exists, is quoted accurately, and genuinely supports the associated claim. The output is a pass/fail report per citation, suitable for integration into documentation review pipelines, research QA workflows, and RAG system evaluation harnesses. Use this prompt when you need to validate that cited evidence actually backs the claims being made, not just that a source was mentioned.

text
You are a citation accuracy auditor. Your task is to verify every citation in the provided text against the provided source documents. For each citation, you must determine whether the source exists, whether any quoted material matches the source exactly, and whether the source genuinely supports the claim it is attached to.

## INPUT

### Text to Audit
[TEXT_TO_AUDIT]

### Source Documents
[SOURCE_DOCUMENTS]

## OUTPUT SCHEMA

Return a JSON object with the following structure:
{
  "audit_summary": {
    "total_citations": <integer>,
    "passed": <integer>,
    "failed": <integer>,
    "unverifiable": <integer>
  },
  "citation_results": [
    {
      "citation_id": "<string identifier for the citation>",
      "citation_text": "<the citation as it appears in the text>",
      "claimed_source": "<the source being cited>",
      "associated_claim": "<the claim this citation is attached to>",
      "source_exists": <true | false | "cannot_verify">,
      "quote_accuracy": "<exact_match | minor_deviation | major_deviation | fabricated | no_quote_present>",
      "claim_support": "<fully_supported | partially_supported | unsupported | contradicted | cannot_assess>",
      "overall_result": "<pass | fail | unverifiable>",
      "failure_reason": "<explanation if failed or unverifiable, otherwise null>",
      "evidence_excerpt": "<relevant excerpt from source document, or null if not found>"
    }
  ]
}

## CONSTRAINTS

- Do not mark a citation as passed unless you can locate the source document and confirm the claim is supported.
- If a source document is not provided or cannot be located, mark the citation as unverifiable, not failed.
- For quote accuracy, compare the quoted text character-by-character against the source. Minor punctuation differences count as minor deviation. Missing or added words count as major deviation.
- If a citation makes multiple claims, assess whether the source supports all of them. Partial support is a fail.
- Do not infer support. If the source does not explicitly state what the claim asserts, mark it as unsupported.
- Flag any citation that references a source not present in the provided source documents.

## RISK LEVEL
[HIGH] This audit may be used in regulated, legal, or safety-critical contexts. All failures must be escalated for human review. Do not make assumptions about source content beyond what is explicitly provided.

To adapt this template, replace [TEXT_TO_AUDIT] with the document or response containing citations, and [SOURCE_DOCUMENTS] with the full text of every referenced source. If sources are large, pre-chunk them and include only the relevant passages. For production use, wrap this prompt in a validation layer that checks the output JSON schema before accepting results. Always route failed and unverifiable citations to a human review queue, especially when the [RISK_LEVEL] is high. Pair this prompt with the Source Attribution Verification Prompt for a defense-in-depth approach to citation integrity.

IMPLEMENTATION TABLE

Prompt Variables

Each placeholder required by the Citation Accuracy Audit Prompt, its purpose, a concrete example, and actionable validation rules to ensure reliable input before execution.

PlaceholderPurposeExampleValidation Notes

[TEXT_TO_AUDIT]

The full text containing citations that must be verified for accuracy and support.

According to Smith (2024), the market grew 15% year-over-year.

Required. Must be a non-empty string. Check for presence of citation markers (e.g., parentheses, brackets, footnotes) before invoking. If no citations detected, return early with an empty audit report.

[CITATION_LIST]

A structured list of all citations referenced in the text, including source identifiers and the claims they are attached to.

[{"citation_id": "ref1", "source_title": "Market Report 2024", "claim": "market grew 15%"}]

Required. Must be a valid JSON array with citation_id, source_title, and claim fields. Validate schema before prompt assembly. Reject if empty or malformed.

[SOURCE_CONTEXT]

The retrieved or provided source material for each citation, used to verify quote accuracy and claim support.

{"ref1": "The market expanded by 14.8% in fiscal year 2024, driven by enterprise adoption."}

Required. Must be a JSON object mapping citation_id to source text. Validate that every citation_id in [CITATION_LIST] has a corresponding entry. Missing source context must trigger a pre-flight error.

[VERIFICATION_DEPTH]

Controls the rigor of the audit: quote-exact, paraphrase-tolerant, or claim-support-only.

quote-exact

Required. Must be one of: quote-exact, paraphrase-tolerant, claim-support-only. Validate against enum. Default to quote-exact if unspecified. Depth determines pass/fail thresholds for string similarity and semantic entailment checks.

[SIMILARITY_THRESHOLD]

The minimum string similarity score (0.0 to 1.0) required for a quote to pass exact-match verification.

0.95

Required when [VERIFICATION_DEPTH] is quote-exact. Must be a float between 0.0 and 1.0. Validate range. Lower thresholds increase false positives for misquotation. Recommend 0.90-0.98 for production.

[OUTPUT_SCHEMA]

The expected JSON schema for the audit report, defining fields per citation and overall summary structure.

{"citations": [{"citation_id": "string", "pass": "boolean", "reason": "string"}], "summary": {"total": "int", "passed": "int", "failed": "int"}}

Required. Must be a valid JSON Schema object. Validate parseability before prompt injection. Schema mismatch between this and the prompt's output instructions is a common failure mode.

[FAILURE_MODE_INSTRUCTIONS]

Instructions for how the model should handle ambiguous cases, missing evidence, or conflicting sources.

If source text is ambiguous, mark as FAIL with reason 'ambiguous_source'. Never guess.

Optional but strongly recommended. Must be a non-empty string if provided. Validate that instructions do not contradict [VERIFICATION_DEPTH]. Ambiguous handling is the top source of audit inconsistency in production.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Citation Accuracy Audit Prompt into an application or evaluation pipeline with validation, retries, and human review gates.

The Citation Accuracy Audit Prompt is designed to operate as a structured evaluation step within a larger content verification or documentation pipeline. It is not a real-time, user-facing chat prompt. Instead, it should be called programmatically after a document has been drafted and its citations extracted. The prompt expects a clean mapping of claims to their cited sources, and it returns a structured audit report. The primary integration points are: a pre-processing step that extracts citation pairs from the target document, the model call itself, a post-processing validation layer, and a conditional human review queue for any citations that fail the audit.

To wire this into an application, begin by extracting the input payload. You need a list of objects, each containing a claim, the cited_source_text, and a source_identifier. This extraction can be done with a separate, simpler prompt or a deterministic parser if your citations follow a strict format. Once the payload is assembled, call the Citation Accuracy Audit Prompt using a model with strong instruction-following and structured output capabilities, such as gpt-4o or claude-3.5-sonnet. Configure the API call to request a JSON response matching the defined OUTPUT_SCHEMA. Implement a retry loop with exponential backoff for malformed JSON responses. If the model fails to return valid JSON after three attempts, log the raw output and escalate the entire audit batch for manual review. For high-stakes documentation, set temperature=0 to maximize determinism.

Post-processing is critical. Validate the model's output against the expected schema: ensure every citation from the input has a corresponding entry in the audit report, that pass/fail values are boolean or strictly controlled enums, and that audit_notes are present for every failure. Any citation marked as fail or unverifiable should be routed to a human review queue. This queue should present the original claim, the cited source text, and the model's audit notes side-by-side, allowing a human reviewer to confirm the finding or override it. Log every audit result, including the model version, prompt version, and input hash, to build an evidence trail for governance and to enable regression testing when the prompt is updated. Do not automatically rewrite or correct the source document based on the model's output; the audit report is a diagnostic tool, not an auto-fix agent.

IMPLEMENTATION TABLE

Expected Output Contract

The JSON structure, field types, and validation rules your application should enforce after processing the Citation Accuracy Audit Prompt. Each citation in the input text must produce one audit record matching this contract.

Field or ElementType or FormatRequiredValidation Rule

citation_id

string

Must match a citation identifier from [INPUT_TEXT]; null or missing triggers a retry

reference_text

string

Must be the exact quoted or paraphrased claim attributed to the source in [INPUT_TEXT]; empty string fails validation

source_identifier

string

Must resolve to a source in [SOURCE_LIST]; unresolvable identifiers set audit_result to 'UNVERIFIABLE'

source_exists

boolean

Set to true only if source_identifier is confirmed present in [SOURCE_LIST]; false triggers audit_result 'FAIL' unless source is external

quote_accuracy

enum: EXACT, CLOSE_PARAPHRASE, LOOSE_PARAPHRASE, MISATTRIBUTED, FABRICATED

EXACT requires character-level match with source content; FABRICATED means no supporting passage found; MISATTRIBUTED means wrong source cited

claim_support

enum: FULLY_SUPPORTED, PARTIALLY_SUPPORTED, UNSUPPORTED, CONTRADICTED

Must compare reference_text against source content; CONTRADICTED requires explicit contradictory evidence in source

audit_result

enum: PASS, FAIL, UNVERIFIABLE, NEEDS_HUMAN_REVIEW

PASS requires source_exists=true, quote_accuracy in EXACT or CLOSE_PARAPHRASE, and claim_support=FULLY_SUPPORTED; UNVERIFIABLE when source not in [SOURCE_LIST]

evidence_excerpt

string or null

When present, must be a verbatim substring from the source document; null allowed only when source_exists is false

discrepancy_notes

string or null

Required when audit_result is FAIL or NEEDS_HUMAN_REVIEW; must describe specific mismatch between reference_text and source content

confidence_score

number between 0.0 and 1.0

Must be >= 0.0 and <= 1.0; scores below [CONFIDENCE_THRESHOLD] should trigger NEEDS_HUMAN_REVIEW regardless of other fields

PRACTICAL GUARDRAILS

Common Failure Modes

Citation audits fail in predictable ways. These are the most common failure modes when verifying source accuracy, and the practical guardrails to catch them before they reach a human reviewer.

01

Fabricated Source Detection Miss

What to watch: The model accepts a citation that looks plausible but references a non-existent paper, author, or URL. Hallucinated DOIs and invented conference proceedings are especially common. Guardrail: Require the prompt to explicitly flag any citation that cannot be verified against a provided source list. Add a source_exists boolean field to the output schema and fail the audit if any citation is marked true without a verified match in the source corpus.

02

Quote Drift and Paraphrase Creep

What to watch: The model marks a citation as pass when the quoted text is semantically similar but not actually present in the source. Paraphrase is mistaken for direct quotation, especially with technical material. Guardrail: Add an exact-match or near-exact-match requirement in the prompt instructions. Include a quote_accuracy field that distinguishes between verbatim match, minor paraphrase, and unsupported claim. Set a strict threshold for what counts as a passing quote.

03

Claim-Support Mismatch

What to watch: The source exists and the quote is accurate, but the source doesn't actually support the claim it's attached to. The model validates the citation mechanics while missing the logical gap between evidence and assertion. Guardrail: Add a dedicated claim_support check that requires the model to explain, in one sentence, how the cited passage supports the specific claim. If the explanation is circular or generic, flag it for human review.

04

Context Window Truncation Blindness

What to watch: When source documents are long, the model only audits citations against the truncated portion in its context window. Citations referencing material outside the visible chunk are incorrectly marked as unverifiable or hallucinated. Guardrail: Structure the prompt to require the model to explicitly state which source sections were available for audit. Add a source_coverage field listing which pages or sections were reviewed. Flag any citation that references material outside the covered range as unverifiable rather than fail.

05

Overconfident Pass on Ambiguous Citations

What to watch: The model gives a pass to citations that are partially correct but contain subtle errors—wrong page numbers, misattributed authors, or conflated sources. The model defaults to leniency when evidence is close but not exact. Guardrail: Add a confidence score to each citation audit entry. Require the model to flag any citation where confidence is below a threshold. Route low-confidence passes to human review rather than accepting them as clean.

06

Source List Exhaustion Failure

What to watch: The model fails to recognize when a citation references a source that isn't in the provided source list at all, instead attempting to match it to the closest available source. This produces false-positive passes on completely unverified material. Guardrail: Add an explicit source_match field that requires the model to identify exactly which provided source document supports each citation. If no match is found, the citation must be marked unverifiable regardless of how plausible it seems. Include a no_match_found category in the output schema.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the Citation Accuracy Audit Prompt before shipping. Each criterion targets a specific failure mode in citation verification. Run these checks against a golden dataset of 20-30 citation-claim pairs with known pass/fail labels.

CriterionPass StandardFailure SignalTest Method

Source Existence Detection

Correctly flags fabricated sources (e.g., fake DOIs, invented authors) with 100% recall on known-fake test cases

Passes a citation for a source that does not exist in any searchable index

Run against 10 known-fabricated citations and 10 real citations; measure false-pass rate on fakes

Quote Accuracy Verification

Detects paraphrased or altered quotes that deviate from source text by more than 2 words or change meaning

Marks a materially altered quote as 'accurate' or fails to flag a fabricated quote

Compare audit output against human-annotated quote pairs with known alterations and exact matches

Claim-Support Alignment

Correctly identifies when a cited source does not support the associated claim, with precision >= 0.90 on held-out test set

Audit marks a claim as 'supported' when the source contradicts or does not mention the claim

Use 15 claim-source pairs where humans labeled support status; measure precision and recall of support judgments

Partial Support Handling

Distinguishes between fully supported, partially supported, and unsupported claims with at least 0.85 agreement against human labels

Collapses partial support into binary pass/fail, losing nuance on claims the source mentions but does not fully substantiate

Test on 10 partial-support cases; verify three-way classification output matches expected label distribution

Citation Format Parsing

Correctly extracts and parses citations in APA, MLA, Chicago, and bare URL formats without misidentifying components

Misattributes author as title, fails to locate source due to format parsing error, or skips citation entirely

Feed 20 citations in mixed formats; verify extracted source identifiers match ground-truth metadata

Multiple Citation per Claim Handling

Evaluates each citation independently when a claim references multiple sources, without averaging or conflating results

Passes a claim because one citation is valid while ignoring a second fabricated or contradictory citation

Test claims with 2-3 citations where at least one is invalid; verify each citation receives its own pass/fail verdict

Abstention on Unverifiable Sources

Returns 'unverifiable' rather than pass/fail when a source cannot be accessed, is behind a paywall, or is offline

Guesses pass/fail for inaccessible sources or silently skips them without noting the gap

Include 5 citations to inaccessible or paywalled sources; verify output contains explicit unverifiable flags with reasons

Output Schema Compliance

Produces valid JSON matching the expected audit report schema on 100% of test runs, including all required fields per citation

Missing fields, malformed JSON, or inconsistent pass/fail values that break downstream parsers

Validate output against JSON Schema definition; run schema check on 50 consecutive audit runs and measure parse failure rate

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a single-pass audit. Remove strict JSON output requirements and accept a markdown report. Focus on catching obvious citation failures (missing sources, fabricated quotes) without complex scoring.

Prompt modification

Remove [OUTPUT_SCHEMA] and replace with: Return a markdown report with a table listing each citation, its status (PASS/FAIL), and a one-line reason.

Watch for

  • Inconsistent output formatting across runs
  • Model skipping citations in footnotes or parenthetical references
  • False positives when the model cannot access external sources and guesses
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.