# What is retrieval-augmented generation?

> RAG: a method where an AI model first looks up the most relevant passages in your own content, then writes its answer only from those passages.

URL: https://office.greatwork.company/glossary/retrieval-augmented-generation
Last updated: 2026-11-21

RAG: a method where an AI model first looks up the most relevant passages in your own content, then writes its answer only from those passages.

Retrieval-augmented generation splits your documents into short passages, finds the ones closest to a question (by meaning, by keywords, or both), and gives only those to the model with an instruction to answer from them.

That's how a support assistant can answer from your help center without being retrained: change a page, and the next answer uses the new text. It also makes citations possible, because the system knows which passages it used.

## Where you'll use it

- [Train a chatbot on your website](https://office.greatwork.company/assist/features/website-crawler): Paste your website's address and the assistant reads it, page by page, with a progress bar. It re-reads your site every day so answers stay current.
- [Answers from your help center](https://office.greatwork.company/assist/features/help-center-sync): Connect your knowledge base and every published article becomes something the assistant can answer from, the moment you hit publish.
- [Answers from PDFs and files](https://office.greatwork.company/assist/features/pdf-and-file-sources): Upload PDFs, text, Markdown, HTML or CSV files. Answers cite the file and, for PDFs, link straight to the right page.

## Related terms

- [Grounding](https://office.greatwork.company/glossary/grounding): Tying an AI answer to specific source material, so every claim in it can be traced back to a page, article or document you provided.
- [AI hallucination](https://office.greatwork.company/glossary/ai-hallucination): When an AI model states something that sounds right but isn't supported by any source, like an invented return policy, feature or price.

---

Office by Great Work. Questions or corrections: hello@greatwork.company
