BasicAgent
RAG Provenance and Citations
RAG Provenance and Citations — Provenance-first RAG design: metadata schemas, lineage IDs, retrieval logs, and citations you can defend.
Citations aren’t “nice UX.” They’re a systems guarantee:
- what sources were retrieved
- what chunks were used
- how outputs map back to inputs
What to capture in a provenance-first RAG system
document_id(stable)chunk_id(stable)- source URI + hash
- retrieval query + parameters
- ranking scores + top_k
- offsets/snippets (so you can re-render citations)
Download a metadata schema starter: /tools/rag-provenance-metadata-schema/