product updateAnthropic

AWS adds Claude tool use to Bedrock for custom entity extraction from documents

TL;DR

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.

2 min read
0

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:

  1. Document Upload: Users upload documents to Amazon S3
  2. Event Triggering: S3 PUT event automatically triggers an AWS Lambda function
  3. Model Invocation: Lambda sends the document to Claude via Amazon Bedrock's invoke-model API
  4. Entity Extraction: Claude processes the image and extracts fields using defined tool schemas
  5. 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

product update

GitHub Adds Agent App Activity Data to Copilot Usage Metrics API

GitHub has updated its Copilot usage metrics API to include activity data from agent apps such as Claude and Codex operating within GitHub workflows. The change gives organizations visibility into third-party agent usage alongside native Copilot metrics.

changelog

Anthropic Cuts False Positives in Fable 5's Biology Filter by 85%, Keeps Virology and Toxicology Blocked

Anthropic has cut false positives in Fable 5's biology safety classifier by roughly 85%, letting users ask about lab results, symptoms, and medical questions without being rerouted to the weaker Opus 5 model. Dual-use topics like virology, toxicology, and molecular design remain restricted, with Anthropic citing the difficulty of containing biological threats once released.

changelog

Anthropic SDK v0.121.0 Adds Session Budgets, Mid-Conversation Tool Changes, and GitHub Skills Auto-Loading

Anthropic released version 0.121.0 of its Python SDK on August 7, 2026, introducing a new beta for mid-conversation tool changes, session budgets, an advisor tool, pinned inference location, and skills auto-loading from GitHub. The update also removes retired Claude Opus 4.1 models from the API.

product update

AWS Adds Temporal Policies to Bedrock AgentCore to Stop AI Agents From Exploiting Multi-Step Actions

Amazon Bedrock AgentCore now supports temporal policies—stateful authorization rules that evaluate an AI agent's entire session history, not just individual tool calls. The feature runs at the AgentCore Gateway, outside agent code, so it cannot be bypassed by prompt manipulation or agent bugs.

Comments

Loading...