Back to M2 — RAG Architecture + Evals

RAG Architecture + Trade-offs

Outcome: Choose RAG vs fine-tune for 3 cases Curated video (IBM Technology): What is Retrieval-Augmented Generation (RAG)? — https://www.youtube.com/watch?v=T-D1OfcDW1M (verified live via yt-dlp 2026-09-24). Pointer: llms-genai-for-practitioners/12 (hybrid legal-AI pattern); shell: courses/video-scripts/genai-rag-agents/03.md.

7 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.

Ready to continue?

Mark this lesson as complete when you're ready to proceed.

Key moments

  1. Introduction to RAG — Retrieval Augmented Generation (RAG) helps Large Language Models be more accurate and current.
  2. LLM Challenges Defined — Standalone LLMs suffer from lack of source and out-of-date information.
  3. Grounding Example — Looking up facts on a reputable source prevents hallucination and ensures accuracy.
  4. LLM vs RAG Response — A standalone LLM confidently answers based on potentially outdated training data.
  5. RAG Architecture — RAG adds a retriever and a content store to the LLM process, moving beyond internal knowledge.
  6. RAG Process Flow — The RAG framework instructs the LLM to retrieve relevant content before generating a final answer.
  7. RAG Solves Timeliness — RAG addresses out-of-date information by updating the external data store instead of retraining the model.
  8. RAG Solves Sourcing — RAG forces the model to use primary source data, reducing hallucination and enabling evidence provision.
  9. RAG Trade-offs — If the retriever fails to find quality data, the model may incorrectly respond with 'I don't know' even if the answer exists.
PDF notes

Frequently asked questions

Why is RAG better than just retraining the LLM frequently?

Retraining is expensive and time-consuming. RAG allows instant updates simply by modifying the external content store.

What does it mean for an answer to be "grounded"?

A grounded answer is supported by specific, verifiable evidence retrieved from the external content store. This prevents the model from making up facts.

What are the three parts of a RAG-enhanced prompt?

The prompt includes the user's question, the instruction to pay attention to retrieved content, and the retrieved content itself.

Can RAG leak personal or sensitive information?

RAG reduces the likelihood of leaking data learned during training, but the content store itself must be secured and curated.