Accelerating custom entity recognition with Claude tool use in Amazon Bedrock
Machine Learning Blog
This article demonstrates how to use Claude Tool use (function calling) in Amazon Bedrock to extract custom entities from documents like driver's licenses without traditional model training.
- Claude Tool use enables LLMs to invoke external functions for structured data extraction
- Serverless architecture uses S3, Lambda, Bedrock, and CloudWatch for document processing
- S3 upload triggers Lambda function that sends images to Claude for entity extraction
- Define tool schemas with JSON to specify required fields and data types
- Lambda function encodes images in base64 and invokes Claude via Bedrock API
- Configure S3 event notifications to automatically trigger Lambda on file upload
- Supports JPEG, PNG, WebP formats; max 20MB, 4096x4096 pixels recommended
- CloudWatch logs display extracted data in structured tool_use format
- Implement error handling, security best practices, and performance optimization
This solution provides scalable, cost-effective document processing without complex ML model setup or maintenance.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Apr 7
2026
2026
Amazon Bedrock now offers Claude Mythos Preview (Gated Research Preview)
Apr 21
2026
2026
From developer desks to the whole organization: Running Claude Cowork in Amazon Bedrock
Apr 16
2026
2026
Claude Opus 4.7 is now available in Amazon Bedrock
Jun 18
2024
2024
Use zero-shot large language models on Amazon Bedrock for custom named entity recognition
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.