Context Window
A context window is the maximum number of tokens a large language model (LLM) can take into account in a single request, counting both the input and the output it generates. Everything in the request counts toward it, including system instructions, earlier conversation turns, attached documents and the response itself.[7] Its size sets how much of a long document or codebase the model can work with at once.[1]