Skip to content

Commit b532497

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.4.3
2 parents 19eb043 + 799c810 commit b532497

File tree

68 files changed

+2643
-811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2643
-811
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,24 @@ A clear and concise description of what you expected to happen.
2323
**Screenshots**
2424
If applicable, add screenshots to help explain your problem.
2525

26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
30-
31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
26+
**AWS Region**
27+
What AWS region have you deployed in?
28+
29+
**Accelerator Pattern**
30+
Which Pattern did you deploy?
31+
32+
**Custom Stack Parameters**
33+
What non-default stack parameters did you configure when deploying?
34+
35+
**Custom Configuartions**
36+
What configuration serttings did you customize?
37+
38+
**Output of the 'TroubleShoot' agent (if issue is a document processing failure)**
39+
*See [error analyzer](../../docs/error-analyzer.md)*
40+
41+
**Link to DeepWiki answer**
42+
Try [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws)
43+
And share the response link here.
3644

3745
**Additional context**
3846
Add any other context about the problem here.

.gitlab-ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ developer_tests:
4343
- uv venv .venv
4444
- source .venv/bin/activate
4545
# Install Node.js and npm for basedpyright
46-
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
46+
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
4747
- apt-get install -y nodejs
48+
- npm install -g npm@11
4849
- npm install -g basedpyright
4950
- uv pip install ruff
5051
# Install dependencies needed by publish.py for test imports
5152
- uv pip install typer rich boto3
5253
# Install test dependencies
53-
- cd lib/idp_common_pkg && uv pip install -e ".[test]" && cd ../..
54+
- cd lib/idp_common_pkg && uv pip install -e ".[test,evaluation]" && cd ../..
5455

5556
script:
5657
- make lint-cicd
@@ -163,15 +164,20 @@ integration_tests:
163164
164165
# Save full logs to artifact
165166
echo "$FULL_LOGS" > codebuild_logs.txt
166-
echo "📁 Full deployment logs saved to: codebuild_logs.txt"
167-
167+
echo -e "\033[1;36m📁 Full deployment logs saved to: \033[1;33mcodebuild_logs.txt\033[0m"
168+
echo -e "\033[1;34m🔗 View logs: ${CI_JOB_URL}/artifacts/external_file/codebuild_logs.txt\033[0m"
168169
# Extract and show deployment summary (AI or manual)
169170
echo ""
170-
SUMMARY=$(echo "$FULL_LOGS" | grep -A 100 "🤖 Generating deployment summary with Bedrock..." | head -100)
171+
SUMMARY=$(echo "$FULL_LOGS" | sed -n '/🤖 Generating deployment summary with Bedrock.../,$p' | sed 's/^\t*//' | grep -v '\[Container\]' | grep -v 'Phase complete:' | grep -v 'Phase context status code:' | grep -v 'Entering phase' || true)
171172
172173
if [ -n "$SUMMARY" ]; then
173-
echo "🤖 Deployment Analysis:"
174-
echo "$SUMMARY"
174+
echo "┌─────────────────────────────────────────────────────────────────────────┐"
175+
echo "│ DEPLOYMENT SUMMARY │"
176+
echo "├─────────────────────────────────────────────────────────────────────────┤"
177+
echo "$SUMMARY" | while IFS= read -r line; do
178+
printf "│ %-71s │\n" "$line"
179+
done
180+
echo "└─────────────────────────────────────────────────────────────────────────┘"
175181
else
176182
echo "⚠️ No deployment summary found - check codebuild_logs.txt for details"
177183
fi

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,32 @@ SPDX-License-Identifier: MIT-0
77

88
### Added
99

