AI glossary · Building and running AI

Retrieval-augmented generation (RAG)

Retrieval-augmented generation (RAG) makes AI answers more accurate by first looking up relevant information, then having the model answer using it.

In more detail

A RAG system searches a source, such as company documents, a help centre or the web, for passages related to your question. It adds them to the prompt, and the model writes an answer based on them, often with citations.

RAG lets a model use private or up-to-date information without retraining, and reduces hallucinations. It usually relies on embeddings and a vector database.

Example

A company chatbot answers “How many days of leave do I get?” by retrieving the HR policy and quoting the relevant section.

Browse related tools

AI tools listed on BroUseAI in these categories.

More in Building and running AI · Full AI glossary