Learn/Generative AI, RAG & Agents/MODULE 2: RETRIEVAL AUGMENTED GENERATION (RAG)
Lesson 12 of 37 · 2 min read

2.1 The Problem RAG Solves

By the end of Module 1, you knew that LLMs are impressive generalists that learned from a snapshot of internet-scale text.

But this approach has serious limitations the moment you try to use LLMs for real work:

Problem 1: Knowledge cutoffs. An LLM only knows what was in its training data.

If the model was trained through January 2024, it knows nothing about events in February 2024 or later.

For a fast-moving topic, the model can be confidently wrong.

Problem 2: Private knowledge. Your company's internal policies, your customer database, your team's Slack messages, the PDFs in your shared drive — none of that was in the training data.

The LLM has no idea about any of it.

Problem 3: Hallucinations. As we covered, even for things "in" the training data, the model can confabulate.

It might tell you a policy detail with the wrong number, or invent a non-existent reference.

Problem 4: Inability to cite sources. Even when the model gives a right answer, you don't know where that answer came from.

For business use, regulated industries, journalism, or any context where verification matters, that's a problem.

Problem 5: Updates are expensive. Re-training or fine-tuning an LLM to include new information costs significant money and time.

It's not feasible to retrain a model every time your help-desk articles get updated.

Enter RAG

Retrieval Augmented Generation (RAG) is a standard technique for solving these problems.

It is not the only one: long-context prompts and agentic search are real alternatives, and lesson 4.2 gives you a rule for choosing.

The idea is simple in concept:

Before asking the LLM to answer a question, find the relevant information from a trusted source (a database, a set of documents, a website), and include it in the prompt.

Instead of asking the model "what do you know?", you're effectively saying:

"Here are some relevant documents. Based on these, answer the user's question."

This dramatically improves accuracy, lets you connect the LLM to private and up-to-date information, and lets you cite sources because you know exactly which documents the model was given.

RAG is one of the most important practical techniques in modern AI engineering.

If you're building anything that needs to use specific information — a customer support bot, an internal documentation assistant, a research tool — you'll almost certainly use RAG.

Keep going with a free account

A free account saves your progress across lessons and lets you pick up where you left off.