To get citations, include the document IDs or names with each retrieved chunk, then instruct the model to reference them when stating facts. Specify the citation format in the instructions, like "Cite sources as [doc-id]." For higher reliability, ask the model to only state claims that are directly supported by a citation, and to abstain otherwise.