AI Terminology
/Beginner
Context Window
Definition
The maximum amount of text (measured in tokens) that an LLM can hold in its working memory at one single time. It includes both the user's prompt and the AI's response.
Explain Like I'm New
The size of the AI's 'RAM' or short-term memory. If an AI has a context window of 4,000 tokens, it can read about a 10-page document. If you feed it an 11-page document, it immediately forgets page 1.
Real World Example
Older models (like GPT-3) had a 4k context window. If you pasted a whole book into it, it would crash. Modern models like Gemini 1.5 Pro have a 1-million-token context window, allowing you to upload the entire Harry Potter series and ask questions about it in one shot.
Common Use Cases
- •Document analysis
- •Long-form coding
- •Multi-turn conversations
Interview Questions
basic
- If you chat with an AI for 3 hours and it suddenly forgets your name, what likely happened?
intermediate
- Why do API providers charge money based on 'Tokens' rather than 'Words'?