SHEN YIFull-Stack & AI

Paris • Singapore • Shanghai

RAG Formation · Reference

Citation design and source fidelity

A standalone cheat sheet for learning and testing RAG quality on this site.

$ reference --status
▸ course RAG Formation
▸ mode standalone reference
▸ status Complete
● learn → test → verify

Reference sheet

Citation design and source fidelity

The guided RAG Formation course content is complete; this reference is available for self-directed practice.

One-line rule

A filename is not a real citation if the source never supported the claim shown to the user.

Core terms

TermMeaning
Citation fidelityThe cited source actually contains or supports the claim.
Citation completenessEvery important claim has enough supporting evidence, especially in a multi-hop answer.
Citation identityA stable document and chunk reference that a user can inspect or reproduce.

Evidence card

NeedRecordDon't claim
BaselineCommand, configuration, observed resultThe baseline is a target.
ChangeOne hypothesis or decisionYou can tell what caused the result when several things changed.
MetricTrack missing, extra, or misleading citations separately from answer correctness.One metric tells you everything about quality.
SafetyA failure and a regression caseA fluent answer proves the system is reliable.

Local command

cd demo
python3 eval.py run --mode answer --workspace meridian_demo --tag lesson-11-citations

Artifact: A citation contract that maps claims to document and chunk/page identities, with clear deduplication rules.

Continue learning: Open the matching standalone lesson · Course roadmap