AI Cloud Architect

Accelerating custom entity recognition with Claude tool use in Amazon Bedrock

AWSHow-to by Kimo El Mehri and Johana Hernandez HerreraAWS Artificial Intelligence Blog

This post introduces Claude Tool use in Amazon Bedrock which uses the power of large language models (LLMs) to perform dynamic, adaptable entity recognition without extensive setup or training.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to extract custom fields from driver's license images with Claude tool use in Bedrock, using a serverless S3, Lambda and Bedrock pipeline with no model training.

Who it is for

Developers on AWS who need to pull structured fields from scanned documents without training a custom ML model.

Key points

  • The example Lambda function is triggered by S3 PUT events and calls Claude Sonnet 4.5 through the Bedrock Tool use API.
  • The post lists image limits: 20 MB maximum file size and 4096 x 4096 pixel maximum dimensions.
  • The sample code only accepts JPEG images; other formats need a change to the media_type field.
  • The post recommends a Lambda timeout of at least 30 seconds, with 1 to 2 minutes for larger images.

Timeline

  1. What it explainsStructured outputs now available in Amazon Bedrock · AWS · Announcement
  2. This postAccelerating custom entity recognition with Claude tool use in Amazon Bedrock

Go deeper