Glossary, Content44 / 78
Retrieval-augmented generation
Also called: RAG
Retrieval-augmented generation (RAG) lets an AI model answer from documents retrieved for the question, in addition to what it learned in training.
A language model knows only what was in its training data. Retrieval-augmented generation, RAG for short, gives it something to read first. When a question comes in, the system searches a collection of documents for the passages that fit. It hands them to the model together with the question, and the model writes its answer from them. The term comes from a research paper published in 2020.
The collection can hold what the model was never trained on, such as a company’s own documents, a publisher’s articles or current data. The model can use it without being trained again. Because the answer rests on known documents, it can cite them, and readers can check it.
RAG reduces hallucinations. It does not end them. A model can still misread a passage or state something the documents do not say.
PAISTRY's agents work on this principle. An agent answers from the content of the website it serves, which it searches, reads and cites. Many answers show their sources. Prices and offers come only from the agent's product range.