Skip to content

Glossary: RAG Basics

Source tag

Also written: source id, <source>

The `<source id="S1">…</source>` wrapper that labels each retrieved chunk in the prompt. The short ID is what the model cites and your code maps back to a chunk.

Where the book teaches it

Related terms

CitationChunk