01Chapter 1: How a language model turns a prompt into a responseThis chapter assumes you have used a chat-based AI assistant and can read short Python snippets. You do not need to know how neural networks work. Later chapters build on the working model introduced here.4 min read
02Chapter 2: The parts of a promptThis chapter assumes you have used a chat-based AI assistant, can read short Python snippets, and know basic JSON. It covers the four parts that make up most prompts and the errors that come from leaving one out.3 min read
03Chapter 3: Writing clear, specific instructionsThis chapter assumes you know how a prompt is split into instruction, context, input data, and output specification. It also assumes you can read short Python snippets. The goal is to turn a vague request into one the model can follow the same way every time.3 min read
04Chapter 4: Giving context and separating input from instructionsThis chapter assumes you have read the earlier chapters on prompt anatomy and clear instructions. You should be comfortable reading short Python snippets and know what an instruction, context, input data, and output specification are.3 min read
05Chapter 5: Setting a role with system promptsThis chapter assumes you can write clear, specific instructions, you can read short Python snippets, and you have used a chat-based assistant. It builds on the earlier chapter on instructions.3 min read
06Chapter 6: Teaching by example: zero-shot and few-shot promptsThis chapter assumes you have read the earlier chapters on prompt anatomy and clear instructions. You should be comfortable reading short Python snippets and know what a prompt's instruction, input data, and output specification are.3 min read
07Chapter 7: Getting predictable output formatsThis chapter assumes you can write a clear instruction, use delimiters to separate input from instructions, and read short Python snippets. You should also know basic JSON. The goal is to get replies that code can read without manual cleanup.3 min read
08Chapter 8: Asking for step-by-step reasoningThis chapter assumes you can write clear instructions, separate input with delimiters, and request a structured output format. You should also be comfortable reading short Python snippets. Here you will learn when to ask a model to reason before answering, how to phrase that request, and how to keep3 min read
09Chapter 9: Splitting complex tasks into chained promptsThis chapter assumes you can write a clear instruction prompt, request structured output such as JSON, and read short Python snippets. It builds on the chapters about output formats and step-by-step reasoning.3 min read
10Chapter 10: Sampling parameters and output variabilityThis chapter assumes you have read the earlier chapters on prompt anatomy, clear instructions, and output formats. You should be able to read short Python snippets. Here you will learn why the same prompt can produce different replies, and which settings control that.3 min read
11Chapter 11: Testing and improving prompts systematicallyThis chapter assumes you can write a prompt with clear instructions, know what few-shot examples are, and can read short Python snippets. It covers how to replace "this seems better" with measured results.4 min read