Glossary

Retrieval-Augmented Generation

Retrieval-Augmented Generation (RAG)

First look up relevant material in a document store, then have the AI answer based on what it found, to cut down on made-up answers.

A large language model’s knowledge stops at the time it was trained, and it doesn’t know your company’s internal documents. RAG works like this: first search for documents related to the question, then hand the passages it finds to the AI, so it can answer “open book”.

This way the answers can cite sources, are more up to date and contain fewer hallucinations. But it only works if the document store itself is correct.

An example

When a company’s AI customer service answers “who pays the shipping for returns?”, it first looks up the company’s latest after-sales policy and then answers according to that policy, rather than going from memory.

Articles that mention it

Go deeper (English Wiki): Retrieval-augmented generation (RAG) →

This entry was compiled with AI assistance from the sources in the English Wiki. Found an error? See Corrections