product updateAmazon Web Services

AWS Publishes Reference Architecture for Contract Intelligence Using Bedrock AgentCore and Dual Claude Models

TL;DR

AWS published a reference architecture showing how to combine structured data extraction with Bedrock AgentCore, dual Claude models, and Amazon Quick to answer portfolio-wide questions that standard RAG systems get wrong. The design uses Claude Sonnet 4.6 for extraction and Claude Haiku 4.5 for independent verification, with Amazon Textract as a deterministic tiebreaker.

3 min read
0

AWS has published a detailed reference architecture for a contract intelligence platform that addresses a specific failure mode in Retrieval Augmented Generation (RAG) systems: aggregation queries across large document sets. The post, published on the AWS Machine Learning blog, walks through a working system that combines Amazon Bedrock AgentCore, the open-source Strands Agents SDK, Amazon Quick embedded dashboards, and two different Claude models running in a verification loop.

The core problem: RAG-based chat tools chunk documents into vector embeddings and retrieve only the top-k most relevant chunks to answer a question. This works well for single-document lookups ("What are the payment terms in this contract?") but fails on portfolio-wide aggregation ("What's our total contract value across 250 vendor contracts?"). Because the full dataset never reaches the model's context, RAG systems return confident but incorrect totals when asked to sum, count, or compare across many documents.

AWS's proposed fix is architectural, not prompt-based: extract structured fields from unstructured PDFs into a relational database, then use analytics tools built for aggregation, while keeping a separate knowledge base for single-document semantic search.

Pipeline design

According to AWS, contracts uploaded to an Amazon S3 bucket trigger an automated pipeline with these stages:

  • An extraction agent, powered by what AWS describes as Claude Sonnet 4.6, reads each PDF natively (no OCR preprocessing) and extracts eight key fields with confidence scores, returned as structured JSON.
  • A separate verification agent, powered by Claude Haiku 4.5, independently re-reads the same document and checks the extraction.
  • If the two agents disagree on signature detection specifically, Amazon Textract's computer vision provides a deterministic tiebreaker.
  • Verified results are stored in Amazon Aurora PostgreSQL.
  • Users query the data through Amazon Quick embedded dashboards and a natural language chat agent, with pipeline status streamed over WebSocket in real time.

Both agents are built on the Strands Agents SDK and deployed on the AgentCore runtime within Amazon Bedrock AgentCore, which AWS says handles serverless hosting, automatic scaling, and session isolation without requiring infrastructure management. Access control is enforced through Cedar-based policies in AgentCore's Policy feature, which AWS states can be validated with automated reasoning before enforcement — intended to restrict which contracts agents and users can access given the sensitivity of pricing and vendor data.

AWS says the dual-model design is deliberate: using two different foundation models with different training data for extraction and verification is meant to catch errors that re-running the same model would miss, since a single model can hallucinate a value with high confidence without any independent check. AWS states the pipeline can process a contract "in seconds under typical conditions" and is designed to scale to handle many contracts in parallel, though no specific throughput or accuracy benchmarks were disclosed.

What this means

This is not a new model launch — it's an architecture pattern for enterprises hitting RAG's known ceiling on aggregation queries over large document corpora. The notable technical detail is the use of two distinct Claude model tiers (a larger extraction model and a smaller, faster verification model) as a cross-check mechanism rather than relying on self-consistency from a single model. For teams building document-processing pipelines on Bedrock, the pattern — extract to structured storage for math, retrieve from a knowledge base for lookups — is a reusable blueprint beyond contracts, applicable to invoices, compliance filings, or any corpus where leadership asks portfolio-level questions that chunk-based retrieval cannot answer.

Related Articles

product update

Google builds Antigravity into Gemini app for macOS, limited to AI Ultra subscribers

Google has integrated Antigravity, its agent-first development platform, directly into the Gemini app for macOS as part of the Gemini 4 Argon rollout. Access requires an AI Ultra subscription, while the new model itself requires AI Pro or above. The update also renames and reorganizes several app features, including Gemini Spark, Skills and Connectors.

product update

Google folds Gemini Spark agent into main Gemini app as 'Task' button next to Chat

Google is merging its Gemini Spark personal agent into the main Gemini chat interface, adding "Chat" and "Task" buttons above the prompt box. The redesign also adds a "Scheduled" page and combines chats and Spark tasks into a single history. It is rolling out on Android via a server-side update.

product update

Anthropic adds dynamic workflows to Claude Managed Agents, allowing up to 1,000 parallel sub-agents per execution

Anthropic has added dynamic workflows to Claude Managed Agents, letting a lead agent plan a task, distribute it to up to 1,000 parallel sub-agents per execution, and merge the results. Anthropic claims the approach found 66 of 70 hidden bugs in a 116,000-line codebase, versus 14 to 27 for a single agent. Pricing and token costs were not disclosed.

product update

Grok Bot agent gets its own @mail.grokbot.com email address, rolling out to users now

Grok Bot, the agent available on iPhone, iPad and Mac, now has its own email address ending in @mail.grokbot.com. According to the announcement on X, the agent can use it to sign up for services, contact businesses and schedule time with people. The rollout began October 9, 2026.

Comments

Loading...