Concept · Building with AI

Few-shot prompting

Also called: few-shot, few shot, few-shot examples, one-shot, zero-shot, examples in the prompt

Including a few worked examples in a prompt so the model copies the pattern. Zero-shot means asking with no examples.

For example: A prompt shows three customer emails, each labeled 'billing', 'bug' or 'sales', then asks the model to label a fourth.

Connects to 4

Page last changed · Suggest a correction