Take the course from documents to a cited assistant.
The course page lists all chapters and lessons.
Mirage Academy · Course · Advanced · Retrieval
Production-Ready RAG Engineering is an advanced course for software engineers and technical product people who ship AI features. You build a searchable knowledge application that grounds its answers, cites its sources and is measured. The course is taught in English.
The course loop
Watch the intro video first, then follow the loop that the chapters hang on. The video loads when you click it.

This course is for engineers who must answer questions from their own documents. You build a searchable knowledge application that grounds every answer, cites its sources, and is measured. The course follows one loop. You bring documents in, clean them and chunk them. You search with vectors, keywords and hybrid queries, then rerank. You generate answers that cite their sources. Then you measure quality, and what you measure tells you what to fix next. A demo stops at one good answer. Production needs more. You keep the index fresh as documents change, you enforce who may see what, and you control cost and latency at scale. The course ends with a capstone: a cited knowledge assistant you build, measure and can defend. If you need answers from documents that people can check, start with chapter one.
Around the loop in productionFreshnessAccess controlCost and latency
You load documents, clean the text and cut it into chunks that keep a pointer back to where they came from.
You search with vectors, with keywords and with a mix of both, then rerank what comes back.
The assistant answers from the retrieved passages and names the passage behind each claim.
You score retrieval and answers against a test set, and the numbers show what to fix next.
Chapters 2 and 3
Search quality starts before any query runs. How you split the text decides what can be found at all.
One documentExample drawing
Chunk 1anchorChunk 2anchorChunk 3anchorOverlap: text shared by neighboring chunks
One vector per chunkIndexHNSWIVFFlat
Document records, loaders and text cleaning come first, because each later step sees only what this one lets through.
You compare chunking strategies, weigh size against overlap and keep metadata so a citation can point back to its place.
You learn what an embedding is, store vectors with pgvector and build HNSW and IVFFlat indexes, then measure approximate recall and storage.
Chapters 4 and 5
Keyword search finds the exact words and vector search finds the closest meaning. The example below fuses their two rankings with reciprocal rank fusion, a method the course teaches.
Made-up documents and rankings, shown only to explain the method. They are not results from the course or from any search system.
Example question: why was my refund rejected?
Hybrid (RRF) search with k = 60. Order: 1 Refund policy, 2 Error code guide, 3 Billing FAQ, 4 Release notes, 5 Setup guide.
The rule: a document gets 1 divided by (k plus its rank) from each list that contains it, and the parts are added. A document missing from a list adds nothing for that list. The highest sum comes first, and a tie goes to the better single rank. A small k rewards the top ranks more, a large k evens them out.
BM25 basics and full-text search in Postgres.
You compare keyword with dense retrieval, fuse the lists with RRF and measure what the hybrid gains.
Two-stage retrieval with a cross-encoder reranker.
Query rewriting, multi-query, HyDE and decomposition, and how to tell whether a transformation helps.
Chapter 6
The chapter covers how the prompt is built, how sources are labeled and how a citation is verified.
Opened items may be returned when the seal is intact.
Refunds are issued to the original payment method.
In this example a sentence without a source does not reach the reader.
Prompt assembly, and the budgets that retrieved passages and instructions share.
Citation formats for labeling sources.
Checking a citation after the model has written it.
Abstention when no passage supports an answer, and conflicts between passages.
The order of the passages in the prompt.
Chapter 7
You change one thing, run the test set and see what moved.
Scoring what the search returns, including nDCG.
Metrics for the generated answers, not only for the search behind them.
When a model judge scores an answer and when a person does.
Telling a real change from noise, and regression gates.
Chapters 8 and 9
Chapter 8 covers freshness, updates and access control. Chapter 9 covers cost, latency and scale.
Visible to this readerHidden from this reader
Cost and latencyTokensLatencyIndex sizeExample drawing, no real figures
Change detection, transactional updates, and versions with effective dates.
Access control in retrieval, with leak tests and row-level security.
Where tokens and money go, latency budgets, storage and index sizing, caching and batching, and scale decisions.
Chapter 10
The last chapter puts the whole loop together.
You specify the assistant and freeze the test set it will be judged on.
You load, clean, chunk and index your documents.
You build the search and the reranking step.
You generate answers with citations and verify those citations.
You work through what the measurements show and write up the release.
The full chapter list is on the course page:Open the course: Production-Ready RAG Engineering
How you learn here
Where to go next
These four pages sit closest to this course.
A guide to what RAG is and where this course fits.
Build an ingestion, transformation and retrieval pipeline that keeps AI applications fed with good data.
Find, measure and reduce unsupported claims in AI output with controls at all levels.
Give AI the right information at the right time, including retrieval on PostgreSQL.
RAG course guide →Data Engineering for AI Applications course →Hallucination Detection course →Context Engineering course →
An advanced course in which you build a searchable knowledge application that grounds its answers, cites its sources and is measured. It has ten chapters and ends with a capstone.
A cited knowledge assistant. You write the specification and a frozen test set, ingest and index documents, build retrieval, generate and verify answers, and finish with a triage and a release report.
The RAG course guide explains what RAG is and when you do not need it. This page is about the full course, Production-Ready RAG Engineering, with its ten chapters and its capstone.
Vector search with pgvector, keyword and full-text search in Postgres, hybrid search with reciprocal rank fusion and reranking, plus query rewriting, multi-query, HyDE and decomposition.
You learn citation formats and how to verify a citation after the model has written it. You also learn how an assistant abstains when no passage supports an answer.
With retrieval metrics including nDCG, answer metrics, judges and human review, and with regression gates that separate real changes from noise.
Yes. The certificate has a check code, and a public check page lets anyone look it up. Per the Get certified page, no state recognizes it as a qualification.
In a voice session you explain what you learned, and the coach, which is an AI, asks again where an explanation is unclear. Whether you receive the certificate is not up to the coach.
The course page lists all chapters and lessons.