PREP WITH PROOF
Menu
NVIDIA AI / PRACTICAL GUIDE

RAG Citation Audit: Verify Sources, Versions and Claim Support

Audit RAG citations beyond link presence. Check passage identity, document versions, access, quoted evidence and claim support with a reproducible provenance fixture.

THE QUICK ANSWER

A RAG answer can contain a real citation and still make an unsupported claim. Audit the chain from the answer claim to the cited passage, the exact document version and the context available to the request. Then review whether the evidence actually supports the claim. This guide separates those jobs, shows what to capture from NVIDIA RAG Blueprint, and provides a small executable fixture that deliberately passes a structurally valid but unsupported citation.

Ask four different questions about each citation

A citation audit has several independent outcomes. Does the reference resolve to the intended passage? Was that passage available and authorized for this request? Does its content support the specific claim? Are all evidence-requiring claims covered? A single percentage called citation accuracy can hide which of these failed. Keep separate findings until the problem is understood.

Retrieval relevance and citation support also differ. A highly ranked document about the right product can omit the condition, version or exception required by an answer. Conversely, retrieval may return the correct evidence while generation cites a neighboring passage. Preserve the retrieved candidates and the final context so that you can identify the stage that lost the evidence.

Use the smallest meaningful claim as the review unit. The sentence "Standard support runs on weekdays and premium support is included" contains two assertions. Evidence for the weekday schedule does not establish the premium entitlement. Split compound statements before assigning support labels, and retain the text that the reader actually saw.

Source: ALCE: Enabling Large Language Models to Generate Text with Citations ↗

Capture the response evidence before evaluating it

NVIDIA RAG Blueprint documents an Include Citations control in its UI. Enabling citation output makes source references available for inspection; it does not establish that every answer claim is supported. Record the deployed Blueprint version and its configuration, since the moving latest documentation can differ from your installation.

The documented Python client examples handle citations separately from streamed answer text and distinguish text from other document types. Capture the complete answer and citation payload for the same request rather than evaluating an early token fragment against incomplete citation data. Use the response schema shipped with your deployed version to build the adapter; the local format below is intentionally not a NVIDIA API schema.

For each reproducible run, retain a request identity, question, model and prompt versions, collection snapshot, applied filters, retrieval and reranking settings, selected context, final answer and citation mapping. Keep sensitive evidence in an appropriately restricted store. A screenshot of numbered links does not provide enough information to reproduce a wrong passage association.

Source: NVIDIA RAG Python client: streaming responses and citations ↗

Give the passage an identity that survives document changes

A document title alone is weak provenance. Two collections can contain files with the same name, and a document can change without its public URL changing. Use an application-controlled identifier that includes collection, document version and passage identity, plus the locator needed to inspect the evidence. Preserve a content fingerprint when your audit needs to distinguish otherwise identical-looking versions.

NVIDIA metadata documentation describes citation locators such as page numbers and audio or video timestamps. Verify the locator against the extracted content and the original source. PDF page labels, physical page positions and extracted-text offsets are different concepts; an unexplained index conversion can send the reader to the wrong evidence even when the answer cited the intended chunk.

If you store character spans, document the coordinate system and the exact text snapshot they reference. Normalization, OCR corrections or whitespace cleanup can shift offsets. A quote match checks consistency against the retained passage, not whether the passage was extracted correctly. Keep enough original-source context to investigate those failures.

Source: NVIDIA custom metadata: citation locators and retrieval filters ↗

Review support, contradiction and missing conditions

For each evidence-requiring claim, inspect the cited evidence and assign an explicit label such as supported, contradicted, insufficient evidence or unresolved. Define these labels for your application before comparing systems. A supported claim should retain the relevant entity, time, scope, quantities and conditions of its evidence; sharing keywords is not enough.

Consider a synthetic passage saying standard support is available Monday to Friday. It can support a weekday-availability claim. It does not support Sunday availability, and it says nothing about premium support being included. A correct quote can therefore be attached to a wrong claim without any broken link or invented source identifier.

Some claims require evidence from multiple passages. Review the combined cited set, including whether its pieces refer to the same product version and compatible conditions. Record which evidence supplies which part of the reasoning. Do not require every individual citation to repeat the whole conclusion, but do not accept a bundle of related documents as proof without checking the actual inference.

Source: ALCE: Enabling Large Language Models to Generate Text with Citations ↗

Make the denominator visible

Define which answer units require external evidence before reporting coverage. In a small manual audit, one useful operational count is supported evidence-requiring claims divided by all evidence-requiring claims. Report unsupported and unresolved counts beside it. This is a locally defined audit measure, not a claim to reproduce a published benchmark metric.

