ai

What is Retrieval-augmented generation?

A way to keep LLM answers accurate by connecting them to your own data.

Quick answer

RAG is a way to ground an LLM in your own data. It searches your docs for relevant parts, then uses those as context for the answer.

What it is

RAG adds a search step before the LLM answers. It searches your docs for relevant parts and passes them to the LLM as context. The LLM answers from those parts only.

Why it matters

RAG keeps LLM answers accurate on your data. It cuts hallucination and lets you cite sources.

How to use it

  1. Break your knowledge base into small passages.
  2. Convert each passage to numbers and store it.
  3. At query time, convert the question to numbers, find the closest passages, and pass them to the LLM.
  4. Ask the LLM to answer from those passages and cite its sources.

Examples

  • A support bot grounded in product docs answers with citations.

Frequently asked questions

Do I always need RAG?
No. For general questions, a plain LLM is fine. For your own data, RAG is essential.

Other glossary terms

Step through the WebGrow24 glossary one entry at a time.

WebGrow24 services

Need help with Retrieval-augmented generation?

Fixed scope in 48 hours. Senior team. Outcome-led.