AI & Machine Learning course

Retrieval-Augmented Generation

Build, evaluate, and optimize retrieval-augmented generation systems that answer questions directly from your documents.

16 lessonsabout 2 hours in allIntermediateFree

Lessons of 5 to 10 minutes, taught by Milo, your AI tutor. In your browser now; phone apps soon.

By the end you can
  • Design an indexing and question-answering pipeline for document-based assistants, including chunking, embeddings, search, reranking, and query rewriting
  • Evaluate retrieval and answer quality, diagnose failures, and write prompts that keep answers grounded in evidence
  • Plan production safeguards for permissions, poisoned documents, and index updates

What you'll learn, lesson by lesson

  1. 1Do You Actually Need Retrieval?Choose among retrieval, fine-tuning, sending the full text and plain search for three features.
  2. 2The Two Paths: Indexing and AnsweringDiagram the indexing path and the query path.
  3. 3Getting Clean Text Out of Messy FilesIdentify three parsing problems in a sample PDF extract.
  4. That's a preview. 13 more lessons follow.

    Take all 16 lessons free in the Milo app, with Milo teaching each one.

    Start this course free
  5. 4Splitting Documents into Chunks
  6. 5What Embeddings Capture and Miss
  7. 6Vector Search and Its Trade-Offs
  8. 7When Keywords Win
  9. 8Reranking the Candidates
  10. 9Rewriting the Question
  11. 10Prompts That Stay on the Evidence
  12. 11Measuring Retrieval on Its Own
  13. 12Grading the Answers
  14. 13Finding Where It Went Wrong
  15. 14Letting the Model Search Again
  16. 15Permissions and Poisoned Documents
  17. 16Keeping It Working in Production
Inside the app

Not a video. A tutor who teaches you.

Milo explains each idea of Retrieval-Augmented Generation out loud and on the blackboard, checks you understood, and coaches you when you slip. Lessons take 5 to 10 minutes.

Start free
A Milo lesson: Milo explains an idea and draws it on the blackboard
A quick check in a Milo lesson, answered correctly, with Milo's explanation

More in AI & Machine Learning

Free to learn

This course is free. So is Milo's help planning it.

Every course in Milo's library, your growth plan and Milo's weekly check-ins cost nothing. Members, from $5 a month, also get lessons written just for them.

Can I really start for free?
Yes. No card needed.
Can I cancel a membership any time?
Yes, from your account. You keep it until the end of the month you paid for.
Where does it work?
In any browser on a phone, tablet or computer. Phone apps are on the way.