Count references separately when assessing broken identifiers, outdated versions, duplicate entries or unauthorized evidence. One claim can cite several passages, so a reference-level failure rate and a claim-level support rate use different denominators. Deduplicating repeated display links should not silently change the number of claims that need review.

ALCE research evaluates citation quality alongside other answer qualities and provides reproducible evaluation methods. If you adopt its metrics, follow its definitions and implementation rather than applying familiar metric names to different counts. An automated judge can help prioritize review, but calibrate it against representative human labels and retain disagreements instead of treating its fluent explanation as ground truth.

CheckReview unitWhat a pass establishes
Reference resolvesCitation referenceKnown passage identity
Version and quote matchCitation referenceConsistency with the retained snapshot
Authorization and contextRequest/passage pairAllowed evidence was available for this run
Claim supportAtomic claim plus cited evidenceEvidence supports this claim under the rubric
CoverageEvidence-requiring answer claimsRequired assertions have reviewed support

Source: ALCE: Enabling Large Language Models to Generate Text with Citations ↗

Run a provenance fixture that cannot judge meaning

Save the following as citation_audit_lab.py and run python3 citation_audit_lab.py. It uses only the Python standard library and synthetic passages. It performs no network requests, model calls, GPU work or file writes. Its inputs are trusted, already-parsed fixture objects; a real adapter still needs schema validation, limits and authorization integration.

The checker detects unknown passage IDs, references absent from the captured context, a denied passage, version mismatch, non-matching or empty quotes, missing citations and exact duplicate references. The synthetic manifest intentionally includes a denied passage in the context set to demonstrate a pipeline defect. This is a negative test, not a recommended way to assemble authorized context.

The script passed 14 fixture checks on Python 3.12.14. Its most important limitation is executable: a Sunday-support claim points to an accurate weekday quote and returns no structural findings. A separate manually assigned label marks that claim unsupported. The checker validates provenance consistency; it does not read language for entailment or prove that the source itself is true.

from copy import deepcopy

# Synthetic audit format, not a NVIDIA API response schema.
PASSAGES = {
    'p1': {'version': 'v2', 'text': 'Standard support is available Monday to Friday.', 'allowed': True},
    'p2': {'version': 'v1', 'text': 'The sample service retains logs for seven days.', 'allowed': True},
    'p3': {'version': 'v1', 'text': 'Premium support is available all week.', 'allowed': True},
    'restricted': {'version': 'v1', 'text': 'Synthetic restricted note.', 'allowed': False},
}
CONTEXT_IDS = {'p1', 'p2', 'restricted'}

def audit(claims, passages, context_ids):
    # Trusted, already-parsed local fixture objects; no URL fetching or NLP.
    findings = []
    for ci, claim in enumerate(claims):
        if not claim['citations']:
            findings.append((ci, None, 'missing_citation'))
        seen = set()
        for ri, ref in enumerate(claim['citations']):
            key = (ref['id'], ref['version'], ref['quote'])
            if key in seen:
                findings.append((ci, ri, 'duplicate_reference'))
            seen.add(key)
            passage = passages.get(ref['id'])
            if passage is None:
                findings.append((ci, ri, 'unknown_passage'))
                continue
            if ref['id'] not in context_ids:
                findings.append((ci, ri, 'not_in_context'))
            if not passage['allowed']:
                findings.append((ci, ri, 'not_authorized'))
            if ref['version'] != passage['version']:
                findings.append((ci, ri, 'version_mismatch'))
            if not ref['quote'] or ref['quote'] not in passage['text']:
                findings.append((ci, ri, 'quote_mismatch'))
    return findings

reference = {'id': 'p1', 'version': 'v2',
             'quote': 'Standard support is available Monday to Friday.'}
valid = [{'text': 'Standard support operates on weekdays.',
          'citations': [reference]}]
checks = 0

def check(value):
    global checks
    assert value
    checks += 1

check(audit(valid, PASSAGES, CONTEXT_IDS) == [])
# The key limitation: valid provenance does NOT prove a claim is supported.
unsupported = deepcopy(valid)
unsupported[0]['text'] = 'Standard support is available every Sunday.'
check(audit(unsupported, PASSAGES, CONTEXT_IDS) == [])
human_support_labels = [True, False]  # Manually assigned for these two claims.
check(sum(human_support_labels) == 1 and len(human_support_labels) == 2)

for field, value, expected in [
    ('id', 'missing', 'unknown_passage'),
    ('version', 'v1', 'version_mismatch'),
    ('quote', 'Standard support is available every Sunday.', 'quote_mismatch'),
    ('quote', '', 'quote_mismatch'),
]:
    case = deepcopy(valid)
    case[0]['citations'][0][field] = value
    check(audit(case, PASSAGES, CONTEXT_IDS) == [(0, 0, expected)])

