AI Cloud Architect

Extract Data with On-demand and Batch Pipelines Dynamically

AWSHow-to by Tim Shear, Cecilia Li and Said BenallalAWS Artificial Intelligence Blog

This post demonstrates an intelligent document processing pipeline that consists of both on-demand inference and batch inference options on Amazon Bedrock to enable the flexibility on the document processing time and cost.

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

AI: Summary

What it is

A reference architecture builds two Amazon Bedrock pipelines for document data extraction: on-demand for time-sensitive requests and batch for cost savings, with prompts and models chosen per document.

Who it is for

Teams processing large scanned document backlogs on Bedrock that must balance processing time against cost.

Key points

  • Batch inference is about 50% cheaper than on-demand, according to AWS tests
  • Batch jobs need at least 100 records and use one model ID per job
  • Claude Sonnet 4 accepts at most 20 images per call, so longer PDFs are split into chunks
  • Prompt Management limits: 50 prompts per region and 10 versions per prompt

Timeline

  1. Customer storyOldcastle accelerates document processing with Amazon Bedrock · AWS · Customer story
  2. This postExtract Data with On-demand and Batch Pipelines Dynamically

Go deeper