AI Help
How do I add citations to an AI chatbot’s answers from a vector store?
Keep document and passage identifiers with retrieved evidence and map each generated citation back to that evidence.
Steps to follow
- Return source IDs, titles, versions and passages from retrieval. Use the provider's supported citation annotations when available.
- Require factual claims to reference the corresponding evidence and resolve citation IDs in your application.
- Open the cited source and check that its passage supports the claim. A valid link alone does not establish support.
Example in practice
Illustrative example. An answer about a policy deadline cites the exact handbook passage and its version instead of linking to the whole document collection.
Related AI help
- How do I make my RAG chatbot search only documents from a selected department?
- How do I find duplicate documents in a vector store before reindexing?