Chapter 3 of 10All chapters
Chapter 3 of 10
Examples
Show rather than describe.
Few-shot prompting
Two or three examples of input and desired output communicate tone, structure and edge case handling more precisely than any description.
- Make examples representative, including a tricky case.
- Inconsistent examples teach inconsistency.
Counter-examples
Showing what you do not want, labelled clearly as such, helps when a model keeps drifting towards a particular style.