COURSE 21L1100% FREE
Verified 2026-08-10

Mini RAG lab

A laptop-scale lab: chunk a few docs, embed, retrieve, generate with citations—wiring Course 09 ideas into code.

What it is

A laptop-scale lab: chunk a few docs, embed, retrieve, generate with citations—wiring Course 09 ideas into code.

Why it matters

RAG clicks when you see a wrong chunk cause a wrong answer.

How it works (plain)

  1. Put 3–10 markdown files in a folder
  2. Chunk + embed (local or API)
  3. Ask a question → top-k chunks
  4. Prompt model with chunks + require citations
  5. Break it on purpose (bad chunking) and observe

Try it

Include one question whose answer is only in doc B; confirm retrieval returns B.

Myths

⚠️ Myth: You need a huge vector DB to learn RAG.
✓ Reality: A folder + cosine ranking teaches the loop.

Sources