citation generation
**Citation generation** is the **process of producing explicit references from generated answers to the source documents that support each claim** - high-quality citation behavior is essential for trustworthy retrieval-augmented outputs.
**What Is Citation generation?**
- **Definition**: Automatic insertion of source references into model responses.
- **Citation Targets**: Document IDs, passage spans, URLs, or knowledge-record identifiers.
- **Quality Requirement**: Citations must be both present and semantically faithful to claim content.
- **Failure Mode**: Hallucinated citations occur when references do not support the stated answer.
**Why Citation generation Matters**
- **Answer Auditability**: Users can independently verify generated statements.
- **Trust Calibration**: Transparent sourcing improves confidence and error detection.
- **Safety and Compliance**: Critical in regulated domains requiring evidence-backed outputs.
- **Debuggability**: Helps isolate retrieval coverage problems versus generation synthesis errors.
- **Factuality Support**: Citation pressure promotes grounded, less speculative generation.
**How It Is Used in Practice**
- **Source-Constrained Prompting**: Require model to cite only retrieved document IDs.
- **Citation Validation**: Run entailment checks between cited passage and claim text.
- **Formatting Standards**: Enforce consistent citation schema for downstream tooling.
Citation generation is **a core capability for reliable RAG answer delivery** - accurate references turn model outputs from opaque text into verifiable, evidence-backed responses.