In-context learning
Also called few-shot prompting, few-shot learning, zero-shot prompting
Teaching a model a task through instructions and examples in the prompt, with no change to its weights. Each example is a shot: zero-shot uses none, few-shot several.
Interview questions about In-context learning
- What is in-context learning, and what does each example in the prompt cost you?
Learning a task from examples in the prompt, with no change to the weights; each example is a shot.
- Zero-shot or few-shot prompting: what's the difference, and when do you add examples?
Zero-shot gives only the instruction; few-shot adds worked examples of input and output.