Live Webinar On: Building AI-First Financial InstitutionsRegister Now
    AI Glossary · Foundations

    In-Context Learning

    Teaching an LLM a new task by showing examples in the prompt, without retraining.

    Category · Foundations3 min readUpdated August 2026

    What is In-Context Learning?

    n-context learning is the ability of large language models to learn new tasks or behaviours from examples provided directly in the prompt, without any retraining or fine-tuning of model weights. Providing one example is called one-shot learning; providing several is few-shot learning. In-context learning allows enterprises to rapidly adapt foundation models to domain-specific tasks without expensive fine-tuning cycles.

    In-context learning emerges at scale: smaller models show weak in-context learning, while frontier models can learn complex new tasks from just a few examples in the prompt. The mechanism is not fully understood, but the leading hypothesis is that in-context learning triggers the model to locate similar patterns from pre-training and apply them to the new task. This makes larger models more economically flexible for enterprise deployment — you can configure them for a new task by changing the prompt, rather than running a fine-tuning pipeline.

    In-context learning has practical limits that matter for enterprise deployment. Performance typically plateaus after a certain number of examples, and very long example sequences consume valuable context window space that could be used for retrieved documents or conversation history. For tasks with stable, repeatable patterns, in-context learning is an efficient starting point. For tasks where performance needs to exceed what prompt examples can achieve, fine-tuning remains necessary. The practical enterprise strategy is to start with in-context learning (fast, cheap, flexible), measure performance gaps, and fine-tune specifically where the gaps are material.

    Also known as: Few-Shot Learning, Prompt-Based Learning

    Key Points

    Key Points

    • Core idea

      In-context learning lets the model perform new tasks from prompt examples alone — no training pipeline, no data annotation process, no GPU compute. The fastest path from idea to working prototype.

    • Why it matters

      Zero-shot uses instructions only; one-shot adds one example; few-shot adds several. Few-shot consistently outperforms zero-shot for complex domain-specific tasks, especially with frontier models.

    • Enterprise use

      In-context learning is weak in smaller models and strong in frontier models. This is one of the 'emergent capabilities' of scale that makes larger models more flexible for enterprise tasks.

    How It Works

    How In-Context Learning works

    1. Define the purpose, inputs, and success criteria that In-Context Learning must support.

    2. Apply In-Context Learning in the relevant workflow while recording its inputs, configuration, and outputs.

    3. Evaluate the result against representative data, operational constraints, and human review before expanding production use.

    How Fluid AI Uses This

    Prompt-based adaptation for rapid enterprise deployment.

    Fluid AI uses in-context learning to rapidly configure AI agents for domain-specific enterprise tasks without full fine-tuning cycles, enabling faster time-to-value.

    Explore Architecture

    Topics Covered

    • in-context learning LLM enterprise
    • few-shot learning enterprise AI
    • zero-shot LLM task
    • prompt-based learning enterprise
    • in-context learning vs fine-tuning
    • few-shot examples LLM
    • rapid enterprise AI deployment
    • foundation model task adaptation
    Continue Exploring

    Related terms in Foundations.

    Want to see how Fluid AI uses this in production?

    Book a 30-minute session with our enterprise AI team.

    Book a Demo