aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws

The IDP Accelerator provides a scalable, serverless approach for automated document processing and information extraction using AWS services, such as Amazon Bedrock Data Automation and Amazon Bedrock foundational models. It combines generative AI and optical character recognition (OCR) to process documents at scale.

GenAI Intelligent Document Processing (GenAIIDP)

What it is: A ready-made, serverless system that runs on Amazon Web Services (AWS) to automatically read and understand documents — like PDFs, scanned pages, or lending packages — and turn them into clean, structured data. It combines traditional OCR (optical character recognition, i.e., reading text from images/scans) with generative AI to handle documents at scale without you managing any servers.

What it does: You upload a document (via a web interface, an S3 storage bucket, or a command-line tool). The system then processes it through a pipeline: it reads the text, classifies what kind of document it is (page by page or as a whole packet), extracts the important fields, checks how confident it is in those extractions, validates against business rules, and summarizes the result. The output lands in a results bucket, and you can view, compare, and download every version of every processed document.

How it works (two modes, one stack):

  • Pipeline mode (default): OCR → AI classification → AI extraction → confidence assessment → rule validation → summarization.
  • BDA mode: Uses Amazon Bedrock Data Automation to do the whole extraction in one go, then rule validation and summarization.

You pick the mode with a single configuration flag — no separate installation needed.

Key features:

  • Fully serverless (AWS Lambda, Step Functions, SQS, DynamoDB)
  • Web UI for uploading documents and inspecting workflow status/results
  • Command-line interface (CLI) for batch processing, evaluation, and analytics
  • Document versioning — every run is kept as an immutable version you can view/compare/download
  • Human-in-the-loop review for validation workflows
  • AI-powered evaluation framework to measure accuracy against baseline data
  • LLM-based extraction confidence scoring with multimodal analysis
  • Ask questions about processed documents (knowledge base query)
  • A help chat bot that answers questions about the codebase itself
  • MCP integration so external apps (like Amazon Quick Suite) can access IDP data
  • Configuration profiles with revision history and test comparison
  • Few-shot example support to improve accuracy
  • Custom business logic via Lambda functions
  • Built-in resilience (retries, throttling management) and cost controls
  • CloudWatch dashboard for monitoring

How to use it:

  1. Deploy by clicking a "Launch Stack" button in the AWS console (available in us-west-2, us-east-1, eu-central-1, ca-central-1). You'll get an email with a temporary password for the web UI.
  2. Process a document three ways:
    • Web UI: log in, upload a document, watch results in the dashboard.
    • Direct S3 upload: drop a file into the InputBucket; results appear in OutputBucket automatically.
    • CLI: run idp-cli run-inference for batch processing, then idp-cli download-results to fetch outputs.

Before using it: You must request access to specific Amazon Bedrock models (Amazon Nova models, Titan Text Embeddings V2, and Anthropic Claude 3.x/4.x).

Alternatives:

  • Prefer AWS CDK? There's a CDK version: GenAI IDP Accelerator for AWS CDK.
  • Prefer Terraform? Each release publishes a Terraform module generated from the CloudFormation templates (experimental).

Security: The project includes a STRIDE threat model (109 documented threats with controls and residual risks), security tests (static analysis, dependency scanning, dynamic API scanning, authorization testing), and per-release test result snapshots. A build gate ensures the threat model stays current. Security issues should be reported via AWS's vulnerability reporting page, not public issues.

Documentation: A full documentation site is available at aws-solutions-library-samples.github.io/accelerated-intelligent-document-processing-on-aws with searchable, sidebar-organized docs covering architecture, deployment, configuration, evaluation, monitoring, and more.

License: MIT-0 (permissive, no attribution required).

Note: This is an AWS sample/solution accelerator — it's meant to be a starting point you can customize, not a finished product. AWS Professional Services offers concierge support for production use cases.

Related

  • Project
  • Project
  • Project
  • Project
  • Project