BigDocs: rolling the dice on big documents
BigDocsBigDocs: part 1 of 12
The benchmark behind this series: see the results
A lot of business still runs on big documents. A customer contract checked against your MSA and policy. An employment agreement checked against the award. A tender or security questionnaire answered from everything you have said before. A knowledge base kept in step with the product it describes. A proposed policy tested against regulation, or an application checked against grant conditions. Each one is long, often several documents at once, and each needs an exact answer rather than a good first draft.
This work has always sat with the teams who own it. Now that same team is expected to use tools like Claude to automate it, often without support from an engineering team. Often, the results are OK but not OK enough to rely on. The answer usually looks OK at first. Then someone finds the clause on page 212 toward the end of document 4 that was never read, the condition that was quietly paraphrased or dropped, or the decision that nobody can explain, and the whole job gets done again, this time by hand. This is how automation fails. The patterns in this series are how those teams can get answers they can stand behind.
Why one big prompt is a roll of the dice
The way most people approach this is reasonable: put all the documents into one prompt or instruction file and ask for a complete review of all the attached documents. Context windows are large enough to take it all in. But a single prompt holding our paper, their paper and our policy asks the model to hold every clause against every other clause at once. Everything is in competition with everything else.
It reminds me of the Stroop effect, where you are asked to name the colour of the ink and the word itself spells a different colour. The information you need is right there, and the information you don’t need keeps getting in the way. People get slower and make mistakes. Models aren’t people, but LLM research shows that the distraction is still real. The remedy looks similar: compartmentalise. Give each task only what it needs, and nothing that competes with it.
Over the years I have adopted a handful of patterns, mostly borrowed from the fields of data architecture and engineering, that do exactly that. I’ve spent a long time on both sides of this, in the boardroom signing off on the results and in the codebase building what produces them, across legal, commercial, sales, HR and operational work.
Why I’m writing this
The patterns here came from having to make big-document work hold up in each of those places, usually without an engineering team on call. If teams can self-serve, their engineering and product teams can focus on the customer. This is the kind of challenge I see growing demand for.
The next piece benchmarks the patterns on a hard case, contract review, against the one big prompt.