Chapter 13Asking well
The parts of a request
In this chapter How a good request is built: the job, who it’s for, background, an example, limits and the shape you want.
Words to know
- Prompt
- Your message. More broadly, everything sent to the model.
- Context window
- How much the model can "see" at once. The size of its desk, measured in tokens.
A good request says the job, who it’s for, the background, an example, the limits and the shape you want. Whatever you leave out, the model has to guess.
Chapter 8 showed that your message is only one layer of what the model reads. It is the layer you control. The companies that make these models give the same advice in their own guides: say clearly and specifically what you want, explain the context or the reason behind it, show an example, and say what form the answer should take.12
Go deeper: why examples work
Examples work because a model picks up a pattern from them on the spot. GPT-3 could do many tasks it wasn’t specially trained for from a few examples written into the prompt, with no retraining, though it still struggled on some.3
Notes (3)
- 1Anthropic, “Prompting best practices,” Claude Platform Docs, n.d., https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices (accessed October 27, 2026).
- 2OpenAI, “Prompt engineering,” OpenAI API Docs, n.d., https://developers.openai.com/api/docs/guides/prompt-engineering (accessed October 27, 2026).
- 3Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, et al., “Language Models are Few-Shot Learners” (preprint, arXiv, May 28, 2020), https://doi.org/10.48550/arXiv.2005.14165. Cited at abstract; p. 1.
Chapter 13 · page 1 of 2
Turn pages with the ← and → keys.