Learn RAG: Retrieval-Augmented Generation by writing real code

Make AI answer from your own documents: chunking, embeddings, vector search, BM25, hybrid search, re-ranking, evaluation and a production docs assistant.

Each chapter explains one idea, shows a worked example and then asks you to write and run your own RAG: Retrieval-Augmented Generation code in the browser, with tests that check your answer.

Anyone can read the chapter list. The chapters themselves are part of licode Club.

RAG: Retrieval-Augmented Generation chapters

  1. What Is RAG?
  2. Why Models Need Context
  3. Loading Documents
  4. Chunking Text
  5. Embeddings
  6. Similarity Search
  7. Vector Databases
  8. Your First RAG Pipeline
  9. Writing the RAG Prompt
  10. Keyword Search and BM25
  11. Hybrid Search
  12. Re-ranking Results
  13. Better Questions: Query Rewriting
  14. Metadata and Filters
  15. Evaluating Retrieval
  16. Evaluating Answers
  17. Conversational RAG
  18. Advanced RAG Patterns
  19. RAG in Production
  20. Capstone: A Docs Q&A Assistant