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)
- Put 3–10 markdown files in a folder
- Chunk + embed (local or API)
- Ask a question → top-k chunks
- Prompt model with chunks + require citations
- 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
- Course 09 RAG chapters; Course 21 setup + safe API calls
- https://www.ainerdnetwork.com/learn/rag-retrieval-augmented-generation ↗
