RAG with Local LLMs: Ollama, LangChain & ChromaDB (English)
This course runs for 1h 39m and is designed for beginner learners. It is taught by 達也 山本, published by Udemy, and was released on 2026-09-22. The course taught in en-US, includes exercise files, and uses Python 3.12, Ollama, LangChain, ChromaDB, Gradio.
Course Overview
Build a document question-answering system that runs locally on your computer using Python, Ollama, LangChain, and ChromaDB. This course guides you through setting up local generation and embedding models, extracting and cleaning text, building a vector database, composing a retrieval-augmented generation (RAG) pipeline, and evaluating and improving the system without relying on cloud LLM APIs.
You will also create a local Gradio document QA application with source display, incremental indexing, and follow-up question handling. The course emphasizes practical evaluation techniques to diagnose retrieval and generation failures and optimize the system effectively.
Key Takeaways
Run local generation and embedding models with Ollama and call them from Python.
Explain sentence embeddings and calculate cosine similarity using NumPy.
Extract, clean, and split text while preserving context and source metadata.
Build and update a persistent ChromaDB document index.
Compose a retriever, prompt, local LLM, and parser with LangChain and LCEL.
Build an evaluation set to distinguish retrieval failures from generation failures.
Compare retrieval methods including BM25, hybrid retrieval, RRF, reranking, and prompt changes using recorded results.
Create a local Gradio document QA app with source display, updates, and follow-up questions.
Prerequisites
Basic Python knowledge: variables, functions, imports, and running scripts.
Comfort with using a terminal and installing development tools.
Python 3.12, Ollama, and a computer suitable for local models (16 GB RAM or more recommended).
At least 15 GB of free disk space for models and documents.
An internet connection for initial package and model downloads (no paid cloud LLM API key required).
Target Learners
Python developers building document search or question-answering prototypes.
Engineers who want to evaluate and debug RAG systems beyond basic demos.
Developers exploring local models for workflows requiring careful document control.
Learners with basic Python knowledge seeking a practical introduction to embeddings, vector databases, and grounded generation.