---
title: "RAG — Retrieval-Augmented Generation | Glossary · AI Chatbot"
description: "Generation grounded in your documents."
url: https://websem.ro/en/resources/atlas/chatbot-glossary/rag
lang: en
publisher: Websem (https://websem.ro)
---

# RAG — Retrieval-Augmented Generation | Glossary · AI Chatbot

## Definition

A technique where, before answering, the assistant searches the relevant fragments from your documents and hands them to the model as context. The answer is thus anchored in real data, not in the model's generic memory — the primary method for reducing hallucinations.

## Appeared

Concept formalized in 2020 (Facebook AI / Meta paper), a standard in business assistants since 2023.

## Tactics

We split documents into fragments, turn them into [embeddings](#embeddings), store them in a [vector database](#vector-database) and, on every question, inject the matching fragments into the prompt.

Related terms: [Knowledge base](https://websem.ro/en/resources/atlas/chatbot-glossary/knowledge-base), [Embeddings](https://websem.ro/en/resources/atlas/chatbot-glossary/embeddings), [Grounding](https://websem.ro/en/resources/atlas/chatbot-glossary/grounding), [Halucinație](https://websem.ro/en/resources/atlas/chatbot-glossary/halucinatie)

Glossary: Glossary · AI Chatbot — https://websem.ro/en/resources/atlas/chatbot-glossary

---

Source: Websem, AEO and GEO agency in Bucharest — https://websem.ro · office@websem.ro · +40760604849. HTML version of this page: https://websem.ro/en/resources/atlas/chatbot-glossary/rag
