An insurance software platform needed to pull structured data out of contracts that run to 1,000 pages, answer questions across documents, and keep every customer's data inside that customer's own cloud.
Insurance and legal documents of 500 to 1,000 pages each
Structured data pulled out of each contract
Lambda, including container based Lambda, and S3
Customer data never leaves the customer’s own cloud
The short answer: we built serverless pipelines on AWS that pull 100 to 200 structured fields from insurance and legal contracts of 500 to 1,000 pages, a retrieval layer for cross document questions and clause matching, and a routing layer that sends each task to the right model, all inside the customer's own cloud tenancy.
Insurance software (InsurTech)
Software vendor serving insurers and legal teams
2026, ongoing
Embedded AI and ML engineers
The platform reviews very large insurance and legal documents, pulls structured fields out of each one and answers questions across a set of documents for warranty and indemnity style review. Sending whole contracts to general purpose LLM APIs was too slow and too expensive per document to scale, and enterprise customers required that their data never leave their own cloud tenancy.
We built the extraction and retrieval pipelines the product runs on, and a routing layer that decides which model handles each task. The same backbone serves the existing document ingestion product and a new enterprise assistant, and a domain specific model can be dropped in later without changing anything that calls it.
Contracts of 500 to 1,000 pages do not fit a single model call, and the fields that matter are scattered across hundreds of pages.
Serverless pipelines split each document, run targeted extraction for 100 to 200 fields and assemble a structured record, scaling up and down with the load.
Structured data from the longest contracts without manual reading
Reviewers ask questions that span several documents and need answers tied back to specific clauses and internal guidelines.
A retrieval layer indexes the documents and a curated guideline corpus, so answers and clause matches come from the right passages.
Cross document Q&A and clause matching for review teams
Hard wiring every task to one general purpose model made cost and speed hard to control and blocked a move to a domain model.
A routing layer sends each task to a suitable model, a reasoning route or a fast clause signalling route, behind one interface.
New models can be swapped in without rebuilding the product
Enterprise customers review confidential legal and transaction documents and will not allow data to move between tenancies.
Everything runs inside each customer’s own cloud tenancy with single tenant isolation and logged, auditable model calls.
Meets data residency and confidentiality requirements
Related: AI consulting for insurance · All case studies
You do not send the whole contract to one model. The document is split, each field is extracted from the passages most likely to hold it, and the results are assembled and checked into one structured record. Running this serverless lets it scale with the number of documents.
It is a single interface that decides which model handles each task, for example a stronger reasoning model for complex questions and a faster one for spotting clauses. Callers never talk to a specific model, so a new or in house model can be added without changing them.
The pipelines run inside each customer’s own cloud tenancy with single tenant isolation, so documents never move across tenancies. Every model call is logged so it can be audited later.
At hundreds of pages per document, general purpose APIs become slow and expensive per document, and many enterprise customers will not let data leave their tenancy. A routed, retrieval based design keeps cost and speed under control and keeps data in place.
Yes, if the architecture allows it. Because tasks go through the routing layer, a domain specific model can take over individual tasks once it is ready, without rewriting the product around it.
Tell us what you need pulled out of your contracts or policies. We will show you how an extraction and retrieval pipeline would work on your own documents.