Prompt
AI search with citations
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
If you want AI search with citations, here are the main ways to do it:
Options
-
Web search + LLM
- The model searches the web, then answers using retrieved sources.
- Citations usually appear as links, footnotes, or source cards.
-
RAG (Retrieval-Augmented Generation)
- Your app retrieves relevant documents from a database or search index.
- The model answers using those documents and cites them.
-
Search APIs with citation support
- Examples: Bing Web Search, Google Custom Search, SerpAPI, Tavily, Perplexity-style APIs.
- You can pass results to an LLM and attach citations from the returned URLs.
Good citation practices
- Cite the exact source used for each claim.
- Prefer primary sources when possible.
- Include title, publisher, and URL.
- Show timestamps for fast-changing topics.
- Avoid citing sources the model did not actually use.
Example response format
According to the CDC, flu vaccines reduce the risk of illness and severe outcomes for many people [1].
Sources:
[1] CDC — Flu Vaccines https://www.cdc.gov/flu/vaccines/
If you want, I can help you:
- build an AI search product with citations
- compare search APIs
- design a citation format
- write code for web search + LLM citations