Simon Verwaal. Glossary

Few-shot prompting

Guiding a model with a few examples in the prompt

A technique that demonstrates the expected output through examples.

Few-shot prompting adds a small set of examples to an instruction. For classifying support questions, you might show when a message concerns installation, faults or compatibility. Include borderline cases rather than only easy examples. These demonstrations do not change model weights; they become part of the context for the current task. Test fresh questions to see whether the pattern transfers and whether example order or wording affects the result. An incorrectly labelled example demonstrates the wrong behaviour just as clearly as a correct one demonstrates the intended task.

Related terms

Further reading

F ยท Back to all terms