AI & automation

What is retrieval-augmented generation?

Retrieval-augmented generation (RAG) is a technique where an AI system first searches your own documents or data for relevant passages, then gives them to the language model so its answer is based on that material.

How RAG works

Documents such as policies, manuals, FAQs and product data are split into chunks and indexed, often as embeddings in a vector database. When a question arrives, the most relevant chunks are retrieved and included in the prompt, and the model answers from them, ideally citing the sources.

Why businesses use it

Answers reflect your current information without retraining a model, and wrong answers drop sharply when the model is told to answer only from the retrieved text. Quality depends on clean, up-to-date source documents and good retrieval.

Questions, answered

For answering questions from changing business information, usually yes. Fine-tuning suits teaching style or specialised formats.

Yes. Retrieval can respect user permissions so people only get answers from documents they may see.

By the Stegnor team · Updated