# What is retrieval augmented generation (RAG), and why does it matter for what a system tells you?

Retrieval augmented generation means looking the answer up before writing it. The system searches your own documents for the passages relevant to a question, hands those passages to the model, and asks it to answer from them. The model supplies the language. Your files supply the facts, and the answer can cite which ones.

Also called: RAG
Checked: 2026-09-27

In one line

Search your documents first, then let the model answer from them.

## Why it matters to you

The reason to care is citation. A model answering from memory cannot tell you where an answer came from, so you cannot check it. A retrieval system can point at the paragraph, which turns an answer you have to trust into an answer you can verify in four seconds.

The quality of a retrieval system is almost entirely in the retrieval, not the model. If the search returns the wrong three passages, a better model writes a more convincing wrong answer. This is why the boring parts, chunking, metadata, permissions and freshness, decide whether the thing is useful.

Permissions are the part that gets skipped. A retrieval system that ignores who is asking will happily quote the salary review to the intern.

## Where it turns up in something we run

- Company Brain cites the source of every answer it gives, and runs on Alchemyst's verifiable context engine (recorded 2026-09-14)

## Next to this

- [Hallucination](https://octyn.co/glossary/hallucination)
- [AI agent](https://octyn.co/glossary/ai-agent)
- [Observability](https://octyn.co/glossary/observability)

## Argued out at length

- [What production ready means for an AI system](https://octyn.co/compare/production-ready-ai-system)

## Related

- [What production ready means for an AI system](https://octyn.co/compare/production-ready-ai-system)
- [Hallucination](https://octyn.co/glossary/hallucination)
- [The Consult](https://octyn.co/consult)

Canonical: https://octyn.co/glossary/retrieval-augmented-generation
