LLMs GuruLLMsGuru
Find your AI
AI ModelsAI ToolsLearnGlossaryAI NewsFree ToolsFind your AISpeakRightAstrology
Explore All Tools
← The AI Dictionary
Plain-English definition

RAG

In one breath

Giving AI your documents to read before it answers, so it cites your facts instead of guessing.

In more detail

RAG — retrieval-augmented generation — means the AI looks things up before it answers. Instead of relying only on what it absorbed during training, the system first fetches the most relevant passages from your documents and hands them to the model alongside your question.

Think of it as an open-book exam instead of a memory test. It’s the standard cure for two big problems: hallucination, because the model can cite your actual text, and staleness, because it can read files far newer than its training. Most ‘chat with your documents’ tools are RAG underneath.

📌 See it in action

An employee asks the HR chatbot, ‘How many vacation days do I get after five years?’ Behind the scenes, the system pulls the exact paragraph from the current leave policy and gives it to the model — which answers with the real number and can point to the page it came from.

Goes with
Vector DatabaseEmbeddingHallucinationContext Window

Now put the vocabulary to work.

Meet the models →Which AI is mine?