Artificial Intelligence
Context window
Appears inGen AI Leader
The maximum number of tokens (text, and in multimodal models also image/audio/video) a model can consider simultaneously as input in a single request, including the prompt, conversation history, and any attached documents.
On the exam
In GENAI-L (Domain 1) it is one of the key criteria for choosing a foundation model: a large context window allows processing entire lengthy documents without needing to split them (chunking) or relying as heavily on RAG.
Related terms
- Foundation modelLarge-scale AI model, pretrained on huge volumes of diverse data, that can be adapted to multiple downstream tasks (text, image, code) through prompting, fine-tuning, or RAG, without needing to be trained from scratch for each use case.
- RAG (Retrieval-Augmented Generation)Technique that combines retrieving relevant information from an external source (vector database, documents) with generation from a language model, enabling answers grounded in up-to-date or private data without retraining the model.