Skip to content
skillbld
Day 9 of 14 35 minGroundingCitationsHallucinations

The second half of RAG. Put retrieved chunks into a prompt that keeps the model grounded, get answers with citations, say "I don't know" when the documents don't cover a question, and check answers against their sources.

By the end of today you can

  • Build a grounded prompt from retrieved chunks with clear instructions and source tags
  • Ask for citations so every claim can be traced to a source
  • Make the model say it doesn't know instead of guessing
  • Check answers against their sources in code
  • Diagnose the common ways RAG goes wrong

What's inside

  • 4 sections
  • 3 diagrams and mind maps
  • 2 code examples you can run
  • 5-question quiz
  1. 1Building a grounded prompt
  2. 2Built-in citations
  3. 3Checking answers against sources
  4. 4Where RAG goes wrong

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 9: RAG: Generation · AI: Building with LLMs · SkillBld