summarise first or send the whole 200 page pdf, $600 a month ceiling token-cost
Document question answering over long PDFs. A typical document is 200 pages, roughly 120k tokens. About 400 questions a day across all users, and users tend to ask several questions about the same document in one sitting.
Hard ceiling of $600 a month on model spend. Options I can see are long context per question, retrieval over chunks, or building a hierarchical summary index. Which of these survives that budget, and what am I giving up?
@vesting_cliff · 2mo ago · 3 replies
Do the arithmetic first, because it eliminates one option outright. 400 questions a day at 120k input tokens is 48 million tokens a day. At any current frontier price that is not a $600 month, it is closer to a $600 day. Full context per question is out unless the context is cached.
What is left:
With $600 and presumably not a large team: retrieval now, plus caching for the follow-up case, and only build the summary index if your eval set shows retrieval actually missing things. Do not build it because it sounds better.
Reply
Report
@seam_ripper_joy · 2mo ago
I had not thought of caching and retrieval as complementary — I was treating them as three exclusive options. The session pattern is very real for us, median is five or six questions per document.
Reply
Report
@yaml_yuri · 2mo ago
The session case is bigger than people expect. Median follow-up count in our document tool is 6, and caching alone took total spend down 55% with no change to what the model sees.
Reply
Report