[November 16, 2026]
AI
Few-Shot Examples Beat Adjectives
One good input/output pair outperforms a paragraph of adjectives. Models imitate the example's structure more reliably than they interpret 'be concise'.
────────────────────────────────────────────────────────
Few-Shot Examples Beat Adjectives
Tip: Show the output shape once
One good input/output pair outperforms a paragraph of adjectives. Models imitate the example's structure more reliably than they interpret 'be concise'.
Example
Input: flaky test on CI only
Output:
- hypothesis: time zone
- next command: TZ=UTC pytest
Gotcha: Examples that contradict the system prompt
If the example includes a stack trace dump but the system says 'no dumps', the example wins. Keep them aligned.
system: be brief
example: 80-line essay
Source: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview
────────────────────────────────────────────────────────
<-- back to posts