What kind of application is this ?#
This archetype answers questions over a large set of documents: contracts, filings, policies or manuals. The answer must be correct and it must be grounded, so that a person can check each claim against the source. Usually a lawyer, an analyst or an auditor reads the answer before anyone acts on it.
Each question is one request, but the request is big. The documents can be 15,000 to more than 100,000 tokens. The usual way to build it is retrieval-augmented generation (RAG): find the parts of the documents that matter, and give only those to the model.
The deck gives three use cases. The prompts below are the ones the NovaMart lab used, except where a card says otherwise.
1
Legal due diligence
Compare clauses across many contracts. Find caps, exceptions, overrides and risks before a deal is signed.
Input
Seven contracts and riders for one supplier, about 18,500 tokens. The question: "What is the general liability cap under Clause 9.1, and which three schedules are carved out as uncapped under Clause 9.2?"
Prompt (shortened)
You are NovaMart Enterprise's Senior Supplier Deal-Room Due Diligence Counsel. Answer in 150–230 words using exactly 4 bullets: Verdict, Key Clauses, Financial Exposure, Required Sign-Off Gate. Never invent figures, clauses, or dates not present in the deal-room text.
Output (a recorded answer, shortened)
Verdict: Each party's cap is the GREATER OF INR 4.50 Cr or 100% of trailing-12-month net GMV payouts, subject to Clause 9.2. Three schedules are uncapped: B (data protection), C (product safety) and D (tax). [cited: MSA Clause 9.2]
2
Grounding repositories
Answer staff questions from a company's own policies and technical documents, with a link to the exact rule.
Input written for this post
A policy library of 40 documents. The question: "Can a store manager approve a refund of ₹60,000 without a receipt?"
Prompt written for this post
Answer only from the policy sections provided. Quote the section number for each rule you use. If the sections provided do not answer the question, say so. Do not guess.
Output written for this post
No. Refunds above ₹50,000 need a regional manager's approval (Refunds Policy, section 4.2). Without a receipt, the limit for any manager is ₹10,000 (section 6.1).
3
Financial filing analysis
Read annual filings, auditor notes and footnotes. Pull out the numbers and the risks.
Input
The supplier's statutory audit extract (India's annual-accounts filing, Form AOC-4, which plays the role of a US 10-K), inside the same deal room. The question: "Summarise the supplier's financial health, the disputed GST demand and the bank's loan covenant."
Prompt
The same deal-room prompt as card 1.
Output (a recorded answer, shortened)
Verdict: Yes, Deccan is financially sound. The auditors issued a clean opinion, with revenue of INR 312.40 Crore (+24.80% YoY), EBITDA of INR 28.60 Crore and Net Debt/EBITDA of 0.89x. [cited: AOC-4 Note 14]
How I tested it. I built a supplier “deal room” for NovaMart, a made-up retailer. All of its data is synthetic. The deal room holds seven contract and compliance documents for one supplier, split into 28 clauses. I wrote eight due-diligence questions. Each question needs clauses from several documents. I ran the test at two sizes:
- 7 documents: the deal room alone, about 18,500 tokens.
- 21 documents: the same deal room plus the same seven documents for two other, look-alike suppliers, about 54,000 tokens. The extra contracts have the same clause numbers, but different names, amounts and dates. This makes it easy to mix up suppliers.
Each design ran three sessions of eight questions at each size: 96 answers. I checked each answer three ways: against 53 key facts, by checking where its citations point, and with a blind grader (Opus 5.5) that listed every factual error. I checked each serious error against the contracts by hand. This is a small sample, so read the results as what I saw in one lab, not as a benchmark.
The token profile and cost dynamics#
The deck gives this profile for the archetype:
“Extreme context load” means the model reads a very large amount for each short answer. An output token costs 5 times as much as an input token. But at 50 input tokens for each output token, the input still makes 91% of the bill (50 ÷ (50 + 5)). At 100:1, it is 95%. So in this archetype, the input is the bill.
There is a second problem. The input grows with the documents. If you add a contract to the set, every question pays for it again.
Here is a real example from the NovaMart lab. The simple design sends every document to Sonnet 5.5 with every question, at the full price. It asks for no citations.
Almost all of the 54,207 input tokens are documents, and two thirds of the documents belong to suppliers the question is not about. The answer is good: no serious error. But 93% of the cost of this call was for reading. In all 48 answers of this design, Sonnet read 18,492 tokens per question at 7 documents and 54,221 at 21 documents. It wrote fewer than 1,000.
Tripling the documents almost tripled the input, and the cost of a question went up 2.6 times. Nothing about the answer changed.
The architectural lever#
The deck’s lever for this archetype is: “Pair hybrid retrieval (reranking and chunk filtering) with context caching on shared document repositories.” This lever has two parts, and the lab added a third that helps the reader. You can use each part alone, but they work best together.
1. Send only the clauses the question needs#
First, split the documents into chunks, for example one contract clause each. For each question, find the few chunks that matter. Send only those to the answer model. This is chunk filtering.
Finding the right chunks usually takes two steps. A fast search finds many candidates. The deck’s hybrid search mixes keyword search with search by meaning. Then a second, more careful step puts the best ones first. This is reranking.
In the lab, I used a simpler version. The small model, Haiku 5.5, reads all the clauses and picks the five that best answer the question. Then Sonnet 5.5 answers from those five clauses only. Sonnet now reads about 6,200 tokens per question, not 18,500 or 54,000. And that number stays the same when the documents grow.
| Corpus | Clauses Haiku picks from | Needed clauses among the five picked | Clauses picked from the wrong supplier |
|---|---|---|---|
| 7 documents | 28 | 89 of 90 | 0 of 120 |
| 21 documents | 84 | 89 of 90 | 0 of 120 |
2. Cache the shared documents#
Haiku must read all the clauses for every question. That is still a lot of input. But the clauses are the same for every question, so you can use context caching.
The first question writes the clauses to the cache, at 1.25 times the normal input price. Each later question reads them from the cache at 90% off. In the lab, writing the cache cost $0.0025 at 7 documents and $0.0073 at 21 documents, once per session. The cache sits on the small model, so even the full price is low.
A cache does not last forever. By default, it expires after five minutes without use. The first question after that pays to write it again. This is a cold cache.
3. Ask for citations#
The lab’s design also turns on the API’s citations. Each claim in the answer points to the exact text it came from. This does not make the answer correct. But it lets a reviewer check a claim in seconds, without searching 21 documents. Every answer with the lever had citations: 496 in 48 answers, and all of them pointed to the right supplier’s documents.
Compare the two designs on the same question. Choose a corpus size, then read what each model received and what it wrote.
Both answers are good on this question. The “with” design read 6,126 tokens, not 54,207, and cost 81% less. It took longer: about 9 seconds, against 6, because it makes two calls.
Look at the last bullet of the “with” answer: “None stated in the text provided.” Its instructions tell it to say so when something is not in the five clauses it received. It saw five clauses, not the whole corpus, so it must not claim that the documents lack something.
The chart shows where the tokens and the cost go for each design, on average. Use the buttons to change between token counts and cost.
4. Does the quality hold?#
Mostly, yes. The chart compares the two designs on four measures. Choose a measure.
What the numbers show:
- Fewer serious errors with the lever, but the samples are small. Answers with a serious error were 0 and 2 of 24 with the lever, against 1 and 3 of 24 without it.
- The answers are a little less complete. The grader gave 4.54 of 5 for completeness at both sizes with the lever, against 4.83 and 4.75 without. Correctness went the other way: 4.75 and 4.54 with the lever, against 4.50 and 4.50 without.
- Five clauses are not the whole corpus. In 41 of 48 answers, the “with” design said some term was “not in the text provided”. One of its two serious errors was this kind: it said there was no bank certificate, escrow or delisting gate, but these were in clauses that Haiku did not pick. If a question needs more than five clauses, pick more.
- Look-alike suppliers did not confuse either design. With three near-identical deal rooms in one prompt, no answer used another supplier’s value. Every question started with a line naming the supplier under audit.
The cost savings#
The chart shows the cost of 1,000 questions for each design at both corpus sizes. Each bar is split into what the money pays for.
With a cold cache, the lever halves the cost at 7 documents: from $45.93 to $22.98 per 1,000 questions (−50%). At 21 documents, it cuts the cost from $117.28 to $24.97 (−79%). Almost all of the saving is in “Sonnet reads”. The Haiku step costs less than $2 per 1,000 questions.
The bigger point is the growth. With three times the documents, a question cost 2.6 times as much without the lever, but only 1.09 times as much with it. Without the lever, the cost follows the size of the documents. With it, the cost follows the size of the answer.
Bonus architectural lever#
Cache the whole corpus for the answer model. The lab also tried caching without retrieval. Sonnet 5.5 gets all the documents in every question, as before, but from the cache, with citations turned on. The context does not get smaller. Only its price drops, because Sonnet reads cached tokens at 95% off.
This design had the best quality in the lab: no answer with a serious error at either size, and the highest correctness scores (4.96 and 4.83 of 5). Its weak point is the cache write. Writing 54,000 tokens to Sonnet’s cache costs much more than writing them to Haiku’s. So it only pays off when many questions share one cache write. Move the slider to see where that happens.
At 7 documents, caching the whole corpus becomes cheaper than the pick-and-answer design after about 13 questions per cache write. At 21 documents, it takes about 30. Below that, the pick-and-answer design is cheaper. So choose by how your documents are used:
- Many questions on the same documents, close together (for example, a team working through one deal room for a day): cache the whole corpus for the answer model.
- Few questions per document set, or a very large corpus: pick the clauses first, and cache on the small model.
Cost Estimator#
Use this calculator for your own workload. It starts with Haiku 5.5 as the answer model and the token counts measured in the lab at 21 documents. Change the prices to the rates of the model that you use. The lab used Sonnet 5.5 to answer, so choose Sonnet 5.5 to see the lab’s numbers.