Skip to main content

Lesson 4 · 10 min

Few-shot prompting

Show, don't tell. The fastest way to lock in a format.

When examples beat instructions

For any non-trivial output format — extraction, classification, structured rewriting — examples beat instructions. By a lot.

Three to five well-chosen examples will outperform 200 words of describing the format. The model is a pattern-matcher; pattern-match it.