chapter four
4 Patterns
This chapter covers
- Eight foundational prompt patterns for common language model interaction problems
- Structural patterns that establish consistent behavior and output quality
- Contextual patterns that surface overlooked risks, gaps, and blind spots
- Transformational patterns that improve content quality
- Combining patterns to handle complex prompting problems
In chapters 2 and 3, you mastered the building blocks of effective prompts: structural elements that organize information and linguistic elements that influence communication precision. These foundations enable you to construct well-formed prompts, but they don’t address how to interact with language models strategically across different types of problems.
This chapter introduces prompt patterns, repeatable strategies for solving common prompting problems. Jules White, Quchen Fu, and their coauthors were the first to formally introduce the term prompt pattern and publish a formal catalog of prompt patterns for conversational large language models in A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT (2023).