Extract Data with On-demand and Batch Pipelines Dynamically
AWS•How-to••by Tim Shear, Cecilia Li and Said Benallal•AWS 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.
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
AI:Myriad Genetics moved healthcare document classification from Amazon Comprehend to Amazon Nova Pro and used Nova Premier for key information extraction, using AWS's open-source GenAI IDP Accelerator.
AI:Accenture's six levers for cutting Bedrock token spend are grouped into three phases, with measured reductions of about 40 to 85 percent across four client engagements.
AI:Bedrock cost per task depends on tokenizer efficiency, output verbosity, agent loop turns and reasoning tokens, so the post proposes measuring cost per successful outcome instead of per-token price.