C

Context Window

The maximum amount of text and data an AI model can process and reason over in a single interaction.

What it is

A context window is the finite span of tokens (prompt, history, retrieved data) an LLM can hold in active memory at once. Once exceeded, older content gets truncated or summarized, which can cause an agent to 'forget' earlier instructions.

Why it matters

Context window size directly limits how much grounding data, conversation history, and instructions an Agentforce agent can use before quality degrades. Choosing the right model and context strategy affects cost, accuracy, and reliability.

Key components

  • token budget
  • sliding window
  • context truncation
  • memory summarization

How it connects

Agentforce and Data Cloud manage context windows by chunking retrieved knowledge via RAG rather than dumping entire documents into a single prompt.

Good to know

Bigger isn't always better — larger context windows increase latency and cost, so smart retrieval often beats brute-force size.

Need Help Implementing This?

We specialize in putting AI and Agentforce to work for Salesforce customers. Let's talk about your use case.

Book Intro Call