Skip to content
New this month 24 fresh C++, C#, F#, JavaScript, TypeScript and Lua courses just landed. Browse new releases Use code WELCOME10 for 10% off your first order · 14-day refund

Build a RAG Pipeline That Actually Retrieves

Chunking, hybrid search and reranking, the parts that decide whether retrieval really works.

Rated 5.0 out of 5 from 2 reviews 22 students

PR Created by Priya Raman

  • Last updated August 2026
  • English
  • 5h 30m of material
  • 41 lessons

What you will learn

8 concrete outcomes

Every bullet below is something you will have built, shipped or be able to explain by the time you finish the last lesson.

  • See exactly how naive chunking loses answers before you fix it
  • Split documents by structure and carry heading context into every chunk
  • Attach metadata that makes filtered retrieval possible later
  • Combine dense and BM25 keyword retrieval into a hybrid that beats both
  • Add a reranking pass and measure whether it earns its latency
  • Rewrite lazy user questions into queries the retriever can serve
  • Ground answers in citations and refuse when retrieval was weak
  • Separate retrieval failure from generation failure when evaluating

Course curriculum

6 modules · 41 lessons · 5h 30m of material

6 lessons running 48m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

7 lessons running 56m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

7 lessons running 58m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

7 lessons running 58m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

7 lessons running 56m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

7 lessons running 54m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

6 modules · 41 lessons

5h 30m total length

Requirements

Short list, and deliberately so. If you meet these you can start today.

  • Comfortable writing Python and using a package manager
  • Basic SQL and a local PostgreSQL instance, or Docker
  • Some familiarity with embeddings, or the embeddings course first

About this course

Retrieval-augmented generation is easy to demonstrate and hard to make good. A weekend prototype answers five questions impressively and then falls apart on the sixth, because the answer lived in a paragraph the retriever never returned. This course is about the retrieval half, which is where nearly all the quality lives.

You build a pipeline over a genuinely awkward corpus: internal documentation with tables, code blocks, deep heading hierarchies, near-duplicate pages and a changelog. Naive fixed-size chunking is implemented first so you can watch it fail specifically, splitting a table from its header and stranding a code sample from the sentence explaining it. Then you fix it, with structure-aware splitting, heading context carried into every chunk, and metadata that makes filtering possible.

Search comes next. Dense retrieval, keyword search with BM25, and the hybrid combination that beats both, followed by a reranking pass over the top candidates and the query rewriting that turns a lazy user question into something searchable. Each change is measured on a labelled question set, so improvements are demonstrated rather than claimed.

Only then does generation appear: grounded answers with citations, a refusal when retrieval came back weak, and separate evaluation of retrieval failure and generation failure. Postgres with pgvector throughout.

Frequently asked questions

Still unsure about something? Write to misteryjj100@gmail.com and a human answers, usually the same working day.

No. The pipeline is built in plain Python so every stage is visible, with a final lesson mapping it onto LangChain for teams already standardised on it.

A dedicated lesson covers PDF extraction, including tables and multi-column layouts, and explains which documents are worth converting before indexing.

Yes, throughout. Every retrieval change is scored on a labelled question set included with the course, so you never rely on the impression of an improvement.

Checkout is handled on our provider's secure payment page. The moment your payment clears we email your personal access link and access code to the address you used at checkout, and the same link appears in your account library. There is nothing to install and nothing to wait for.

Email misteryjj100@gmail.com within 14 days of your purchase, quote your order number, and we refund the full amount to your original payment method. No form to fill in and no questions about how much of the course you watched.

What students say

Reviews are written by people who bought this course. We publish the critical ones too.

5.0

Rated 5.0 out of 5

Course rating · 2 reviews

Rating distribution

  • 5 stars 100%
  • 4 stars 0%
  • 3 stars 0%
  • 2 stars 0%
  • 1 star 0%
  • NA

    Nils Ahlberg

    AI engineer

    Jul 2026
    Rated 5.0 out of 5

    It starts by showing you the failure

    Chapter one runs a naive pipeline over a real corpus and lets it confidently retrieve the wrong section in front of you. Everything afterwards is motivated by a problem you have already watched happen, and that structure is why the fixes stick.
  • TB

    Tanvi Bhatt

    ML engineer

    Dec 2025
    Rated 5.0 out of 5

    Reranking was our missing piece

    We had been blaming the model for answers that ignored the source documents. It turned out the five chunks we were handing it were simply the wrong five. Adding a reranker, following the chapter here, moved our internal accuracy check from around sixty percent into the high eighties.

Your instructor

PR

Priya Raman

Applied AI and machine-learning engineer

  • 236 students taught
  • 13 courses published
  • 4.3 instructor rating
  • Machine learning
  • RAG
  • Fine-tuning
  • LLM agents

Priya builds language-model features for a document-heavy SaaS product, which means she has taken retrieval and fine-tuning from a promising notebook to something on call at three in the morning. She teaches the mathematics only where it changes a decision you are about to make, and spends the rest of the time on data quality, evaluation and the cost of an agent that loops. Her courses run on a laptop and a modest API budget, so nobody has to rent a cluster to follow along. She publishes reproducible notebooks alongside every module.

$35 USD

One-time payment · lifetime access

The WisdomCharms dispatch

One useful email a week. No fluff, no spam.

New course releases, discount codes before anyone else, and a short, practical breakdown of one technique — a prompt pattern, a C++ idiom, a TypeScript trick — that you can use the same day.

  • Subscriber-only launch pricing
  • Unsubscribe in one click
  • We never sell your address

By subscribing you agree to our Privacy Policy. Questions? Write to misteryjj100@gmail.com.