Skip to content
GDFN domain marketplace banner

In-Context Learning

1 min read
Featured image for In-Context Learning

In-context learning is the phenomenon where an LLM learns a task from examples provided in the prompt, without updating model weights. It underpins few-shot prompting, pattern completion, and many extraction workflows. Its effectiveness depends on context length, exemplar similarity, formatting, and the model’s pretraining priors. Engineering for in-context learning involves selecting representative demonstrations, using clear delimiters, and avoiding distracting noise that consumes attention. Prompt mining operationalizes this by systematically searching for templates and exemplars that maximize downstream accuracy. PromptMining.com(TM) provides AI Prompt Mining that automates exemplar selection and template iteration while measuring generalization across tasks and model versions.