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: docs/classification.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,22 @@ When deciding between Text-Based Holistic Classification and MultiModal Page-Lev
181
181
182
182
## Customizing Classification in Pattern 2
183
183
184
+
### Configuration Settings
185
+
186
+
#### Page Limit Configuration
187
+
188
+
Control how many pages are used for classification:
189
+
190
+
```yaml
191
+
classification:
192
+
maxPagesForClassification: "ALL"# Default: use all pages
193
+
# Or: "1", "2", "3", etc. - use only first N pages
194
+
```
195
+
196
+
**Important**: When set to a number (e.g., `"3"`), only the first N pages are classified, but the result is applied to ALL pages in the document. This forces the entire document to be assigned a single class with one section.
197
+
198
+
### Prompt Components
199
+
184
200
In Pattern 2, you can customize classification behavior through various prompt components:
Copy file name to clipboardExpand all lines: template.yaml
+1-13Lines changed: 1 addition & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -114,17 +114,7 @@ Parameters:
114
114
Description: >-
115
115
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. Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
116
116
117
-
MaxPagesForClassification:
118
-
Type: String
119
-
Default: "ALL"
120
-
AllowedValues:
121
-
- "ALL"
122
-
- "1"
123
-
- "2"
124
-
- "3"
125
-
- "5"
126
-
- "10"
127
-
Description: "Number of pages to use for document classification. 'ALL' uses all pages, or specify a number (1-10) to limit classification to first N pages and apply result to all pages. Only applies to Pattern 2 and Pattern 3."
0 commit comments