Few-Shot Prompting

Prompting

Definition

A prompting technique that provides concrete examples of desired input-output behavior to guide the model. More reliable than instructions alone for consistent formatting and nuanced decisions. Examples should target ambiguous edge cases, not just obvious ones.

Example Usage

Add 4-6 examples targeting ambiguous scenarios with explicit reasoning, rather than 10+ examples of obvious cases.