The go-to setup for 'chat with our docs'. And the spots where it quietly breaks.
An open-book exam. Instead of answering from memory (risking errors), the model is handed the exact relevant pages and told 'answer using only these, and cite them.' Chunking is tearing the textbook into index-card-sized pieces so it grabs just the right ones.
That RAG is one thing you switch on, and that 'the AI gave a wrong answer' means 'the model is dumb'. RAG is a multi-stage pipeline where each stage can fail — and most failures are retrieval failures: it fetched the wrong chunks.
The lesson, in five answers
Before the model answers, the system pulls relevant snippets from your data and drops them into the prompt. That way the answer rests on real, current sources it can cite. Here's the pipeline. Split documents into chunks. Embed each chunk. Store them in a vector database. Fetch the closest chunks to the question. Re-rank them if you want. Insert them into the prompt (this is called grounding). Then generate the answer with citations.
RAG cuts down on made-up answers. It keeps answers current. And it gives citations, which build trust and help with audits. That's why nearly every enterprise AI feature is a RAG system. As a PM, you have to know where it breaks and how it's measured.
Use it whenever answers depend on your private or fast-changing data and need to be citable. Think support copilots, policy assistants, and internal search. Pick it over fine-tuning when the need is knowledge, not behaviour. In 2026, RAG is less and less a fixed first step. More often it's a tool the agent chooses to call. People call this 'agentic RAG'. The agent retrieves in rounds, and searches again when the results look weak.
How good your retrieval is sets the ceiling on how good the answer can be. Bad chunking or a weak retriever means even the best LLM answers badly. Often the best fix isn't fancier embeddings. It's plain metadata filtering. You narrow the search by fields like date, product, or permissions. And bigger context windows don't remove the need for this. Dumping everything in is slower, pricier, and less accurate than fetching just the right slice.
"When users report wrong answers in a RAG product, I don't assume the model failed. I check retrieval first, using context precision and recall. Most errors come from fetching the wrong chunks. I'd track faithfulness and answer relevancy, which is a RAGAS-style eval. And I'd experiment with chunk size and with adding a re-ranking step."
The canonical explainers for this topic. Open them alongside the lesson, not after it.
External links open in a new tab. Content and prices change — verify before relying on any of them.
Chunking
Splitting documents into small pieces the system can fetch. How you split them quietly makes or breaks quality.
Re-ranking
A second pass that reorders the fetched chunks by relevance, before they go into the prompt.
Grounding
Putting the fetched sources into the prompt, so the answer stays inside them.
Faithfulness
Does the answer stick to the retrieved sources without making things up?
Context precision / recall
Were the fetched chunks relevant (precision)? Did we fetch everything needed (recall)?
Agentic RAG
Retrieval treated as a tool the model chooses to call, in rounds, instead of a fixed step that runs once up front. It's the 2026 frontier framing.
Metadata filtering
Narrowing the search by fields (date, product, permissions) before ranking. Often the cheapest retrieval fix.
You don't need to use or master these. Recognising the names — and which box each sits in — is the tech-stack awareness a PM needs. No deep dive.
Try it
Send a query through each stage, and toggle retrieval off to watch it hallucinate.
Retrieval-Augmented Generation
User asks: "How many days do I have to return a device?"
You can return within 45 days.
Confident, fluent, and wrong — nothing constrains it to the actual policy.
Why it matters to a PM: when users report wrong answers, check retrieval first — the model usually got the wrong context, not "the model is dumb." Track faithfulness + context precision/recall.
Recall beats re-reading. Answer before you flip.
Build a tiny RAG demo without code: create a Custom GPT (or Claude Project), upload 5–10 policy docs, and ask 10 questions. Log where it answered well vs. fetched the wrong context — that log is a baby eval set.
This is where the hours go — reading is the warm-up, doing is the learning.
External resources open in a new tab. Course prices and links change — verify before paying.
Marked this one off? Your progress saves on this device.