Prompting and context design · MLD-0429
Few-shot prompting
Providing a small number of task examples within the context.
Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.
Original example
Show three input-output examples before a new query.
Original caveat
The examples do not ordinarily update model weights.
Context and aliases
Level: Intermediate. Stages: Inference · Evaluation.
Tags: SLM · LLM · NLP.
Aliases: None recorded.
Related concepts
Concepts linking here
Original references
- Anthropic: Building effective agents ↗ · Reference link
- Hugging Face: chat templates ↗ · Reference link
- Anthropic: Effective context engineering for AI agents ↗ · Reference link
- Transformers glossary ↗ · Consulted
- Original reference URL ↗