AI & LLMs

Few-Shot Prompting

also: zero-shot · in-context learning

Teaching by example inside the prompt — the model imitates demonstrations without any training.

Few-shot prompting puts worked examples in the context and lets the model infer the pattern — in-context learning, no weight updates. Zero-shot is the same task with instructions only. A few diverse, canonical examples usually beat many noisy ones: examples act like pictures of the desired behavior, and the model imitates what it sees — including your mistakes.