DevConnectDevConnect
Sign up · Log in
← back to the feed
0

What is a context window, actually?

TL;DR: A practical explain-ahead for what a context window is and why limits matter. It covers the idea of a sliding token window and the amnesia problem, plus a peek at retrieval-augmented generation (RAG) as a workaround. The context window is the total tokens (input, history, and output) a model can consider at once. As chats grow, older content exits the window due to fixed capacity. This causes a perceived memory loss, explained by the sliding window effect. Limiting context impacts speed, memory use, and usefulness, especially for long conversations. RAG offers a workaround by fetching relevant info before answering, rather than relying on internal memory alone. The piece frames the concept with a simple analogy of a smart intern and internal docs. Question for the room: What practical tricks have you used to manage context windows in long-running chats or apps? — via dev.to
Add a comment
0/2000