Home icon

Automate schema generation for intelligent document processing

Machine Learning Blog



This article introduces a multi-document discovery feature for the IDP Accelerator that automates schema generation for intelligent document processing without manual classification.

  • Automatically clusters unknown documents by type using visual embeddings and k-means clustering
  • Generates JSON schemas ready for IDP Accelerator using Strands Agents and Amazon Bedrock LLMs
  • Uses Cohere Embed v4 for visual embeddings capturing layout and formatting cues
  • Silhouette score determines optimal number of document types (k value from 2-20)
  • Agents strategically sample documents across clusters to generate comprehensive schemas
  • Schema analysis step reviews outputs for overlaps and inconsistencies before human review
  • Benchmarking on OCR dataset achieved perfect clustering accuracy across 9 document types
  • Step-by-step guide provided for running discovery jobs in IDP Accelerator Console
  • Best practice: use single-page PDFs; review quality report before finalizing schemas

The solution eliminates the chicken-and-egg problem of needing schemas before document processing by automating discovery and schema generation from unlabeled document collections.



Go to article

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

May 4
2026
Accelerating federal document processing using Document AI from DMI
Jun 12
2026
From PDFs to insights: Architecting an intelligent document processing pipeline with AWS generative AI services
May 13
2026
Build financial document processing with Pulse AI and Amazon Bedrock
Aug 19
2026
Automate Document Processing with Quick Automate and the IDP Accelerator

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.