Prompt Engineering Fundamentals: Write Instructions Models Follow
by Laura Mbeki
Fit the right material into a context window and cut token spend without losing accuracy.
PR Created by Priya Raman
Every bullet below is something you will have built, shipped or be able to explain by the time you finish the last lesson.
6 modules · 30 lessons · 4h of material
5 lessons running 36m 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.
5 lessons running 44m 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.
5 lessons running 40m 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.
5 lessons running 42m 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.
5 lessons running 38m 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.
5 lessons running 40m 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 · 30 lessons
4h total length
Short list, and deliberately so. If you meet these you can start today.
A large context window is an invitation to be careless, and carelessness has a bill attached. This course treats the context window as the scarce, expensive resource it is, and teaches you to decide what earns a place in it.
You start with measurement: tokenisation in practice, counting before you send, and where the cost sits in a typical request once system prompt, retrieved passages, conversation history and expected output are all accounted for. Then you attack each part. Chunking strategies get proper treatment, fixed size against sentence and paragraph boundaries, structural splitting for code and Markdown, overlap and what it really buys you, and the recursive approaches that keep a heading attached to the text beneath it.
Compression comes next. Summarising conversation history without dropping the decision that mattered, hierarchical summaries for long documents, extracting only the fields a later stage needs, and knowing when compression costs more than it saves. You will also study position effects, the well-documented tendency for material in the middle of a long context to be used less reliably than material at either end, and how to lay out a prompt with that in mind.
Every technique is measured against a fixed evaluation set so you can see the accuracy and cost trade rather than guess at it.
Still unsure about something? Write to misteryjj100@gmail.com and a human answers, usually the same working day.
Reviews are written by people who bought this course. We publish the critical ones too.
4.0
Rated 4.0 out of 5Course rating · 2 reviews
Leon Vermeulen
AI engineer
Splitting code along the syntax tree instead of at a character count improved our retrieval measurably. Held back from five by the position-effects material, which is presented as far more settled than I think it is when every figure quoted comes from one family of models.
Sofie Larsen
Software engineer
The chunking comparison is thorough and the chapter on measuring what a change costs you is the sort of thing far too few courses bother with. The history compression section then covers three approaches that are near enough the same approach, and it starts to feel like filler.
Applied AI and machine-learning engineer
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.
One-time payment · lifetime access