Skip to content
echogeco
Retrieval, and when not to · The search pipeline

Chunking the policy manual

Turn a 100-page manual into a chunk count, an index cost and a daily query bill, and show what 1,600-token chunks do to the month.

estimateeasyExercise · 3 min · 36 of 77
On this page

An HR team wants a bot over the policy manual before the new-joiner cohort arrives. The index is a one-off; the queries are forever, and the chunk size sets both.

The situation

The manual is 100 pages at roughly 500 words a page, revised a few pages at a time. The bot will answer about 1,500 questions a day from employees, each question around 50 tokens, with a 600-token system prompt and an answer of about 150 tokens. The proposed pipeline splits on headings to a target of 400 tokens with a 40-token overlap, embeds every chunk, and puts the top 5 chunks in the prompt for each question. A colleague argues for 1,600-token chunks "so the model sees whole sections".

Course constants: 1.3 tokens per English word, P_in = $3 per million input tokens, P_out = $15 per million output tokens. Assume the embedding endpoint charges $0.10 per million tokens, and that a month is 30 days. Caching covers only a prefix identical across calls.

The question

How many chunks does the manual become, what does the index cost to build, and what does a month of questions cost at 400-token chunks — and at 1,600?

A strong answer · Rubric · Where answers go wrong

Write your answer first, then open