AWS Publishes Reference Architecture for Contract Intelligence Using Bedrock AgentCore and Dual Claude Models
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.
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
Grok 4.7 Arrives on Amazon Bedrock with 500K Context Window and Configurable Reasoning
xAI's Grok 4.7 is now accessible through Amazon Bedrock via cross-Region inference profiles, offering a 500K token context window and four configurable reasoning effort levels. The model supports the Responses, Chat Completions, and Converse APIs, with Bedrock features including prompt caching, Guardrails, and structured outputs.
OpenAI Teases 20+ Announcements Ahead of DevDay 2026 Livestream
OpenAI is teasing 20+ announcements for its DevDay 2026 event, streaming live at 10am PT/1pm ET on September 29. Expectations center on a consumer-facing AI agent to counter xAI's Grok Bot and Meta's Muse.
Meta Launches Muse for Small Business, Expanding AI Agent Into Enterprise Software Stack
Meta launched Muse for Small Business, connecting its consumer AI agent to workplace tools including Slack, Zoom, Asana, Intuit, Box and Canva. The move follows Muse's top-of-App-Store debut on September 8 and comes a day after Meta announced a new enterprise platform led by former MongoDB CEO CJ Desai.
Manus 2.0 Adds Video Editing, Multiplayer Game Hosting, and Remote Phone Control to AI Agent Platform
Manus 2.0 transforms the AI agent into a platform with dedicated Video Editor and Game Dev environments, remote phone control via Computer Use, and a new Cue app that gives each agent its own email, wallet, and computer. The company also claims its new Cascade agent harness cuts token usage by 23.2 percent and runtime costs by 32 percent in tested configurations.
Comments
Loading...