Few-shot
Also known as: Few-shot Learning / Few-shot Prompting / 少数ショット学習
A prompting technique that includes a small number of input-output examples (typically 2-10) in the prompt so the LLM infers the desired task format and replicates the pattern.
Overview
Few-shot prompting includes a handful of (input, output) pairs in the prompt, letting the LLM infer the task's format, style, and constraints from context. It is one of the simplest ways to adapt a model to a specific task without fine-tuning.
Practical tips
Two to eight examples is a practical range — more examples consume context window. Diversity and representativeness matter: a set of examples that all share the same bias will skew outputs. Use zero-shot first; add few-shot examples only when zero-shot quality is insufficient.
Related Columns
Feel free to contact us
Contact Us