10+
### Fixed
11+
12+
## [0.4.3]
13+
14+
### Fixed
15+
16+
- Fix #134 - Doc class dropdown shows no options when editing sections
17+
- Fix #133 - Cast topK to int to defend against transient ValidationException exceptions
18+
- Fix #132 - TRACKING_TABLE environment variable needed in EvaluationFunction
19+
- Fix #131 - HITL functions broken post docker migration
20+
- Fix #130 - Enable EU models for Agent Configuration and KB Configuration
21+
- Add ServiceUnavailableException to retryable exceptions in statemachine to better defend against processing failure due to quota overload
22+
- Evaluation Configuration Robustness
23+
- Improved JSON Schema error messages with actionable diagnostics when configuration issues occur
24+
- Added automatic type coercion for numeric constraints (e.g., `maxItems: "7"``maxItems: 7`) to handle common YAML parsing quirks gracefully
25+
- UI: Document Schema Editor Input Field Fixes
26+
- Fixed Examples, Default Value, Const, and Enum Values fields not allowing first character deletion or comma input
27+
- Fixed Enum field remaining disabled after clearing Const value
28+
- Fixed "Clear all enum values" button not working
29+
- Fixed empty Evaluation Method picklist for Array[String] and other simple array types
30+
31+
### Templates
32+
- us-west-2: `https://s3.us-west-2.amazonaws.com/aws-ml-blog-us-west-2/artifacts/genai-idp/idp-main_0.4.3.yaml`
33+
- us-east-1: `https://s3.us-east-1.amazonaws.com/aws-ml-blog-us-east-1/artifacts/genai-idp/idp-main_0.4.3.yaml`
34+
- eu-central-1: `https://s3.eu-central-1.amazonaws.com/aws-ml-blog-eu-central-1/artifacts/genai-idp/idp-main_0.4.3.yaml`
35+
1036
## [0.4.2]
1137

1238
### Added
@@ -55,7 +81,7 @@ SPDX-License-Identifier: MIT-0
5581

5682

5783
### Templates
58-
- us-west-2: `https://s3.us-west-2.amazonaws.com/aws-ml-blog-us-west-2/artifacts/genai-idp/idp-main_0.4.2yaml`
84+
- us-west-2: `https://s3.us-west-2.amazonaws.com/aws-ml-blog-us-west-2/artifacts/genai-idp/idp-main_0.4.2.yaml`
5985
- us-east-1: `https://s3.us-east-1.amazonaws.com/aws-ml-blog-us-east-1/artifacts/genai-idp/idp-main_0.4.2.yaml`
6086
- eu-central-1: `https://s3.eu-central-1.amazonaws.com/aws-ml-blog-eu-central-1/artifacts/genai-idp/idp-main_0.4.2.yaml`
6187

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.2
1+
0.4.3

config_library/pattern-1/lending-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ discovery:
210210
agents:
211211
error_analyzer:
212212
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
213-
214213
system_prompt: |-
215214
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
216215
@@ -299,6 +298,9 @@ agents:
299298
parameters:
300299
max_log_events: 5
301300
time_range_hours_default: 24
301+
302+
chat_companion:
303+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
302304
pricing:
303305
- name: bda/documents-custom
304306
units:

config_library/pattern-2/bank-statement-sample/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,9 @@ agents:
788788
parameters:
789789
max_log_events: 5
790790
time_range_hours_default: 24
791+
792+
chat_companion:
793+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
791794
pricing:
792795
- name: textract/detect_document_text
793796
units:

config_library/pattern-2/criteria-validation/config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ discovery:
292292
agents:
293293
error_analyzer:
294294
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
295-
296295
system_prompt: |-
297296
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
298297
@@ -381,7 +380,9 @@ agents:
381380
parameters:
382381
max_log_events: 5
383382
time_range_hours_default: 24
384-
383+
384+
chat_companion:
385+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
385386
# Pricing configuration for cost tracking
386387
pricing:
387388
- name: textract/detect_document_text

config_library/pattern-2/lending-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,6 @@ discovery:
17231723
agents:
17241724
error_analyzer:
17251725
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1726-
17271726
system_prompt: |-
17281727
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
17291728
@@ -1812,6 +1811,9 @@ agents:
18121811
parameters:
18131812
max_log_events: 5
18141813
time_range_hours_default: 24
1814+
1815+
chat_companion:
1816+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
18151817
pricing:
18161818
- name: textract/detect_document_text
18171819
units:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,6 @@ discovery:
13451345
agents:
13461346
error_analyzer:
13471347
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1348-
13491348
system_prompt: |-
13501349
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
13511350
@@ -1434,6 +1433,9 @@ agents:
14341433
parameters:
14351434
max_log_events: 5
14361435
time_range_hours_default: 24
1436+
1437+
chat_companion:
1438+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
14371439
pricing:
14381440
- name: textract/detect_document_text
14391441
units:

config_library/pattern-2/rvl-cdip-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,6 @@ discovery:
13651365
agents:
13661366
error_analyzer:
13671367
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1368-
13691368
system_prompt: |-
13701369
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
13711370
@@ -1454,6 +1453,9 @@ agents:
14541453
parameters:
14551454
max_log_events: 5
14561455
time_range_hours_default: 24
1456+
1457+
chat_companion:
1458+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
14571459
pricing:
14581460
- name: textract/detect_document_text
14591461
units:

0 commit comments

Comments
 (0)