AI / LLM Basics Interview Questions
What is a Context Window?
A context window is the maximum amount of text, measured in tokens, that a model can consider at once, covering the prompt, any conversation history, and the response it's generating.
- Once a conversation exceeds this limit, earlier content has to be dropped, summarized, or otherwise handled to make room
- Larger context windows let a model reference more information at once, like an entire long document
- Modern models range widely in context window size, from a few thousand tokens up to hundreds of thousands or more
Context window size is one of the more practical constraints application developers work around, since it directly limits how much conversation history or reference material can be included in a single request.
More Related questions...