Skip to content
Technical GlossaryNatural Language Processing

Few-Shot Prompting

A prompting technique that adapts model behavior by guiding it with example input-output pairs.

Few-shot prompting allows the model to be guided not only by instructions but also by example solution patterns. It is highly effective in classification, extraction, information transformation, and structured output generation. Well-chosen examples can dramatically change model behavior. This makes prompting not a passive act of writing commands, but an active form of task design.