Home›Library›AI & Data Science

Curated Library

RAG 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
Lessons byLangChain on YouTube

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.

14 lessons1h 26m total
One block per lesson, sized by its length

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

About the Instructor

LangChain

YouTube creator

14 lessons here 1h 26m

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 YouTube

More in the Library: AI & Data Science