Lab 05 · Local fictional budget

Build a context window

Allocate limited capacity across instructions, conversation, a retrieved document, and the answer.

Build a limited input

Context-window budget

Enable blocks and change capacity to see what fits after reserving space for the answer.

Fictional units
300 units are always reserved for the answer.
Requested blocks, in retention order
Input 1000Answer 300

Prepared plan

1 block removed

Input budget: 1100 units. Requested: 1360 units. Theoretical overflow: 260 units.

Limits of this representation
  • The units are not real token counts.
  • This strategy keeps blocks in a fixed order; real applications may truncate, summarize, or retrieve differently.
  • Fitting in the window does not guarantee that the model will use every piece of information equally well.