Skip to content

Commit 6458353

Browse files
committed
Merge branch 'fix/decompress-doc-for-post-process-lambda' into 'develop'
Add intermediate decompression lambda for post-processing hook See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!457
2 parents f38a649 + 307e1ec commit 6458353

File tree

5 files changed

+475
-175
lines changed

5 files changed

+475
-175
lines changed

CHANGELOG.md

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

66
## [Unreleased]
77

8+
### Fixed
9+
10+
- **Post-Processing Lambda Hook Compression Handling - [GitHub Issue #155](https://github.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws/issues/155)**
11+
- Added intermediate decompression lambda to handle document decompression before invoking custom post-processing lambdas
12+
- **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
13+
- **Solution**: New `PostProcessingDecompressor` lambda function intercepts EventBridge events, decompresses documents using `Document.load_document()`, and invokes custom post-processors with decompressed payload
14+
- **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)
15+
816
## [0.4.6]
917

1018
### Added

0 commit comments

Comments
 (0)