Prompt
How do I add citations to answers from our internal docs?
Latest observation
Oct 10, 2026
OpenAI APIWeb search: off
To add citations from your internal docs, the general approach is:
-
Retrieve the relevant source passages
- Search your internal docs for the answer.
- Keep track of the exact document, section, page, URL, or snippet used.
-
Quote or paraphrase with a reference
- When you make a factual claim, attach the source right after it.
- Example:
- “The approval workflow requires manager sign-off before deployment. [Employee Handbook, p. 14]”
- “Password resets expire after 24 hours. [IT Policy > Access Management]”
-
Use a consistent citation format A simple internal format could be:
- [Doc Title, section/page]
- [Doc Title, URL]
- [Doc Title, retrieved YYYY-MM-DD] if docs change frequently
-
Cite each distinct claim
- If an answer has multiple facts from different places, cite each sentence or paragraph.
-
Prefer exact wording for critical statements
- For policies, legal, security, or compliance content, include a short quote when possible.
Example answer:
Employees must complete security training within 30 days of hire. [Security Policy, Section 2.1]
Access requests are approved by the employee’s manager and IT. [Access Control Procedure, p. 3]
If you want, I can also help you set up:
- a citation template for your team,
- a prompt format that makes the model cite sources automatically, or
- a RAG workflow that returns answers with source links/snippets.