missing = [{'text': 'Standard support operates on weekdays.', 'citations': []}]
check(audit(missing, PASSAGES, CONTEXT_IDS) == [(0, None, 'missing_citation')])
for pid, expected in [('p3', 'not_in_context'), ('restricted', 'not_authorized')]:
    case = [{'text': 'A synthetic claim.', 'citations': [{
        'id': pid, 'version': PASSAGES[pid]['version'], 'quote': PASSAGES[pid]['text']}]}]
    check(audit(case, PASSAGES, CONTEXT_IDS) == [(0, 0, expected)])

duplicate = deepcopy(valid)
duplicate[0]['citations'].append(deepcopy(reference))
check(audit(duplicate, PASSAGES, CONTEXT_IDS) == [(0, 1, 'duplicate_reference')])
# Findings must not expose passage contents or mutate the input manifest.
before = deepcopy(PASSAGES)
findings = audit([{'text': 'x', 'citations': [{
    'id': 'restricted', 'version': 'old', 'quote': 'invented'}]}], PASSAGES, CONTEXT_IDS)
check({x[2] for x in findings} == {'not_authorized', 'version_mismatch', 'quote_mismatch'})
check(PASSAGES == before)
check(all(len(item) == 3 for item in findings))
print(f'{checks} fixture checks passed; semantic support still requires separate review.')

Source: NVIDIA RAG Blueprint UI: citation output controls ↗

Find the stage responsible for a failed claim

When the needed evidence never appears in retrieved candidates, inspect ingestion, filters, query formulation and retrieval. When it is retrieved but excluded from the final context, inspect reranking and context selection. If it reaches the generator but the answer adds an unsupported condition, inspect generation instructions and answer validation. If the correct passage is cited under the wrong label, inspect the citation adapter and renderer.

Keep these interventions separate during a comparison. Increasing retrieval depth may help missing evidence but does not repair a renderer that points label 2 at passage 3. Similarly, forcing a model to add more citation markers can improve appearance while leaving claim support unchanged. Re-run the same frozen examples after each targeted change.

Build a small regression set with relevant distractors, near-identical document versions, conflicting dates, compound claims, no-answer questions, and user-specific access differences. Mark the expected behavior before running the candidate system. Include cases where the correct response is to state that the available evidence is insufficient, rather than producing an attractive answer with unrelated citations.

Source: NVIDIA RAG Blueprint UI: citation output controls ↗

Check access at the evidence and citation destinations

Access control is part of the evidence path. Verify that the request identity can use a passage before it enters the generation context, and that a citation destination applies the intended access policy when opened. A filter expression, a hidden document title or a missing UI link is not by itself proof of authorization enforcement.

Treat document text as evidence data rather than permission to execute actions or reveal other sources. A retrieved passage can contain irrelevant instructions. Keep trusted system policy and access decisions outside that content. Do not render arbitrary model-provided destinations as privileged links; resolve approved identifiers through the application and test the resulting destination as the intended user.

For an unauthorized-source test, record the violation without copying restricted content into a broadly visible report. The local fixture reports indices and reason codes only. Production logging needs its own reviewed redaction and retention policy, especially when an audit stores both answer text and the source context.

Source: NVIDIA custom metadata: citation locators and retrieval filters ↗

Publish an audit result that another reviewer can reproduce

An actionable result identifies the request, corpus snapshot, configuration, claim, cited passage, support label and failure category. Include the exact evidence used for the judgment in an authorized review channel. Preserve an unresolved label when the source is ambiguous; forcing every case into pass or fail can conceal data problems.

After a repair, verify source resolution, access, version consistency, semantic support and coverage independently. Then check that the user interface opens the same passage the evaluator reviewed. The lab is a reproducible starting point for structural failures, while a real NVIDIA deployment still needs version-matched integration tests and human-reviewed support examples. A visible citation should make verification easier, not replace it.

Source: NVIDIA RAG Blueprint evaluation guidance ↗

KEEP THESE THREE THINGS

Your next steps

  1. Separate reference integrity, authorized context, claim support and answer coverage.
  2. Keep passage versions and evidence snapshots; a real link or matching quote does not prove the claim.
  3. Use deterministic checks for provenance and separately review meaning, with explicit labels and denominators.

Sources & official resources

Linked resources checked on 2026-10-29. Technical behavior and provider guidance can change; check the documentation for the version you use.

NCP-ARI rack and interconnect guides

About this guide and its recommendations

Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.

Suggest a correction →