AI IQ™
AI Glossary

Retrieval-Augmented Generation (RAG)

A technique that retrieves relevant documents and feeds them to a model so its answers are grounded in real sources.

In RAG, a user's question is used to search a knowledge base, often a vector database of embeddings. The best-matching passages are inserted into the prompt, and the model answers using them, ideally with citations.

RAG lets models use private or up-to-date information without retraining, and it reduces (but doesn't eliminate) hallucinations.

💡 Example: A company help bot that searches its own documentation before answering a customer.

Related terms

Think you know your AI terms? 🤓

Take the Medium quiz Back to glossary

Какой у ВАС AI IQ™?

Пройдите бесплатный тест из 10 вопросов, узнайте свой балл и ранг за пару минут и бросьте вызов другу.