Review — In-context learning
Back to the lesson · Learning path plan
What to remember
- Instructions or demonstrations in the prompt can change model behavior. Few-shot prompting uses a handful of examples to show the desired transformation.
- This operates during inference by changing the context the prediction is conditioned on. Fine-tuning adjusts parameters beforehand.
- RAG may retrieve external documents and insert them into the context. The model can use them when they are supplied.
- Zero-shot, one-shot and few-shot mean zero, one or a few task examples. These terms describe what the prompt supplies and do not identify the internal mechanism producing the behavior.
Recall from memory
Adding two classification examples to a prompt improves its answers. Which parameters were learned at that point?
Show the answer
The addition updated no model parameters. The new examples changed the context and therefore the distribution of answers.