18. Examples and reasoning patterns in prompts
Some tasks improve when a model is given examples, intermediate steps, or a structured way to reason. This chapter covers few-shot prompting, chain-of-thought tradeoffs, self-checking, decomposition, and when these patterns fail.