GlossaryContext window
Context window
A context window is the amount of text, code or file content a language model can take in and reason over in one request, measured in tokens. Everything the model uses for an answer, the instructions, the conversation, retrieved documents and tool outputs, has to fit inside it.
How it works
A model reads its input as tokens, short pieces of text that are often a word or part of a word. Each model has a maximum number of tokens it can process at once, covering both what it reads and what it writes. Instructions, earlier messages, attached files, retrieved passages and the output of every tool call all count against that limit. When a task needs more material than fits, the application has to choose what goes in: summarize earlier steps, retrieve only the relevant parts of a document, or split the task.
A larger window is not the same as better use of it. A 2023 study of long contexts showed that models use information at the start and end of a long input more reliably than information in the middle. Placing key material well and leaving out the rest still matters.
Context window vs memory
The context window is what the model sees in one request. Memory is whatever an application stores between requests, such as notes, past decisions or files, and puts back into the window when needed. A model has no lasting memory of its own beyond its training. An agent that appears to remember is an application managing its context.
Why it matters
Electronics work produces large inputs. A datasheet runs to many pages, a netlist lists every connection, and a board file holds every pad and trace. An agent that tries to load all of it at once runs out of room or buries the one table it needs. An agent that loads too little works from guesses, which is how a hallucination gets into a design.
How to get it right
- Retrieve the specific sections a task needs, such as one pin table or one rule set, instead of whole documents.
- Put the instructions and the most important facts where the model attends to them, at the start or end.
- Compact long runs: summarize finished steps, or hand subtasks to sub-agents with their own windows.
- Pass structured data, such as a netlist excerpt or a BOM line, rather than prose about it.
- Use grounding, so every claim the model makes points back to a source in its context.
Context windows in robotics and drone hardware
A robot controller's design spans the schematic, the layout, the BOM, many datasheets and the mechanical constraints. No single request holds all of it usefully. Tools that let an agent fetch exactly the part of the design it needs, such as one net, one footprint or one datasheet table, matter more than a larger window.