AWS adds Claude tool use to Bedrock for custom entity extraction from documents
Amazon Web Services has integrated Claude's tool use (function calling) capability into Bedrock, enabling serverless document processing for custom entity recognition. The solution uses Claude 3.5 Sonnet to extract structured data like names, dates, and addresses from driver's licenses and other documents without traditional model training.
AWS Adds Claude Tool Use to Bedrock for Custom Entity Extraction
Amazon Web Services has published a production-ready implementation guide for using Anthropic's Claude model with tool use (function calling) capabilities in Amazon Bedrock to extract structured data from unstructured documents.
What's New
The solution demonstrates how to build a serverless document processing pipeline that extracts custom fields from documents like driver's licenses without requiring model training or fine-tuning. Claude evaluates prompts and automatically determines whether to invoke predefined tools to complete extraction tasks.
Technical Implementation
The architecture combines AWS services into an automated workflow:
- Document Upload: Users upload documents to Amazon S3
- Event Triggering: S3 PUT event automatically triggers an AWS Lambda function
- Model Invocation: Lambda sends the document to Claude via Amazon Bedrock's invoke-model API
- Entity Extraction: Claude processes the image and extracts fields using defined tool schemas
- Monitoring: Results are logged in Amazon CloudWatch
The implementation uses Claude 3.5 Sonnet (global.anthropic.claude-sonnet-4-5-20250929-v1:0) with the tool_choice: auto parameter, allowing Claude to decide whether tool invocation is necessary. For deterministic behavior in production, developers can hardcode specific tool selection.
Key Technical Details
Tool Definition: Developers define tools with JSON schemas specifying field names, types, and requirements. The example extracts driver's license fields including first name, last name, issue date, license number, and address components.
Lambda Configuration: The guide recommends setting Lambda timeout to 30 seconds minimum (1-2 minutes for high-resolution images) to accommodate Claude's processing latency. Default 3-second timeouts will cause failures.
Image Processing: Documents are base64-encoded and sent with text prompts to Claude. The model returns structured JSON matching the defined tool schema.
IAM Permissions: Required permissions include bedrock:InvokeModel for Claude access and s3:GetObject for document retrieval.
Capabilities
The tool use approach supports:
- Dynamic field extraction without retraining
- Multiple document types (driver's licenses, insurance cards, ID badges, business forms)
- Scalable, serverless processing
- Real-time extraction with no batch processing required
- Flexible schema definition based on use case
What This Means
This integration reduces barrier to entry for document automation. Previously, extracting data from images required either rule-based OCR systems, fine-tuned models, or manual setup. Claude's tool use with vision capabilities removes the training requirement—developers can define extraction schemas in minutes and deploy production pipelines immediately. The serverless architecture eliminates infrastructure management while AWS Lambda's automatic scaling handles variable document volumes. Organizations processing hundreds or thousands of documents can now automate extraction without building custom ML pipelines.
Related Articles
Anthropic launches Personal Finance in Claude with read-only Plaid access for US Pro, Max and Ultra users
Anthropic announced Personal Finance in Claude, a feature that connects bank and credit card accounts through Plaid with read-only access. Conversations in the Personal Finance hub are not used to train Anthropic's models. It is available only to Pro, Max and Ultra subscribers in the US.
Anthropic Reports Bacterial and Phage Proteins Assemble Into Vault Particles in E. coli, With Claude Aiding a 3.2 Å Map
Anthropic reported on November 4, 2026 that prokaryotic and bacteriophage relatives of the major vault protein can assemble into vault particles when produced in E. coli. Claude helped the team map one bacteriophage-derived shell at a nominal resolution of 3.2 angstroms.
METR report: Anthropic's unreleased Model 4 scores 178.6 on AECI, ahead of Opus 5.5
METR's new report discloses three unreleased Anthropic models, Model 2, Model 3 and Model 4. Model 4 scores 178.6 on Anthropic's AECI index, about 3.9 points above Opus 5.5. Anthropic co-founder Sam McCandlish confirmed the report's main findings but said much information was removed.
Meta adds "spaces" to Muse AI, letting users build app-like hubs by describing them
Meta is rolling out "spaces" to all users of its Muse AI assistant. Spaces are customized, app-like experiences that Muse builds from a text description, and they can update automatically when connected to a relevant app. Meta is also releasing a "specialized" version of its Muse Wonder AI model.
Comments
Loading...