Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Advanced RAG: LangChain, Vector Database, GraphRAG & Agents
New

Advanced RAG: LangChain, Vector Database, GraphRAG & Agents

Advanced RAG in Python: Qdrant, FAISS, hybrid search, rerankers, GraphRAG and agentic RAG, measured on 42 questions
Created byAdi Tejus
Last updated 11/2026
English

What you'll learn

  • Store, filter, update and benchmark vectors in Qdrant local mode, sqlite-vec and FAISS (exact, HNSW, IVF)
  • Choose a chunking strategy and build metadata filters from questions by measuring them
  • Build BM25 from scratch and combine it with vector search using reciprocal rank fusion
  • Rerank with a local model's yes/no probabilities and test HyDE, multi-query and MMR honestly
  • Build a knowledge graph with a local model, merge entities, and answer whole-collection questions with map-reduce
  • Build an agentic RAG loop that routes, grades, retries and refuses, then evaluate and gate releases
  • Rebuild the pipeline as a LangChain chain (retriever, prompt, model, parser) and prove it gives the same answers
  • Add enterprise controls: per-user access filters in Qdrant, a hash-chained audit log and a permission gate

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

9 sections • 9 lectures • 2h 10m total length
  • Advanced RAG in Python: the measured pipeline, running6:51

    Overview. Advanced RAG in Python: the measured pipeline, running. The finished project running first, then the plan for the course, what you need, and the course code (attached here as a download).

Requirements

  • Basic Python (functions, lists, dictionaries) and some idea of what RAG is
  • A Windows, Mac or Linux computer; about 1 GB no-cost disk; 8 GB RAM
  • No API keys, GPU or paid accounts

Description

This course contains the use of artificial intelligence.

Most RAG tutorials stop at a vector search and a prompt. This course starts there and takes you through what real systems need, with every step measured on 42 questions with known answers. Everything runs on an ordinary laptop with local models through Ollama (qwen2.5:0.5b for answers, all-minilm for embeddings) and embedded vector stores: no API key, no server, no Docker.

You work on one realistic document set: 118 documents from a fictional logistics company, with look-alike error codes, policies that were replaced by newer versions, a long manual, and facts that only connect across documents. You store and search vectors in Qdrant local mode, sqlite-vec and FAISS, and benchmark exact against HNSW and IVF indexes; compare four chunking strategies and build metadata filters from the question; build BM25 from scratch and combine it with vectors using reciprocal rank fusion; build a reranker from a local model's yes/no probabilities and test HyDE, multi-query and MMR; build a knowledge graph with a local model, merge entity names, find communities, and answer questions about whole collections with map-reduce; build an agent that routes, grades, retries and refuses; evaluate three pipelines end to end and add a quality gate; and finally add the enterprise layer: the same pipeline as a LangChain chain (it gives the same 42 answers), a per-user access filter inside the search in numpy and Qdrant, a hash-chained audit log written by a LangChain callback, and a permission gate that fails a release when any person can reach a document they may not read.

The models are small on purpose, and you see their real failures: a reranker prompt that made ranking worse (0.26 right-document-first) until one layout change made it better (0.92), a filter form that removed every current policy, a knowledge graph that tied with plain hybrid search, and a filter applied after the search that left one user with no passages at all. Every number shown is from a real run: sections one to seven on 31 October 2026, section eight on 8 November 2026 (its model replies replayed from the recorded cache); the code, logs, tests, practicals and cheat sheets are included. Narration is AI-voiced; the code, runs and results are real.

The course is 2 h 29 min of video in 9 sections. Section 1 is the overview and setup; the other sections are hands-on, and every program is run for real on screen. Each hands-on section comes with a one-page cheat sheet (PDF), a short quiz, a practical with starter and solution files and an assignment with a model answer; 5 coding exercises let you write the code yourself.

Who this course is for:

  • Developers who built a basic RAG demo and need it to work on real documents
  • Data and AI engineers choosing between vector databases, hybrid search, GraphRAG and agents
  • Students and job-seekers who want a measured RAG project to show in interviews