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

Ce AI IQ™ ai tu?

Rezolvă quizul gratuit cu 10 întrebări, vezi scorul și rangul în câteva minute și provoacă un prieten să te întreacă.