# RAG (retrieval-augmented generation)

> RAG, or retrieval-augmented generation, is a technique in which an AI system first finds relevant passages in approved documents and then writes its answer from them.

Source https://rareagentics.com/glossary/rag

## Why does it matter to a buyer?

It lets an agent answer from your own material rather than its general training, and lets it cite its sources. Its answers are only as good as the documents behind it, so out-of-date or duplicated material has to be dealt with first.

## An example

For example, a staff assistant asked about parental leave first retrieves the relevant section of the staff handbook, then answers from it and cites the page.

## Related terms

- [Hallucination](https://rareagentics.com/glossary/hallucination)
- [AI agent](https://rareagentics.com/glossary/ai-agent)
- [Guardrails](https://rareagentics.com/glossary/guardrails)

---

Rare Agentics is a UK software and AI agent engineering firm based in London. Rare Agentics Limited, company number 17494524. Contact hello@rareagentics.com or https://rareagentics.com/contact. Book a call at https://rareagentics.com/book-a-call.
