Use this file to discover all available pages before exploring further.
The chat endpoint takes a user question, retrieves relevant passages from
your indexed documents, and generates a grounded answer with citations.
It’s a turnkey RAG pipeline — no prompt engineering, no chunk assembly, no
citation formatting.
Every chat response includes structured citations pointing back to the
source documents:
{ "answer": "Customers may request a refund within 30 days of purchase...", "citations": [ { "file_id": "...", "file_name": "refund-policy.pdf", "page": 4, "passage": "Customers may request..." } ]}
Use these to render “read more” links in your UI or verify the LLM isn’t
hallucinating.
Use search when you want passages to render as a list, or when you
need raw retrieved content to feed into your own prompt
Use chat when you want an answer composed for you, with citations
Chat internally calls search and uses the results as context for an LLM.
If you want full control over the LLM or prompt, use search + your own
LLM call.