Skill 1.3.2
Identify when token limits or context window constraints affect GenAI system performance
Key Concepts
Models process text as tokens, roughly three-quarters of an English word each. The context window is the maximum number of tokens the model can consider in one request, including instructions, conversation history, any documents and the response. A separate maximum output tokens setting limits the length of the response.
Symptoms of these limits include truncated responses, a long conversation in which early instructions are forgotten, errors when very large documents are submitted and answers that ignore information in the middle of long inputs. Remedies include summarising history, splitting documents, using RAG to send only relevant passages, or choosing a model with a larger context window. Because pricing is per token, larger contexts also cost more and take longer.