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
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,27 @@ SPDX-License-Identifier: MIT-0
5
5
6
6
## [Unreleased]
7
7
8
+
### Added
9
+
-**Configuration-Based Summarization Control**
10
+
- Summarization can now be enabled/disabled via configuration file `summarization.enabled` property instead of CloudFormation stack parameter
11
+
-**Key Benefits**: Runtime control without stack redeployment, zero LLM costs when disabled, simplified state machine architecture, backward compatible defaults
12
+
-**Implementation**: Always calls SummarizationStep but service skips processing when `enabled: false`
13
+
-**Cost Optimization**: When disabled, no LLM API calls or S3 operations are performed
14
+
-**Configuration Example**: Set `summarization.enabled: false` to disable, `enabled: true` to enable (default)
15
+
16
+
### Changed
17
+
-**State Machine Simplification**: Removed `SummarizationChoice` conditional states from all patterns (Pattern 1, 2, 3) for cleaner workflows
18
+
-**Service Logic Enhancement**: SummarizationService now checks configuration `enabled` flag at the beginning of `process_document()`
19
+
-**Configuration Schema Updates**: Added `enabled` boolean property to summarization sections in all CloudFormation template schemas
20
+
21
+
### Removed
22
+
-**CloudFormation Parameter**: Removed `IsSummarizationEnabled` parameter from all pattern templates (patterns/pattern-1, pattern-2, pattern-3)
23
+
-**Related Conditions**: Removed `IsSummarizationEnabled` conditions and state machine definition substitutions
24
+
25
+
### Documentation
26
+
-**Updated Documentation**: Enhanced docs/configuration.md, docs/architecture.md, and all pattern-specific docs (pattern-1.md, pattern-2.md, pattern-3.md)
27
+
-**Service Documentation**: Updated lib/idp_common_pkg/idp_common/summarization/README.md with configuration examples and behavior details
28
+
-**Migration Guidance**: Added migration notes about the CloudFormation parameter removal
Copy file name to clipboardExpand all lines: docs/configuration.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The web interface allows real-time configuration updates without stack redeploym
16
16
-**Prompt Engineering**: Customize system and task prompts for optimal results
17
17
-**OCR Features**: Configure Textract features (TABLES, FORMS, SIGNATURES, LAYOUT) for enhanced data capture
18
18
-**Evaluation Methods**: Set evaluation methods and thresholds for each attribute
19
-
-**Summarization**: Configure model, prompts, and parameters for document summarization (when `IsSummarizationEnabled` is true)
19
+
-**Summarization**: Configure model, prompts, parameters, and enable/disable document summarization via the `enabled` property
20
20
21
21
### Configuration Management Features
22
22
@@ -27,6 +27,35 @@ The web interface allows real-time configuration updates without stack redeploym
27
27
28
28
Configuration changes are validated and applied immediately, with rollback capability if issues arise. See [web-ui.md](web-ui.md) for details on using the administration interface.
29
29
30
+
## Summarization Configuration
31
+
32
+
### Enable/Disable Summarization
33
+
34
+
Summarization can be controlled via the configuration file rather than CloudFormation stack parameters. This provides more flexibility and eliminates the need for stack redeployment when changing summarization behavior.
35
+
36
+
**Configuration-based Control (Recommended):**
37
+
```yaml
38
+
summarization:
39
+
enabled: true # Set to false to disable summarization
0 commit comments