Skip to content

Small Model, Big Model, or Both? AI Claims Processing on Amazon Bedrock

A proof of concept that reads insurance claims, checks them against the policy and briefs the handler. A small model matched a large one on every verdict at 84% lower cost.

7 min read

South African insurers and brokers handle claims that arrive as emails, PDFs and photos, and a handler has to check each one against the policy before anything moves. I am preparing for the AWS Certified Generative AI Developer, Professional exam (AIP-C01), and for one of its bonus assignments I built a proof of concept on Amazon Bedrock that does that first pass. The test data is fictitious and this is not client work. The result I did not expect: a small model matched a large one on every verdict at 84% lower cost, once simple rules decided which claims the large model should see.

The code, the architecture and every generated summary are public on GitHub [5].

How the pipeline works

  • The claim document lands in Amazon S3, deployed with CloudFormation: encrypted, TLS-only, and deleted with one command when the test is over.
  • A model extracts the claimant, policy number, incident date, amount and claim type. Instead of asking for "JSON format" in the prompt, the call forces a tool whose input schema is the claim schema, through the Bedrock Converse API [1].
  • Plain code checks the result: a valid date, a positive amount, a policy that exists, an incident inside the coverage period, and an amount within the limit.
  • Retrieval finds the relevant policy clauses with Titan Text Embeddings, searching only the claimant's own policy.
  • A model writes the handler's briefing, which must open with LIKELY COVERED, NEEDS REVIEW or LIKELY NOT COVERED.
  • Amazon Bedrock Guardrails masks personal information before the briefing is shared [2].

It is the same "rules first, judgement second" pattern behind the fraud scoring in my Risk Engine dashboard, and the same Bedrock foundation as the assistant on the Bahati Commodities site.

Small model, big model, or both?

I ran three increasingly messy sample claims through Claude Haiku 4.5, Amazon Nova Lite and Amazon Nova Micro. Every setup extracted 100% of the fields correctly, including a lower-case policy number, a date written in words and a DD/MM date. The difference was in the verdict.

Model calls only, at us-east-1 on-demand prices, excluding VAT. Rand figures at R18 to the US dollar.
SetupCorrect verdictsAverage latencyCost per 10,000 claims
Nova Micro, escalating flagged claims to Claude Haiku 4.53 of 31.7 sUSD 6.03 (about R108)
Claude Haiku 4.53 of 32.8 sUSD 38.20 (about R690)
Nova Lite2 of 31.8 sUSD 1.31 (about R24)
Nova Micro2 of 31.4 sUSD 0.78 (about R14)
  • Extraction is solved by the schema, not by model size. Forcing the output through a tool schema made even the smallest model reliable.
  • Reasoning is where small models fail. On a claim over the policy limit, Nova Lite said "likely covered" and Nova Micro invented an exclusion. Haiku correctly said "needs review".
  • Cascading gets the best of both. The rule checks run anyway, so they cost nothing to use for routing. Nova Micro handles every claim and only flagged claims go to Haiku: every verdict right, 84% cheaper and 39% faster than Haiku alone.

What changes under POPIA

Amazon Bedrock console showing a guardrail test. The input contains a social security number, card number, email address and phone number; the guardrail response replaces each with a placeholder.
A live Guardrails test in the Bedrock console: the social security number, card number, email and phone number are replaced with placeholders. Account details redacted.
  • Mask before you share. The extraction step needs the raw details; the briefing that travels further does not. Under POPIA this is data minimisation, built into the pipeline rather than added afterwards.
  • South African ID numbers need a custom filter. The built-in filters cover formats such as US Social Security numbers, but Guardrails also accepts custom regular expressions [2]. A 13-digit pattern, paired with a check-digit test in code, avoids masking every long number.
  • Injury claims carry health data, which POPIA treats as special personal information [4]. That is a good reason to keep NEEDS REVIEW claims with a person.
  • Know where inference runs. This proof of concept ran in AWS US Regions, so for real claims data it is a cross-border transfer question. Amazon Bedrock is available in the AWS Africa (Cape Town) Region [3]; which models are offered there is the next thing I am checking.

I wrote more about what to send to third-party AI models in POPIA and third-party AI models. None of this is legal advice.

Two things that surprised me

  • One retrieval query missed half of a two-incident claim. "Suitcase stolen, then a fall needing hospital treatment" never retrieved the emergency medical clause, so the briefing said medical costs were not covered. Searching sentence by sentence (multi-query retrieval) fixed it.
  • The address filter masked "Lisbon", a city, along with the street address. Personal information filters trade precision for recall, and that trade-off is a design decision, not a default.

Proof it ran

AWS CloudFormation console showing the claims-poc stack in CREATE_COMPLETE with four resources: an S3 bucket, a bucket policy, a Bedrock guardrail and a guardrail version.
The whole environment is one CloudFormation stack, created for each test session and deleted afterwards.
Amazon CloudWatch bar chart of Amazon Bedrock invocations by model during an evaluation run: Claude Haiku 4.5, Amazon Nova Lite, Amazon Nova Micro and Titan Text Embeddings V2.
Bedrock invocations by model during one evaluation run, straight from CloudWatch.

What comes next

  • South African sample claims: Gauteng hail damage, a load-shedding power surge, and a vehicle theft with a SAPS case number.
  • The SA ID number filter in the guardrail, tested against real-format (fictitious) ID numbers.
  • Amazon Bedrock Knowledge Bases instead of the in-memory retriever, and a human-review step for every NEEDS REVIEW claim.

“Let rules decide which claims need the expensive model. Most of them don't.”

Three claims show the pattern; they do not prove it. If you are weighing an AI step in a document-heavy process, the useful question is rarely which model is best. It is which parts of the job need a model at all.

Sources

  1. Carry out a conversation with the Converse API operations, Amazon Web Services, 17 November 2026
  2. Remove PII from conversations by using sensitive information filters, Amazon Web Services, 17 November 2026
  3. AWS Services by Region, Amazon Web Services, 17 November 2026
  4. Protection of Personal Information, Information Regulator, 17 November 2026
  5. aip-c01-claims-processor, GitHub, 17 November 2026