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
Add custom configuration path support and enhance HITL functionality
- Add CustomConfigPath parameter to allow users to specify custom S3 configuration files
- Generalize HITL (Human-in-the-Loop) support from Pattern 1 only to Patterns 1 and 2
- Add conditional IAM permissions for custom config file access
- Update configuration documentation to reflect new CustomConfigPath feature
- Add chat with document resolver functionality
- Downgrade Python runtime from 3.13 to 3.12 for compatibility
- Add cost tracking columns to reporting database
- **Override Default Configuration**: When specified, your custom configuration completely replaces the default pattern configuration
44
-
- **S3 URI Format**: Accepts standard S3 URI format (e.g., `s3://bucket-name/path/to/config.yaml`)
44
+
- **S3 URI Format**: Accepts standard S3 URI format (e.g., `ss3://my-bucket/custom-config/config.yaml`)
45
45
- **Least-Privilege Security**: IAM permissions are conditionally granted only to the specific S3 bucket and object you specify
46
46
- **All Patterns Supported**: Works with Pattern 1 (BDA), Pattern 2 (Textract + Bedrock), and Pattern 3 (Textract + UDOP + Bedrock)
47
47
@@ -131,7 +131,7 @@ Key parameters that can be configured during CloudFormation deployment:
131
131
- `WAFAllowedIPv4Ranges`: IP restrictions for web UI access (default: allow all)
132
132
- `CloudFrontPriceClass`: Set CloudFront price class for UI distribution
133
133
- `CloudFrontAllowedGeos`: Optional geographic restrictions for UI access
134
-
- `CustomConfigPath`: Optional S3 URI to a custom configuration file (e.g., s3://my-bucket/config.yaml)
134
+
- `CustomConfigPath`: Optional S3 URI to a custom configuration file that overrides pattern presets. Leave blank to use selected pattern configuration. Example: s3://my-bucket/custom-config/config.yaml
Copy file name to clipboardExpand all lines: template.yaml
+13-17Lines changed: 13 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -100,16 +100,8 @@ Parameters:
100
100
AllowedValues:
101
101
- "lending-package-sample"
102
102
- "default"
103
-
Description: >-
104
-
Select the configuration preset for Pattern 1. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
105
-
Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
106
-
107
-
CustomConfigPath:
108
-
Type: String
109
-
Default: ""
110
-
Description: Custom S3 path for configuration file (applicable to all patterns). For Example s3://your-bucket/path/to/config.yaml
111
-
AllowedPattern: '^(|s3://[a-zA-Z0-9.\-_]+(/.*)?)'
112
-
ConstraintDescription: Must be empty or a valid S3 URI (e.g., s3://my-bucket/my-key)
103
+
Description: Select the configuration preset for Pattern 1. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
104
+
Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
Select the configuration preset for Pattern 2. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
127
-
Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
117
+
Description: Select the configuration preset for Pattern 2. Each configuration contains pre-tuned settings for specific document processing scenarios see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
118
+
Note: Custom configuration overrides the selected pattern configuration when provided.
128
119
129
120
Pattern2CustomClassificationModelARN:
130
121
Type: String
@@ -150,10 +141,8 @@ Parameters:
150
141
AllowedValues:
151
142
- "rvl-cdip-package-sample"
152
143
- "default"
153
-
Description: >-
154
-
Select the configuration preset for Pattern 3. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
155
-
Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
156
-
144
+
Description: Select the configuration preset for Pattern 3. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
145
+
Note: Custom configuration overrides the selected pattern configuration when provided.
157
146
# HITL (A2I) Configuration
158
147
159
148
EnableHITL:
@@ -278,6 +267,13 @@ Parameters:
278
267
If you provided a Bedrock Guardrail Id above, provide the corresponding Guardrail version here (e.g. DRAFT|1|2|...).
279
268
280
269
# General Configuration
270
+
CustomConfigPath:
271
+
Type: String
272
+
Default: ""
273
+
Description: S3 URI pointing to your custom configuration YAML file. When provided, this configuration overrides the selected pattern preset and applies to all processing patterns. Leave blank to use the selected pattern configuration preset. Example: s3://my-bucket/custom-config/config.yaml
274
+
AllowedPattern: '^(|s3://[a-zA-Z0-9.\-_]+(/.*)?)'
275
+
ConstraintDescription: Must be empty or a valid S3 URI (Example: s3://my-bucket/custom-config/config.yaml)
0 commit comments