Lesson 03
Free for every learner
9 min read

AirborneOps Learning Labs · LLMs for IT professionals

Token budgets and context windows

Plan for finite request capacity, response space, and attention limits without sending an entire ticket history or document archive.

Learning objective

Estimate the pieces competing for context and produce a small, ordered set of task-relevant facts while protecting private data.

Count the whole request

A token is a unit used to encode text; it is not a consistent count of words or characters. A context window is the capacity a model can process for a request. Instructions, conversation history, user text, retrieved passages, tool definitions, and the generated answer may all consume part of that capacity. Exact limits and accounting vary by model and service.

If the request is too large, a service may reject it, truncate it, or leave less space for the answer. A long prompt can also bury critical requirements among irrelevant details even when it technically fits. Check actual token counts with the target model’s tokenizer and preserve room for the output the task needs.

Select context by task relevance

Start from the question, then include the smallest authorized evidence set that can answer it. Prefer a concise, source-linked summary over dumping full logs or entire conversations. Keep dates, versions, scope, and status when they affect the interpretation. If you summarize or chunk a long source, inspect the boundaries so a conclusion is not separated from its conditions or caveats.

Do not use token capacity as a reason to weaken privacy controls. Redact credentials and unnecessary personal or operational details before counting. A model receiving more context may receive more sensitive information; send only what the task and policy permit.

Budget and verify explicitly

For repeatable work, define a budget for instructions, evidence, conversation history, and response. Remove stale turns, cap retrieved passages, and ask the model to say when supplied evidence is incomplete. Verify summaries against the original source, especially where a clipped time range or omitted exception could change a decision.

Example: a shift handoff can use the latest approved incident update, the relevant change record, and a short list of open checks. Old resolved tickets and unrelated inventory do not help answer what the next shift needs to verify.

Worked example

Review the request and response

SAMPLE notes for a shift handoff: VPN users reported sign-in failures at 09:20 UTC; no one has checked current gateway availability; an unrelated printer issue was resolved last month.

Sample prompt

Draft three bullets for the next shift using only relevant notes. Separate confirmed facts from unknowns. Do not infer current service status or include unrelated tickets.

Possible response

Confirmed: VPN users reported sign-in failures at 09:20 UTC. Unknown: current gateway availability has not been checked. Next check: verify gateway status and compare with the approved incident timeline.

What to verify

The response preserves the timestamp, marks the unanswered status question, excludes unrelated printer data, and suggests a check instead of asserting an unverified condition.

Practice

Exercise

Given a long fictional incident timeline, select five facts needed for an executive update and five details to omit. Explain how you will preserve timestamps, source identifiers, and unresolved questions.

Review guide

Keep only authorized evidence needed for the update, preserve dates and source identifiers, mark unknowns, reserve response capacity, and remove personal data or secrets before estimating tokens.

Knowledge check with feedback

Check your understanding

If a model’s context window is large enough for a full log archive, should an IT team send the archive by default?

Answer: No.

Capacity is not authorization or relevance. Select the smallest approved evidence set, redact unnecessary sensitive fields, reserve room for the response, and verify any summary against source records.

Take this to your next review

Practical checklist

  • Check the target model’s context and output limits; measure the actual request with its tokenizer.
  • Budget instructions, history, retrieved context, tool definitions, and response space.
  • Retrieve or summarize only task-relevant, authorized content and retain source identifiers.
  • Redact secrets and unrelated personal or operational data before token counting.
  • Check for truncation, missing caveats, and unsupported claims against the original source.

References for further reading