Loading patterns…
In-Context Learning(ICL)
Conditioning a model on instructions and demonstrations in the current context, without updating model parameters
In 30 seconds
- What
- Conditions a model on task instructions and examples in the prompt, without changing model weights, to guide behavior for new inputs.
- When to use
- Tasks with clear, fixed categories or patterns where a few labeled examples reliably show the model what to do.
- Watch out
- Performance degrades sharply if examples don't match the distribution of real inputs or if the model misinterprets which features matter.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
In-Context Learning: Overview
Conditioning a model on instructions and demonstrations in the current context, without updating model parameters
- Zero-shot instructions
- Few-shot demonstrations
- Example-based task specification
- No parameter updates
- Retrieval-based example selection
- Prompt-order sensitivity testing
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
- Language Models are Few-Shot Learners (2020)arXiv:2005.14165
From the engineer behind this catalog
Pay less per call with a model you own
If one repetitive task drives your LLM bill, we can distill it into a small open-weight model trained on your own traffic, then test it against your current model on examples it never saw. Quality and per-call cost come back side by side, in writing.
€2,900 per task, fixed price. You pay only if it matches your current model on your own held-out examples.