
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
A leave email and revision notes, each with a vague prompt and a complete one, run on the same free model and scored by the same code checks. Then the two mistakes the four-out-of-four email still had.
Install Ollama and a small open model, run the 15 course tests, and see how one run works inside: the chat function, temperature and seed, the runner and the checks.
A support reply with a role, a policy block and a ticket block, and the moment the model wrote the wrong credit with the right number in its prompt. Then the one-line fix, and an HR answer that admits when the policy is silent.
Twelve customer messages into five queues with a vague, a zero-shot and a few-shot prompt. Examples fixed one answer and broke another, until one example aimed at the failure. Plus a house-style update that copied a label.
Eight money and time problems: zero right with number-only answers, eight right with step-by-step working, at thirty times the time. When the working is worth it, and how code reads the answer.
Four messy invoices to JSON three ways, then a fourth with two rules written from the failures. Why a schema guarantees the shape but not the content, and a comparison table whose pick ignored the facts.
One big prompt against a chain of small prompts, and an honest result: each got half the job right. Where chains break, why a model reviewer is not a check, and the rules for chains that work.
An admissions helpdesk with a one-line system prompt and a full one: role, facts, rules, fallback and format. Then custom instructions for your own chats, and steps that would have deleted the data you asked to find.
A small vision model reads a receipt, first as a curious answer, then as three lines a program can use. Then a prompt for an image generator, and why you should always write the exact words yourself. The practical: read your own receipt photo with the three-line prompt.
A staff ID checker written by the model and judged by twelve tests it never sees: 8, 9, 9 and 11 out of 12. Why a 9 can be worth nothing, the repair round that changed nothing, the prompt fix in Python's own terms, and the one rule the fixed code still dropped.
Four versions of a ticket-title prompt on eight hard test cases: 0, 5, 8 and 8. Why the score stopped moving while the quality didn't, and how to find and tighten loose checks.
A refund-desk assistant against six emails, five of them attacks. A plain prompt handled none safely, a hardened prompt four. The two it missed, the layers of defence, and a practical: attack a library help desk with a guard in code.
Ten templates for study and office tasks, filled and run: 22 of 22 checks passed, and four replies still needed a person. How to make a template yours. The templates file is in the course download. If the course has been useful so far, an honest rating helps other learners decide.
Seven small checks written from mistakes a person caught in this course, run on 21 saved real replies: three old full marks now fail. Then two prompts fixed with the missing fact and run again: 6 of 6 and 5 of 5.
The two fixes lessons 8 and 12 only described, run for real. One sentence per kind of no fixed one answer and broke another. An output guard in code on ten attacks: 6 safe, 3 blocked to a person, 1 leaked, and why.
A ten-page handbook summarized five ways and checked by code for ten facts and invented numbers: 0 of 10 with one prompt (it was silently cut), 4 with a bigger context, and all 10 when split by section and joined in code. What broke in between, and why the complete version still wasn't a summary.
A vague model judge and a rubric judge, tested on 20 real outputs from this course against the verdicts the lessons gave them: 10 and 13 of 20. What each one waved through, the good replies it failed, and why code checks still come first.
The capstone: a prompt for a weekly task with its own test set. Then every before and after of the course on one screen, including the four lessons that tested our own advice, and the verdict.
This course contains the use of artificial intelligence.
Most prompt engineering advice is opinion. In this course, every tip is a test. You take a real work task, write the prompt most people write first, then a better one, and run both on the same model. Code scores both with the same checks, so you see the difference instead of taking anyone's word for it.
Everything runs on a free AI model on your own computer, through Ollama: no API key, no card, no account. A small free model is a strict teacher, because it shows exactly what a prompt is missing. The course files also include a runner for Claude with the same prompts and checks, if you want to compare on your own (it was not part of the course runs).
You will write a leave email you can send without editing, a customer reply that follows a refund policy, and an HR answer that admits when the policy is silent. You will sort customer messages into queues with few-shot examples, solve money problems step by step, pull invoices into JSON a program can trust, and turn messy meeting notes into a follow-up email with a prompt chain. You will build a helpdesk system prompt that stays in its lane, read a receipt from an image, brief an image generator, and get working code checked by hidden tests. Then you will test and fix prompts like a professional with a test set, turn every mistake you catch into a check, harden an assistant against prompt injection with prompt rules plus a guard in code, summarize a long document without losing a number, and test a model judge against an answer key. You leave with ten ready templates for everyday work.
The failures stay in. You will see a four-out-of-four email that still invented a phone number, a reply that wrote the wrong credit, examples that fixed one answer and broke another, and our own advice measured and found half right. Most come with a fix and a fresh run, and the ones a fix did not solve stay in too.
Every section ends with a practical with starter and solution files, a quiz, a one-page cheat sheet and an assignment. The course ends with a capstone: ship one prompt template for a weekly task, with its own test set.