Few-shot examples
A prompt engineering technique where a model is provided with a small number of input-output examples to demonstrate desired behavior before completing a new task. Enables generalization to unseen inputs by leveraging contextual patterns.
Relation to Context Engineering:
- Context Engineering (a 2026 concept) is the art/science of strategically providing context to LLMs, distinct from traditional Prompt Engineering (see Context engineering by prompt engineering channel).
- Few-shot examples serve as foundational context in Context Engineering, demonstrating how to structure input-output relationships for model guidance.
2026 04 14 Context engineering by prompt engineering channel