Skip to content

Issue with document classification when using multiple custom blueprints in Bedrock Data Automation

1

Hi,

I’m using Amazon Bedrock Data Automation to extract structured data from documents using custom blueprints. In my use case, I have documents of the same type (e.g., utility bills) but from different providers, each with its own layout and extraction logic. I’ve created separate custom blueprints for each provider and combined them into a single project, expecting Bedrock to automatically classify incoming documents and apply the correct blueprint based on the content or branding. However, during testing, the system isn’t classifying the documents correctly — it doesn’t seem to select the intended blueprint, even though I’ve added clear descriptions to each one. For example:

  • “Use this blueprint for documents clearly branded with the PECO logo or name.”
  • “Use this blueprint for documents clearly branded with the Toronto Hydro logo or name.”

Questions:

  • How does document classification work within Bedrock Data Automation when multiple custom blueprints are included in one project?
  • In what scenarios does classification automatically select the correct blueprint?
  • What’s the recommended setup or best practice to ensure documents are properly classified and routed to the right blueprint?

Any guidance or clarification on how to configure this correctly would be very helpful.

Thanks!

  • Hi I am also stuck with a similar problem, did you find any solution. I tried with modifiying discription, nothing really worked for me

asked a year ago342 views

1 Answer
0

Amazon Bedrock Data Automation (BDA) can match documents to appropriate blueprints when multiple blueprints are included in a project. The blueprint matching process is based on three key elements:

  1. Blueprint name
  2. Blueprint description
  3. Blueprint fields

When you process documents through BDA and reference a project with configured blueprints, the system attempts to send each document to the blueprint that best matches its expected layout. A project can have up to 40 document blueprints attached, allowing you to handle different document types or variations.

For your utility bills scenario, here are some recommendations to improve classification accuracy:

  • Be more explicit and detailed in your blueprint descriptions. Instead of just mentioning the logo or name, include information about the typical content and elements found in these documents, such as specific sections, formatting patterns, or unique identifiers.

  • When creating a blueprint, provide a document class that represents the type of document (e.g., "PECO Utility Bill" or "Toronto Hydro Statement") and a comprehensive description that includes information about common data elements like company information, addresses, account details, billing periods, etc.

  • Create specialized blueprints for each vendor/document source to improve matching accuracy.

  • Ensure your blueprints are sufficiently different from each other to help BDA distinguish between them.

  • Avoid including multiple blueprints of the same type in a project as this can confuse the matching process.

When you submit a document for processing, BDA analyzes its content and matches it against the list of blueprints provided. The document is then classified and processed based on the blueprint that best matches its content and structure.
Sources
Bedrock Data Automation projects - Amazon Bedrock
Create Blueprints for Classification - Amazon Bedrock
Custom output and blueprints - Amazon Bedrock
Splitting documents while using projects - Amazon Bedrock

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.