We tested a conversation about a document through the Anthropic API. Both configurations retrieved all six evaluated facts, with a striking difference in cost.
Imagine a business has just finished a meeting and needs to consult its minutes several times throughout the day. One person asks for the approved amount, another needs the deadline, and someone else wants to find a specific decision. It seems like a small job. Yet each question may carry an entire document back to the AI.
That is the situation we took to the Dorothy Merge Lab on November 25.
What we put to the test
We created four queries about fictional meeting minutes, with six predetermined facts to evaluate. One configuration used Claude Sonnet directly through the API. The other tested Dorothy Merge optimization technology with Claude Haiku and context reuse.
Both received the same questions and fact-retrieval objectives. The calls were real, and the cost calculation came from execution records and the rates used in the experiment.
The result that caught our attention
The direct sequence recorded a cost of US$0.01933; the optimized sequence recorded US$0.00035. That is a 98.2% reduction. Both retrieved all six evaluated facts. The combined time of the four calls fell from 5.89 to 2.75 seconds.
Interestingly, both paths received 8,935 input tokens across their calls. Much of the difference came from model pricing, cache reuse and output, which fell from 145 to 139 tokens.
Cost calculated in experiment records
98.2% lower cost
- Reference: US$ 0.01933
- Tested configuration: US$ 0.00035
Comparison of experiment records.
Why this matters for a business
A single lookup can be inexpensive. The challenge appears when that work happens hundreds or thousands of times. If we repeated one thousand sequences at the recorded costs, the reference would be US$19.33 and the optimized configuration US$0.35. This arithmetic projection of the measured case helps make the scale visible.
When evaluating a document assistant, I would first look at whether it retrieves the correct facts. Then I would ask how much a complete query costs and how long it takes.
What we learned
Not every straightforward question needs the same capacity as a lengthy, complex analysis. In this experiment, matching capacity to the task and reusing information produced an interesting combination: factual answers at a lower cost.
Sources
- Official provider documentation: https://platform.claude.com/docs/en/about-claude/pricing
Originally published on Dorothy Labs: https://dorothytech.com.br/insights/en/anthropic-api-document-questions.html?utm_source=dev&utm_medium=referral&utm_campaign=labs_editorial&utm_content=en-anthropic-api-document-questions
