BookbagBookbag
Glossary

Context Window

A context window is the maximum amount of text (measured in tokens) that a large language model can process in a single inference — encompassing the system prompt, conversation history, retrieved documents, and any other inputs provided at the time of generation.

What it means

Key insight

The context window is the AI\'s working memory — everything outside it is forgotten, and everything inside it shapes the response.

Every time an LLM generates a response, it can only "see" the text within its context window. For a customer support AI, this window must contain: the system prompt with instructions and persona, any relevant knowledge base content retrieved for this query, the full conversation history so far, and the current customer message. Context windows are measured in tokens (roughly 0.75 words each) and range from 4,000 tokens in older models to over 1 million in the latest. For most support conversations, context size isn\'t a bottleneck — a typical chat exchange fits comfortably in even a modest window. It matters most in long conversations, when large policy documents need to be included verbatim, or when integrating extensive product catalog information into every response.

Why it matters

Context window constraints affect how an AI support system must be architected. If a store\'s return policy document is too long to fit in the window alongside conversation history and other context, the RAG system must be carefully designed to extract only the most relevant excerpts rather than including the full document. For ecommerce support, this is rarely a blocking issue with modern models, but understanding context limits helps when debugging cases where an AI seems to "forget" something said earlier in a long conversation — the likely cause is that earlier content has been pushed out of the window.

How Bookbag helps

Intelligent Context Management

Bookbag automatically manages what goes into each LLM call\'s context — prioritizing the most relevant retrieved content and recent conversation turns while staying within model limits.

Conversation Summarization

For long conversations, Bookbag compresses earlier turns into a running summary, preserving key information (order numbers, stated preferences, issues raised) without consuming the full context budget.

Context Transparency

Bookbag\'s debugger lets merchants inspect exactly what context was sent to the model for any given response, making it easy to diagnose cases where the AI seemed to miss something from earlier in the conversation.

Frequently Asked Questions

See Bookbag in action

Join the ecommerce teams resolving more tickets, answering 24/7, and turning support into a revenue channel with Bookbag.