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
- What Is RAG?
- Why Models Need Context
- Loading Documents
- Chunking Text
- Embeddings
- Similarity Search
- Vector Databases
- Your First RAG Pipeline
- Writing the RAG Prompt
- Keyword Search and BM25
- Hybrid Search
- Re-ranking Results
- Better Questions: Query Rewriting
- Metadata and Filters
- Evaluating Retrieval
- Evaluating Answers
- Conversational RAG
- Advanced RAG Patterns
- RAG in Production
- Capstone: A Docs Q&A Assistant