Home›Library›AI & Data Science
Curated LibraryRAG From Scratch: Retrieval-Augmented Generation with LangChain
A 14-part code-along series that builds a retrieval-augmented generation pipeline from the basics of indexing, retrieval and generation, then layers on advanced techniques: query translation (multi-query, RAG-Fusion, decomposition, step-back, HyDE), routing, query structuring, multi-representation indexing, RAPTOR and ColBERT. It suits developers who already know basic Python and LLM prompting and want to understand how RAG works and how to improve it.
- 14 lessons
- 1h 26m total
- AI & Data Science
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Explain the RAG pipeline of indexing, retrieval and generation, and why it is used to connect LLMs to external data
- Index documents with embeddings and retrieve relevant chunks by similarity search for an LLM to answer from
- Improve retrieval by rewriting queries with multi-query, RAG-Fusion (reciprocal rank fusion), decomposition, step-back prompting and HyDE
- Route questions to the right data source or prompt using logical and semantic routing
- Turn natural-language questions into structured queries for databases with metadata filters
- Apply advanced indexing strategies: multi-representation indexing, RAPTOR hierarchical summaries and ColBERT token-level matching
Prerequisites
- Working knowledge of Python
- Basic familiarity with LLMs and prompting
- An LLM API key (e.g. OpenAI) to run the code along with the videos
Course Curriculum
14 lessons · 1h 26m- 01Part 1: Overview of RAG5:13
- 02Part 2: Indexing4:52
- 03Part 3: Retrieval5:14
- 04Part 4: Generation6:25
- 05Part 5: Query Translation – Multi-Query6:09
- 06Part 6: Query Translation – RAG Fusion5:42
- 07Part 7: Query Translation – Decomposition6:37
- 08Part 8: Query Translation – Step Back6:59
- 09Part 9: Query Translation – HyDE4:47
- 10Part 10: Routing7:03
- 11Part 11: Query Structuring5:59
- 12Part 12: Multi-Representation Indexing6:35
- 13Part 13: RAPTOR7:40
- 14Part 14: ColBERT7:13
About the Instructor
LangChain
YouTube creator
The lessons in this course were produced by LangChain and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and LangChain is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: AI & Data Science

Time Series Forecasting with Python: ETS, ARIMA, Machine Learning, Deep Learning and Prophet

Time Series Forecasting in Python: ARIMA, VAR, Prophet and LSTM

Time Series Analysis and Forecasting in Python: From Stationarity to ARIMA and SARIMA

ComfyUI Academy: Build Stable Diffusion Workflows from Scratch

ComfyUI for AI Image Generation: Stable Diffusion, Flux, LoRAs, Upscaling and Editing
