Skip to content

Commit b8aa853

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.4.7
2 parents 7f23faf + 14e9b63 commit b8aa853

File tree

23 files changed

+1596
-413
lines changed

23 files changed

+1596
-413
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ SPDX-License-Identifier: MIT-0
55

66
## [Unreleased]
77

8+
## [0.4.7]
9+
10+
### Added
11+
12+
- **MCP Integration Cross-Region Support for QuickSuite Integration**
13+
- Added cross-region support for QuickSuite integration enabling MCP connectivity across multiple AWS regions: us-east-1, us-west-2, eu-west-1, ap-southeast-2
14+
15+
### Fixed
16+
17+
- **Stack deployment failure due to MCP Integration IAM Permissions - [GitHub Issue #154](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues/154)**
18+
- Fixed missing permissions in AgentCoreGatewayManagerFunctionRole by creating the AgentCoreGateway execution role explicitly in the CloudFormation template instead of dynamically in the Lambda function
19+
20+
- **Post-Processing Lambda Hook Compression Handling - [GitHub Issue #155](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues/155)**
21+
- Added intermediate decompression lambda to handle document decompression before invoking custom post-processing lambdas
22+
- **Root Cause**: After introducing document compression, the post-processing lambda hook was receiving compressed documents in the EventBridge payload, forcing external lambdas to import `idp_common` package and handle decompression manually
23+
- **Solution**: New `PostProcessingDecompressor` lambda function intercepts EventBridge events, decompresses documents using `Document.load_document()`, and invokes custom post-processors with decompressed payload
24+
- **Benefits**: Maintains backward compatibility, eliminates external dependencies (no `idp_common` import needed), keeps compression/decompression logic encapsulated within IDP stack, minimal performance impact (<1s latency)
25+
26+
- **Enhanced Bedrock Error Handling for Agent Companion Chat**
27+
- Implemented robust error handling system for Bedrock API errors in Agent Companion Chat feature with automatic retry and graceful degradation
28+
- **Automatic Retry with Exponential Backoff**: Configured boto3 with adaptive retry mode (3 attempts) and exponential back-off to prevent service overload
29+
- **User-Friendly Error Messages**: Created `BedrockErrorMessageHandler` to convert technical errors into clear, actionable messages for service unavailable (503), throttling (429), access denied (403), validation errors (400), timeouts (408), and quota exceeded scenarios
30+
- **Sub-Agent Error Handling**: When sub-agents (Analytics, Error Analyzer, Code Intelligence) encounter Bedrock errors, the orchestrator continues gracefully without crashing, only displaying the first error to avoid duplicates while allowing other sub-agents to complete
31+
32+
### Templates
33+
- us-west-2: `https://s3.us-west-2.amazonaws.com/aws-ml-blog-us-west-2/artifacts/genai-idp/idp-main_0.4.7.yaml`
34+
- us-east-1: `https://s3.us-east-1.amazonaws.com/aws-ml-blog-us-east-1/artifacts/genai-idp/idp-main_0.4.7.yaml`
35+
- eu-central-1: `https://s3.eu-central-1.amazonaws.com/aws-ml-blog-eu-central-1/artifacts/genai-idp/idp-main_0.4.7.yaml`
36+
37+
838
## [0.4.6]
939

1040
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.6
1+
0.4.7

config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/config.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ classes:
9696
"cc": null,
9797
"reference_number": "TNJB 0008497"
9898
imagePath: >-
99-
config_library/pattern-2/few_shot_example_with_multimodal_page_classification/example-images/letter1.jpg
99+
config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/example-images/letter1.jpg
100100
- classPrompt: This is an example of the class 'letter'
101101
name: Letter2
102102
attributesPrompt: |-
@@ -112,7 +112,7 @@ classes:
112112
"cc": null,
113113
"reference_number": null
114114
imagePath: >-
115-
config_library/pattern-2/few_shot_example_with_multimodal_page_classification/example-images/letter2.png
115+
config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/example-images/letter2.png
116116
- $schema: https://json-schema.org/draft/2020-12/schema
117117
$id: form
118118
x-aws-idp-document-type: form
@@ -587,7 +587,7 @@ classes:
587587
"thread_id": null,
588588
"message_id": null
589589
imagePath: >-
590-
config_library/pattern-2/few_shot_example_with_multimodal_page_classification/example-images/email1.jpg
590+
config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/example-images/email1.jpg
591591
- $schema: https://json-schema.org/draft/2020-12/schema
592592
$id: questionnaire
593593
x-aws-idp-document-type: questionnaire
@@ -805,7 +805,7 @@ classes:
805805
"account_number": ["003525801543","352580154336"],
806806
"transactions": [{"Date": "2/6/2020", "Description": "Food Purchase - AnyCompany Restaurant - 1194989245", "Amount": "-171"}]
807807
imagePath: >-
808-
config_library/pattern-2/few_shot_example_with_multimodal_page_classification/example-images/bank-statement-pages/
808+
config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/example-images/bank-statement-pages/
809809
810810
classification:
811811
maxPagesForClassification: "ALL"
@@ -823,9 +823,9 @@ classification:
823823
You are a multimodal document classification expert that analyzes business documents using both visual layout and textual content. Your task is to classify single-page documents into predefined categories based on their structural patterns, visual features, and text content. Your output must be valid JSON according to the requested format.
824824
825825
<variables>
826-
DOCUMENT_TEXT: OCR-extracted text content from the document page that provides textual information for classification
827-
DOCUMENT_IMAGE: Visual representation of the document page that provides layout, formatting, and visual structure information
828-
CLASS_NAMES_AND_DESCRIPTIONS: List of valid document types with their descriptions that the document must be classified into
826+
<document-ocr-data>: OCR-extracted text content from the document page that provides textual information for classification
827+
<document-image>: Visual representation of the document page that provides layout, formatting, and visual structure information
828+
<document-types>: List of valid document types with their descriptions that the document must be classified into
829829
</variables>
830830
task_prompt: >-
831831
<reasoning-guidelines>
@@ -837,6 +837,10 @@ classification:
837837
- Provide specific evidence from both visual and textual analysis
838838
</reasoning-guidelines>
839839
840+
<document-types>
841+
{CLASS_NAMES_AND_DESCRIPTIONS}
842+
</document-types>
843+
840844
<output-format>
841845
Return your classification as valid JSON following this exact structure:
842846
{
@@ -893,6 +897,11 @@ extraction:
893897
894898
</task>
895899
900+
<few-shot-examples>
901+
902+
{FEW_SHOT_EXAMPLES}
903+
904+
</few-shot-examples>
896905
897906
<extraction-guidelines>
898907

docs/deployment.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ idp-cli deploy \
104104

105105
## Option 3: Build Deployment Assets from Source Code
106106

107+
Demo Video (5 minutes)
108+
109+
107110
### Dependencies
108111

109112
You need to have the following packages installed on your computer:

0 commit comments

Comments
 (0)