Home›Library›AI & Data Science
Curated LibraryBuilding LLM Apps with LangChain and RAG: From Prompts to a YouTube Q&A Project
A hands-on Python course on LangChain with the OpenAI API. It starts with setup, chat models, prompt templates and output parsers, then covers composing chains with runnables, loading and splitting documents, embeddings and ChromaDB/FAISS vector stores, and advanced retrievers. It ends with a RAG app that answers questions about YouTube video transcripts. It suits Python-comfortable developers who are new to LLM application development.
- 48 lessons
- 8h 14m 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
- Set up a Python/VS Code environment, create OpenAI API keys and call chat models through LangChain (including free HuggingFace-hosted models)
- Build a chatbot that keeps conversation history using System, Human and AI message classes
- Write static and dynamic prompt templates, ChatPromptTemplate with message placeholders, and reuse prompts by saving them as JSON
- Parse LLM output into strings, JSON and validated Pydantic objects
- Compose pipelines with runnables: sequence, parallel, passthrough, lambda and branch routing
- Load PDFs, text, CSV, web pages and whole directories, then split them with character, recursive and structure-based splitters
- Create embeddings, store them in ChromaDB or FAISS, run similarity search, and improve retrieval with MMR, multi-query and contextual compression retrievers
- Build and refactor an end-to-end RAG app that answers questions from YouTube transcripts
Prerequisites
- Basic Python (functions, classes, pip, virtual environments)
- An OpenAI API account; some API usage may incur small costs
- No prior LangChain or machine learning experience needed
Course Curriculum
48 lessons · 8h 14m- 01What Are Generative AI, LLMs and LangChain?13:05
- 02Course Curriculum and Roadmap5:06
- 03Setting Up VS Code and Python5:12
- 04OpenAI API Keys and Installing LangChain Libraries6:36
- 05Calling Your First LLM with ChatOpenAI5:20
- 06Calling Open-Source LLMs with the HuggingFace API10:41
- 07Building a Chatbot: HumanMessage, AIMessage and Chat History9:31
- 08Labeling Chat History with System, Human and AI Messages7:34
- 09Prompt Templates: Static vs. Dynamic Prompts16:15
- 10Saving and Loading Prompt Templates with JSON6:47
- 11ChatPromptTemplate and MessagesPlaceholder15:14
- 12OutputParsers and Chains with StrOutputParser13:07
- 13Structured Output with JsonOutputParser10:25
- 14Strict Validation with PydanticOutputParser21:44
- 15Runnables: The Standard Interface for AI Components6:18
- 16RunnableSequence: Building Multi-Step Pipelines7:21
- 17RunnableParallel: Running Multiple Tasks at Once11:41
- 18RunnablePassthrough: Passing Data Through Chains14:43
- 19RunnableLambda: Adding Custom Python Logic to Chains17:01
- 20RunnableBranch: Conditional Routing in Pipelines23:57
- 21Chains vs. Runnables: What's the Difference?1:51
- 22Components of a RAG Application1:18
- 23Document Loaders: The Document Object and Metadata3:38
- 24TextLoader: Loading Text Files12:48
- 25PyPDFLoader: Extracting Data from PDFs9:06
- 26DirectoryLoader: Loading Multiple Files9:10
- 27Eager vs. Lazy Loading6:30
- 28CSVLoader: Loading Spreadsheets5:06
- 29WebBaseLoader: Loading Web Pages10:06
- 30Why Text Splitting Matters for Large Documents3:47
- 31CharacterTextSplitter: Length-Based Splitting15:40
- 32RecursiveCharacterTextSplitter: Splitting by Text Structure7:40
- 33Document Structure-Based Splitting11:12
- 34Embeddings and Vector Search14:15
- 35Vector Store vs. Vector Database5:30
- 36ChromaDB Hierarchy: Collections and Documents1:36
- 37Creating Embeddings and Saving to a Vector Store13:53
- 38Similarity Search in a Vector Store11:20
- 39ChromaDB CRUD: Update, Delete and Metadata Filtering10:57
- 40What Is a Retriever and Why Vector Stores Aren't Enough3:56
- 41VectorStoreRetriever in Practice11:22
- 42MMR Retriever: Diversity vs. Relevance13:20
- 43MultiQueryRetriever: Automated Query Generation19:02
- 44Contextual Compression Retriever with FAISS12:51
- 45What Is RAG? Theory and Architecture8:15
- 46RAG Project Part 1: Extracting YouTube Transcripts10:23
- 47RAG Project Part 2: Chunking, FAISS and LLM Integration16:28
- 48Refactoring the RAG App with LCEL Runnables15:15
About the Instructor
Vikas Munjal Ellarr
YouTube creator
The lessons in this course were produced by Vikas Munjal Ellarr and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Vikas Munjal Ellarr 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
