Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Basics

RAG

in English: retrieval-augmented generation

basicwidespread

A method in which artificial intelligence, before answering, retrieves the document passages relevant to the question and formulates its answer based on them.

In plain terms

Imagine two students taking an exam. One answers from memory: they know a lot, but when they don't, they sometimes confidently guess. The other can use the library: they first find the relevant pages and answer based on them. RAG turns the language model into the second student.

A language model typically relies only on what it saw during training. It does not know yesterday's news, your company's internal regulations, or your own contracts. RAG fills this gap: it retrieves relevant text passages related to your question and feeds them to the model before it answers.

This way, the answer can be fresher and more accurate, and the source can be shown. The model does not need to be retrained for this: it is enough to expand or replace the document repository.

How it works

  1. Preparation: documents (regulations, articles, manuals) are split into short sections and stored in a searchable format, often in a so-called vector database that can be searched by meaning.
  2. Search: when you ask a question, the system does not first turn to the model, but searches the store for the sections best matching your query. This often uses both semantic and traditional keyword search together.
  3. Expansion: it inserts the found sections next to your question, so the model receives both the question and the relevant background material at once.
  4. Generation: the model formulates the answer based on these texts, ideally indicating which source it used.
  5. Verifiability: based on the references, you can open the original document yourself and check whether it actually says what is claimed.

An everyday example

Your bank's or service provider's customer service chat does not give general answers to your question but refers to the current fee schedule and general terms and conditions. Behind the scenes, RAG is likely at work: the system first retrieved the relevant paragraphs and only then answered.

Who is affected

employeeMost internal assistants searching corporate knowledge bases work this way, so you increasingly receive answers from such systems to questions about regulations or procedures. → Work & HR
entrepreneur, executiveThis is often the fastest and cheapest way for AI to work from your company's own documents without retraining the model.
developerMany enterprise AI applications and agents rely on this building block for knowledge management, so search quality directly determines product quality. → Code
everyoneThis solution underlies AI search engines and chatbots that also display sources, so it is worth knowing why they are more reliable and why they are not infallible.

A common misconception

MythIf the AI works from sources, it can no longer make mistakes or invent things.
In realityRAG reduces the chance of errors but does not eliminate them: the model may misinterpret or poorly summarize the found text. If the search retrieves a bad document, the answer will also be bad.

Limits and risks

Similar, but not the same

Related concepts

Broader

Generative AI, Large language model, Information retrieval

Narrower

vector database, Embedding, semantic search, Graph-based RAG

On the edge

hallucination, Fine-tuning, Kontextusablak, AI-agent, Prompt

A brief history

The term was introduced by Patrick Lewis and co-authors in a 2020 study, which linked the knowledge of a language model with an external, searchable document repository (Wikipedia). It became widely known from the end of 2022, with the spread of chatbots built on large language models.

Where things stand

By the end of 2026, it will be a fundamental building block of corporate AI solutions: customer service chatbots, internal knowledge bases, and AI search engines displaying sources will all use it. The direction of development is that agents will themselves decide when, where, and how often to search.

Status: 2026 November

In the news

Appears in 1 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

RAG · retrieval-augmented generation · retrieval augmented generation · retrieval-augmented generation · retrieval-augmented generation · search-based generation · search-based text generation (retrieval-augmented generation) · RAG-rendszer

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.