All projects

Build a RAG app

Build an app that answers questions from your own documents, and shows where each answer came from.

For anyone who knows Python basics: variables, lists, dictionaries, loops and functions.

Start chapter 1

What you will build, part by part

  1. Load
  2. Chunk
  3. Embed
  4. Search
  5. Ask the AI
  6. App

Chapters

11 chapters · about 5.5 hours
  1. 1What is RAG?15 min
  2. 2Set up your project30 min
  3. 3Load the documents25 min
  4. 4Split them into chunks20 min
  5. 5Find the right chunk30 min
  6. 6Embeddings: meaning as numbers30 min
  7. 7Search by meaning30 min
  8. 8Ask the AI35 min
  9. 9Make it an app25 min
  10. 10Share it40 min
  11. 11Make it yours60 min

You write the code on your own computer. The starter project and each chapter's finished code are on GitHub.