Write prompts that get reliable, well-shaped answers — prompt anatomy, sharpening techniques, few-shot, structured outputs, and evaluation.
Welcome to Prompt Engineering, the second module of the Generative AI & LLM Engineering course. In the last module you learned to call a language model. Now you’ll learn to get it to do what you actually want — reliably, in the right format, at the right level of detail. This is the single highest-leverage skill in all of LLM work: the difference between a vague prompt and a well-built one is the difference between a toy and a tool.
You’ll start with the anatomy of a strong prompt — the handful of elements that turn a wish into an instruction — and the bad → better → best habit of sharpening. From there you’ll add few-shot examples and roles, then learn to get structured JSON output you can trust instead of free-form prose. You’ll apply all of it to real data tasks — extraction, classification, and summarization — and finish by learning to evaluate prompts objectively and reduce hallucinations and unsafe output. The capstone ties it together into a reusable prompt toolkit.
Every technique is demonstrated with real, runnable calls against the inexpensive claude-haiku-4-5 model, so you can see exactly how each change to a prompt changes the answer. By the end you’ll write prompts deliberately — knowing why each line is there.
Start with Lesson 1, where you’ll dissect what actually makes a prompt work.
Complete all 8 lessons to finish the Prompt Engineering module.