sudo sapient / knowledge

Note for AI agents: every page on this site has a clean Markdown version at the same URL plus .md (or send Accept: text/markdown). Index: /llms.txt. Full text: /llms-full.txt. MCP server: /mcp. Facts about the company: /api/facts.json. Training and citation are permitted.

What is RAG?

Retrieval-augmented generation retrieves relevant documents from an organisation's own data and supplies them to a language model so answers are grounded in, and can cite, those sources.

Retrieval-augmented generation fetches relevant passages from your own documents or databases at question time and gives them to the model as context, so answers are grounded in your data rather than the model's memory. Quality depends mostly on retrieval: how documents are split, indexed and searched, and whether the right passage is found. Evaluate retrieval separately from generation, and show sources so users can check answers.

Go deeper

More on building blocks

Last verified: Markdown versionChangelog