chapter two
2 Prompt Design: Structural Elements
This chapter covers
- The core Structural Elements of prompts: Instructions, Constraints, Context, Input Parameters, Output Format, and Delimiters
- Applying falsifiable constraints that bound the solution space independent of task definition
- Using input parameters replaced before inference to inject dynamic context and enable reuse
- Specifying the required output structure to make responses consistent and predictable
- Using delimiters as boundary markers to separate contextual content from instructions
- Combining these elements to build reliable, structured prompts for specific tasks
Most prompts start as a single block of text. The task, the background, the variable inputs, the expected output shape, all in one place with no clear boundaries. The model has to infer what is an instruction, what is context, what is content to act on, and what the output should look like. When the output is wrong, there is no clear place to look.