Online course, Engineering
6 lessons of 25 minutes, 155 minutes in total: Python code, 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, 25 minParsing PDFs for RAG: GPT-4o + embeddingsThe course covers what a RAG system on the OpenAI API needs in production: parsing complex PDFs as text and images, answering from an external search API with HyDE re-ranking, prompt caching, retries on 429 errors, summarizing long documents with adjustable detail, and extracting fields from documents larger than the model's window. 6 lessons of 25 minutes.
Parsing complex PDFs two ways: text with pdfminer and page descriptions from a vision model, page-level chunks, text-embedding-3-small embeddings and cosine-similarity search. In the task you compare text-only and description-only search on three queries. The OpenAI API now extracts both text and page images from a PDF itself, so you can replace the manual image conversion with a file input.
RAG: data ingestion and retrieval → production optimization: caching, rate limits, summarization, extraction. The first two lessons are free.
Build a RAG pipeline from scratch: parse PDFs with GPT-4o vision, create per-page embeddings, and answer questions with HyDE re-ranking.
1Parsing PDFs for RAG: GPT-4o + embeddingsfree25 minTurn complex PDFs (slide decks, reports) into retrieval-ready content: dual parsing with pdfminer (text) and GPT-4o vision (images), per-page chunking, text-embedding-3-small embeddings, cosine similarity search.2Q&A via Search API and HyDE Re-rankingfree25 minBuild RAG on top of an external Search API (NewsAPI): model-generated query variants, article retrieval, HyDE (Hypothetical Document Embeddings) re-ranking, streamed answer with source citations.Prompt caching to cut costs and latency, graceful rate limit handling with exponential backoff, and structured extraction from long documents.
3Prompt Caching: -80% latency on repeated prompts30 minOpenAI automatically caches the repeated start of a prompt. Learn implicit and explicit modes, cache breakpoints and TTL on GPT-5.6 and later, write and read pricing, caching tools and images, and the cached_tokens and cache_write_tokens fields in the Responses API.4Rate Limits: exponential backoff and batch throughput25 minHandle 429 RateLimitError without crashes: tenacity and backoff decorators, manual exponential backoff with jitter, model fallback, and proactive delay for high-throughput batch jobs.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 lessons retell six OpenAI Cookbook notebooks (MIT license): "How to parse PDF docs for RAG" (Sep 2024), "Question answering using a search API and re-ranking" (Jun 2023), "Prompt Caching 101" (Oct 2024), "How to handle rate limits" (Jan 2025), "Summarizing Long Documents" (Apr 2024) and "Long document content extraction" (Feb 2023). Academl is not affiliated with OpenAI.
Models in the lesson code: gpt-3.5-turbo and gpt-4-turbo shut down on Oct 23, 2026, and gpt-4o and gpt-4o-mini will shut down on Jan 14, 2027, with gpt-6-luna as the replacement. The prompt caching lesson has already moved to gpt-6-luna and the Responses API.
Prompt caching on GPT-5.6 and later starts at 1,024 tokens. It is controlled by prompt_cache_options: implicit mode by default, or explicit mode with prompt_cache_breakpoint markers. A 30-minute cache write costs 1.25× ordinary input and a read 0.1× (0.05× on GPT-6.1 Sol and Terra); the Responses API also offers 12 hours at 2.5×. Cached input is discounted by up to 95%. We removed the "-80% latency" from the earlier lesson title: the current OpenAI guide does not state it and does not promise lower latency on every request.
The rate-limits guide now says to honor the Retry-After header first and fall back to exponential backoff with jitter only without it. Quota and billing errors should not be retried, and the SDK's built-in retries should be turned off or counted in your own retry limit.
The Batch API costs 50% less, runs on a separate, substantially larger pool of rate limits, and returns results within 24 hours.
PDFs can be sent as files: for vision models the API extracts both text and page images. For search over your own files OpenAI offers vector stores and the file_search tool with hybrid search settings.
The lesson, based on the "Summarizing Long Documents" Cookbook notebook, splits the document into chunks along separators, summarizes each one and joins the results. The detail parameter from 0 to 1 sets the number of chunks and so the length of the summary. summarize_recursively feeds earlier summaries into the next request: more coherent, but more expensive. At detail=1, a 100K-token document means hundreds of requests.
Caching is on by default and kicks in when the start of a prompt matches a recent request. On GPT-5.6 and later the minimum is 1,024 tokens and reads cost 0.1× ordinary input. Put static content — instructions, tools, documents — first and the user's question last, and keep the tool order fixed. You can place an explicit prompt_cache_breakpoint right after the static part. Hits show up in the cached_tokens field, writes in cache_write_tokens.
Retry with a pause. OpenAI's guide says to honor the Retry-After header first, and without it use exponential backoff with random jitter and a cap on attempts. The lesson shows this with tenacity and by hand, adds a fallback model and pacing between batch requests. Quota and billing errors are not worth retrying.
The lesson processes each page twice: text with pdfminer and a page description from a vision model, then merges both into a chunk, prepends the slide title and document name, and computes embeddings. Today you can send the PDF to the API as a file: vision models receive both the text and the page images.
Hypothetical Document Embeddings: the model writes a hypothetical answer to the question, and retrieved articles are ranked by similarity to that answer, because good answers read differently from questions. The lesson warns about the risk: HyDE can promote a source that is close in meaning but wrong on facts. Check the original source when you need exact quotes.
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
IntermediateA short RAG course: when RAG beats long context, how to chunk documents, measure Recall@K, add a reranker and keep the index fresh.
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 upWhen the answer can wait up to 24 hours: labeling, summarizing an archive, extracting fields from a batch of documents. Per OpenAI's guide, a batch costs 50% less and runs on a separate, substantially larger pool of rate limits. Interactive requests where a user is waiting stay on the regular API with retries.
RAG and working with documents explains how RAG works in an hour without code, RAG & Vector Databases builds search on Qdrant and pgvector, and OpenAI Embeddings covers embeddings and semantic search. This course is about production techniques on the OpenAI API: complex PDFs, HyDE, caching, rate limits, summarization and extraction.
6 lessons of 25 minutes, 155 minutes 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. API calls are billed by OpenAI separately.