Few-shot prompting provides a language model with 2–5 examples of desired input-output behavior directly in the prompt before asking it to perform the task. The model infers the pattern without fine-tuning. For example, listing three customer emails labeled as positive, negative, or neutral, then asking the model to classify a fourth. It is the most practical prompting method for business applications.
Prompt Engineering
Few-Shot Prompting
Related terms
Learn to use these concepts in practice.
Join the 212AY Academy →