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

  1. Return source IDs, titles, versions and passages from retrieval. Use the provider's supported citation annotations when available.
  2. Require factual claims to reference the corresponding evidence and resolve citation IDs in your application.
  3. 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

Official guidance

OpenAI documentation