hard20 pts · first answer countscontext-windowrag
Budgeting the context window
Your model has a 128,000-token context window. The system prompt uses 2,000 tokens, tool definitions 6,000, chat history 30,000, and you reserve 4,000 for the answer. How many 800-token retrieved chunks fit at most?