Retrieval Footprint
What a document costs the window
Library › Context Problems
Retrieval does not add a document to the conversation, it adds the document to the window. Whatever comes back from the store competes for the same cells as the system prompt, the question, and the answer. A retrieved document is split into fixed chunks, and every chunk takes a cell whether the model needs it or not, so a generous retrieval is quietly the largest thing in the window. [[rag-chunks-in-the-budget]] asks the next question: what happens when the chunks do not fit.
⬇ Retrieval Footprint worksheet (2 pages)



