Prompt Engineering That Works·Lesson 7 of 23·15 min
Few-shot prompting: teaching by example
This lesson is for enrolled learners
The concept Sometimes it's faster and more reliable to show a model what you want than to describe it. Few-shot prompting means including two or three labeled examples of the exact input/output pattern you want, directly in your prompt, before asking the model to handle a new case. The model picks up the pattern — the format, the tone, the……
Enroll to continue Already enrolled? Sign in