Codele / LLMs, RAG and agentic AI
Context windows
A model can only see a fixed number of tokens at once. When a chat gets longer than that, the oldest parts fall out and the model no longer knows them.
- A model can only see a fixed number of tokens at once. That limit is its context window.
- Rules, the chat so far, any documents and room for the answer all share the window.
- When the window is full, the oldest turns fall out. The model does not know them any more.
- One remedy is to summarise old turns into a short note. It saves space but loses detail.
- This is a toy: real windows hold thousands of tokens, but the same limit applies.
Loading the playable lesson…