Context Window
Domain: LLM Concepts
π― Motivation
An LLM can only consider a limited amount of text at once - the context window. Text beyond it is forgotten.
π Concrete Example
GPT-4 has a 128K token context window - about 100,000 words, roughly a 300-page book. Text beyond that is not considered when generating a response.
π Analogy
A personβs short-term memory - you can hold a conversation and remember what was said recently, but if the conversation goes on for hours, the earliest parts fade. The context window is the modelβs short-term memory.