---
title: "RAG"
expansion: "retrieval-augmented generation"
spanish: "generación aumentada por recuperación"
aliases: ["retrieval augmented generation"]
category: "Your data and AI"
description: "A technique that makes AI search your documents or a knowledge base first and base its answer on what it finds."
updated: 2026-11-11T15:57:33.297Z
glossary: "https://www.jmcliment.com/en/glosario"
canonical: "https://www.jmcliment.com/en/glosario/rag"
---

# RAG

Short for *retrieval-augmented generation*.

- Also called: retrieval augmented generation
- Category: Your data and AI

A technique that makes AI search your documents or a knowledge base first and base its answer on what it finds.

## What it is

With RAG, before answering, the system searches a source of information (your documents, your website, your [knowledge base](https://www.jmcliment.com/en/glosario/knowledge-base)) for the most relevant passages and passes them to the model along with the question. The model writes its answer with that information, not just with what it learned in training.

## In practice

It’s what’s behind a customer service [chatbot](https://www.jmcliment.com/en/glosario/chatbot) that answers with your actual return policies, or an internal assistant that handles questions about the brand guidelines. When you upload lots of files to a [ChatGPT](https://www.jmcliment.com/en/glosario/chatgpt) or [Claude project](https://www.jmcliment.com/en/glosario/projects), a similar idea applies.

## Watch out for…

The answer will only be as good as the documents. If you have three versions of the price list or an outdated PDF, the system may cite the wrong one. Keep the source organized and up to date, and ask it to say which document each fact comes from.

Learn more: <https://es.wikipedia.org/wiki/Generaci%C3%B3n_aumentada_por_recuperaci%C3%B3n>

## Appears in

- [How big websites control AI](https://www.jmcliment.com/en/blog/ai-on-websites)
