Online course, RAG
4 lessons of 15 minutes, about an hour in total: a ready-made prompt, a task and a quiz in each.
No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.
Lesson 1, 20 minWhat RAG is and when you need itRAG (Retrieval-Augmented Generation) is a setup where the system first finds matching passages in your documents and puts them into the prompt, and the model answers from them with a source reference. The course covers when you need RAG, how to chunk documents, measure retrieval, add a reranker and keep the corpus fresh. 4 lessons of 15 minutes.
RAG in one sentence, three signs a task needs RAG and three signs it needs long context, a minimal five-step pipeline and a ready prompt that answers only from the passages and cites the source. In the task you build a simple RAG over 5–10 PDFs and retrieve the top 3 passages for a test question.
RAG basics: the idea, chunking and retrieval → evaluation and production: metrics, a reranker, index updates. The first two lessons are free.
Why RAG is needed and how it's structured.
1What RAG is and when you need itfree20 minThe core idea: mix relevant documents into the context before answering.2Chunking, embeddings, retrievalfree20 min500–1000-token chunks with overlap, metadata, one embedding model per project, hybrid search, a reranker and the Recall@K metric.Measuring retrieval and answers, a reranker, hybrid search, HyDE and graph RAG, index updates and access rights.
3RAG eval and reranking15 minHow to measure retrieval and answers and lift quality on a second pass: a reranker, HyDE, multi-query.4RAG in production: security and updates15 minRe-indexing only changed documents, versioned embeddings, access-rights filtering and picking a store by corpus size.You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.
See how a certificate is checkedThe course was published in May 2026.
The numbers in the lessons (500–1000-token chunks, 50–100 overlap, top-K of 5–10, corpus-size bands for picking a store) are practical starting points to check on your own eval set. Context windows have grown since: current Claude models have a 1M-token window.
In its Contextual Retrieval post (Sep 19, 2024) Anthropic says a knowledge base under 200,000 tokens (about 500 pages) can go into the prompt whole, without RAG; in its tests contextual embeddings plus BM25 cut top-20 retrieval failures by 49%, and 67% with reranking.
pgvector supports HNSW and IVFFlat indexes and hybrid search together with Postgres full-text search. In RAGAS, the answer relevancy metric is now called Response Relevancy.
Retrieval plus generation. Documents are split into chunks in advance and turned into vectors. For each question the system finds the closest chunks, puts them into the prompt, and the model answers from them with a reference to the document and page. The answer rests on your data and can be checked.
The lesson gives a simple rule. Use RAG when there are many documents that do not fit the window, when they change often, or when you must show what the answer is based on. Long context works better for a single document that has to be understood as a whole. Anthropic suggests putting a knowledge base under 200,000 tokens, about 500 pages, into the prompt whole.
The lesson's starting point is 500–1000 tokens per chunk with a 50–100-token overlap so ideas do not break at the boundary. Split on paragraphs and sections, and keep doc_id, page and section with every chunk. Settle the final size by Recall@K on your own eval set.
You need two kinds of checks. For retrieval: questions with a known correct chunk, measured with Recall@K and MRR. For answers: reference answers and criteria, graded by an LLM judge or by people. In the lesson task you build 30 question–reference chunk pairs and compare chunking strategies by Recall@10.
Vector search picks candidates fast but ranks them roughly. A reranker (Cohere Rerank or the open BGE model) re-sorts, say, the top 30 in a second pass and keeps the best 5–10. In Anthropic's tests, contextual embeddings plus BM25 plus reranking cut top-20 retrieval failures by 67%.
This course is a one-hour overview with no code in the lessons: the idea, chunking, evaluation, production. RAG & Vector Databases is 12 lessons, about 6 hours, with Python code: Qdrant and pgvector, hybrid search with RRF, HyDE, RAGAS and an end-to-end pipeline. Start here if you are choosing an architecture.
Intermediate12 Python lessons on RAG: embeddings, Qdrant and pgvector, chunking, hybrid BM25 + RRF search, reranking, HyDE, RAGAS evaluation and a production pipeline.
Certificate
Intermediate8 lessons on OpenAI embeddings: text-embedding-3-small, semantic search, code search, reranking, classification, clustering, Q&A and recommendations.
Certificate
Intermediate6 Python lessons: RAG over complex PDFs, search with HyDE, prompt caching, 429 retries, long document summarization and entity extraction. 2026 notes.
Certificate
Advanced5 Python lessons: JSONL checks and training cost, SFT, DPO, distillation and RFT with a grader. What changed in OpenAI fine-tuning in 2026 is on the page.
CertificateThe first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.
Sign up4 lessons of 15 minutes, about an hour in total, with a certificate with a verification code after all lessons. The first two lessons are always free, sign-up gives 7 days of full access with no card, then Pro is $9 a month or $79 a year.