Beginner level
Free for every learner
Supplemental lesson

AirborneOps Learning Labs · working with AI

Token Budgets and Context Windows

Every request has limited room for instructions, facts, and a response. Learn how to keep the information an IT task depends on when a conversation or document is long.

Learning outcome

Explain what tokens and context windows are, recognize why long input can be cut off, and prioritize task-critical instructions and facts over unrelated background.

This focused reading lesson is supplemental. It is outside the eight-lesson AI Beginners sequence and separate from the LLM architecture lesson.

Tokens are text units

A language model processes text as tokens: small units that may be a whole short word, part of a longer word, punctuation, or another text fragment. A token is not reliably the same thing as a word or character, so a page count or word count is only a rough guide to how much room text will use.

A token budget is finite capacity

Think of a token budget as a limited space to fit the request. Instructions, the question, conversation history, attached or retrieved text, and the answer may all use some of that space. Many tools also reserve room for the model’s response. The exact accounting and available capacity depend on the model and the tool settings.

The context window is what the model can consider at once

A context window is the amount of tokenized material a model can consider for one request. It can include system or application instructions, your prompt, relevant earlier messages, and supplied documents or tool results. A larger window can fit more material, but it does not make every detail equally relevant or guarantee that a tool sends every available document.

There is no single context limit for all AI. Limits, output reserves, and what a product counts can vary by model, product, and configuration. Check the specific tool’s current guidance when the exact limit matters.

Long input can be truncated or left out

If the material exceeds the available context, a tool may reject it, shorten it, or omit some content to fit. Some tools may drop older conversation history; others may handle long documents in a different way. The exact behavior varies. If a section was omitted, the model cannot rely on it for that request, even if you can still see it in the original file or conversation. Do not assume that a fluent answer means all of the supplied text was considered.

When space is tight, state the task and constraints clearly, keep the facts needed to answer it, and remove background that does not affect the result. If an omitted fact could change a decision, shorten or organize the input and check that the needed fact made it into the request.

A practical prioritization example

Prepare a short incident handoff

Fictional teaching example: these details do not describe a real service or incident.

You need a three-bullet handoff for the next shift about VPN authentication trouble. The useful notes say that remote users first reported trouble at 09:20 UTC and that nobody has checked the current service status. A long export also contains a resolved printer ticket from last month and a printer inventory.

Keep first

Keep the handoff task and its three-bullet limit; the incident type and report time; and the fact that current status is unknown. These details define the work, support a useful summary, and prevent the draft from claiming a status that has not been checked. Drop the unrelated printer details first.

Your turn

Rank what to keep

Imagine there is only room for the most useful notes. Rank these from keep first to drop first for the three-bullet incident handoff:

  1. Task and limits

    Draft three bullets for the next shift. Use only these notes and mark unknowns.

  2. Incident facts

    Remote VPN users began reporting authentication trouble at 09:20 UTC.

  3. Current status

    No one has checked whether the VPN is currently available.

  4. Unrelated ticket

    A printer issue was resolved last month.

  5. Unrelated inventory

    A list of printer models and serial numbers.

Self-check

A useful priority order

  1. Task and limits: these tell the model what to produce and how to handle the notes.
  2. Incident facts: the affected users and first report time are relevant evidence for the handoff.
  3. Current status: keeping “not checked” helps the next shift see an important unknown instead of receiving an invented status.
  4. Printer ticket, then inventory:neither helps explain this VPN issue, so both can be removed before task-critical details.

The key is to preserve the task, relevant evidence, and meaningful unknowns. The two unrelated printer notes belong at the bottom because they do not help produce this handoff.