You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,76 @@ SPDX-License-Identifier: MIT-0
5
5
6
6
## [Unreleased]
7
7
8
+
## [0.3.5]
9
+
10
+
### Added
11
+
-**Human-in-the-Loop (HITL) Support - Pattern 1**
12
+
- Added comprehensive Human-in-the-Loop review capabilities using Amazon SageMaker Augmented AI (A2I)
13
+
-**Key Features**:
14
+
- Automatic triggering when extraction confidence falls below configurable threshold
15
+
- Integration with SageMaker A2I Review Portal for human validation and correction
16
+
- Configurable confidence threshold through Web UI Portal Configuration tab (0.0-1.0 range)
17
+
- Seamless result integration with human-verified data automatically updating source results
18
+
-**Workflow Integration**:
19
+
- HITL tasks created automatically when confidence thresholds are not met
20
+
- Reviewers can validate correct extractions or make necessary corrections through the Review Portal
21
+
- Document processing continues with human-verified data after review completion
22
+
-**Configuration Management**:
23
+
-`EnableHITL` parameter for feature toggle
24
+
- Confidence threshold configurable via Web UI without stack redeployment
25
+
- Support for existing private workforce work teams via input parameter
26
+
-**CloudFormation Output**: Added `SageMakerA2IReviewPortalURL` for easy access to review portal
27
+
-**Known Limitations**: Current A2I version cannot provide direct hyperlinks to specific document tasks; template updates require resource recreation
28
+
-**Document Compression for Large Documents - all patterns**
29
+
- Added automatic compression support to handle large documents and avoid exceeding Step Functions payload limits (256KB)
30
+
-**Key Features**:
31
+
- Automatic compression (default trigger threshold of 0KB enables compression by default)
32
+
- Transparent handling of both compressed and uncompressed documents in Lambda functions
33
+
- Temporary S3 storage for compressed document state with automatic cleanup via lifecycle policies
34
+
-**New Utility Methods**:
35
+
-`Document.load_document()`: Automatically detects and decompresses document input from Lambda events
36
+
-`Document.serialize_document()`: Automatically compresses large documents for Lambda responses
37
+
-`Document.compress()` and `Document.decompress()`: Compression/decompression methods
38
+
-**Lambda Function Integration**: All relevant Lambda functions updated to use compression utilities
39
+
-**Resolves Step Functions Errors**: Eliminates "result with a size exceeding the maximum number of bytes service limit" errors for large multi-page documents
-**Example Notebook**: Added `notebooks/examples/step3_extraction_using_yaml.ipynb` demonstrating YAML-based extraction with automatic format detection and token efficiency benefits
69
+
70
+
### Fixed
71
+
-**Enhanced JSON Extraction from LLM Responses (Issue #16)**
72
+
- Modularized duplicate `_extract_json()` functions across classification, extraction, summarization, and assessment services into a common `extract_json_from_text()` utility function
73
+
- Improved multi-line JSON handling with literal newlines in string values that previously caused parsing failures
74
+
- Added robust JSON validation and multiple fallback strategies for better extraction reliability
75
+
- Enhanced string parsing with proper escape sequence handling for quotes and newlines
76
+
- Added comprehensive unit tests covering various JSON formats including multi-line scenarios
Copy file name to clipboardExpand all lines: Makefile
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,4 +46,4 @@ commit: lint test
46
46
export COMMIT_MESSAGE="$(shell q chat --no-interactive --trust-all-tools "Understand pending local git change and changes to be committed, then infer a commit message. Return this commit message only"| tail -n 1 | sed 's/\x1b\[[0-9;]*m//g')"&&\
0 commit comments