[Glossary](https://vatan.one/glossary)/**RAG**

# What is RAG?

Retrieval-augmented generation: answering from your documents rather than model memory.

It searches a corpus and gives the relevant passages to the model as context. In an enterprise the hard part is permissions: the search must run as the asking user, at query time, or it leaks documents.

Related

[Enterprise search](https://vatan.one/glossary/enterprise-search)[Citation](https://vatan.one/glossary/citation)

See how this works in practice

The console shows the mechanism rather than describing it.

[Products](https://vatan.one/products)

Source: https://vatan.one/glossary/rag
