🛠️Few-Shot Prompting
Also known as Few-Shot, In-Context Learning
You put a few solved examples in the prompt. The model copies their pattern.
Think of it like
Think of it like you show a friend two filled-in forms. Then they fill in the next one the same way.
Example
Emma wants product tags in one style. She shows two products with their tags, then a third with none. The model fills in tags in the same style.
Why it matters
It is often the quickest fix when a model gets the format or style wrong.
Definition
Example code
text
Tag each product.
Product: Red rain jacket -> tags: outdoor, rain, red
Product: Wool winter hat -> tags: winter, wool, warm
Product: Blue running shoes -> tags:Common mistake
Key takeaways
- 1Show, then ask. Examples before the task.
- 2Copies the pattern. Format, length, style.
- 3Only for this request. Nothing is learned for good.