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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,15 @@ SPDX-License-Identifier: MIT-0
29
29
30
30
### Changed
31
31
32
+
-**Migrated Evaluation from EventBridge Trigger to Step Functions Workflow**
33
+
- Moved evaluation processing from external EventBridge-triggered Lambda to integrated Step Functions workflow step
34
+
-**Race Condition Eliminated**: Evaluation now runs inside state machine before WorkflowTracker marks documents COMPLETE, preventing premature completion status when evaluation is still running
35
+
-**Config-Driven Control**: Evaluation now controlled by `evaluation.enabled` configuration setting instead of CloudFormation stack parameter, enabling runtime control without stack redeployment
36
+
-**Enhanced Status Tracking**: Added EVALUATING status to document processing pipeline for better visibility of evaluation progress
37
+
-**UI Improvements**: Added support for displaying EVALUATING status in processing flow viewer and "NOT ENABLED" badge when evaluation is disabled in configuration
38
+
-**Consistent Pattern**: Aligns evaluation with summarization and assessment patterns for unified feature control approach
39
+
40
+
32
41
-**Migrated UI Build System from Create React App to Vite**
33
42
- Upgraded to Vite 7 for faster build times
34
43
- Updated to React 18, AWS Amplify v6, react-router-dom v6, and Cloudscape Design System
Copy file name to clipboardExpand all lines: config_library/pattern-1/lending-package-sample/config.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ summarization:
67
67
system_prompt: >-
68
68
You are a document summarization expert who can analyze and summarize documents from various domains including medical, financial, legal, and general business documents. Your task is to create a summary that captures the key information, main points, and important details from the document. Your output must be in valid JSON format. \nSummarization Style: Balanced\\nCreate a balanced summary that provides a moderate level of detail. Include the main points and key supporting information, while maintaining the document's overall structure. Aim for a comprehensive yet concise summary.\n Your output MUST be in valid JSON format with markdown content. You MUST strictly adhere to the output format specified in the instructions.
69
69
evaluation:
70
+
enabled: true
70
71
llm_method:
71
72
top_p: '0.1'
72
73
max_tokens: '4096'
@@ -520,4 +521,3 @@ pricing:
520
521
units:
521
522
- name: gb_seconds
522
523
price: '1.66667E-5'# $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
- `DocumentKnowledgeBase`: Enable document knowledge base functionality
160
159
- `KnowledgeBaseModelId`: Bedrock model for knowledge base queries
161
160
- `PostProcessingLambdaHookFunctionArn`: Optional Lambda ARN for custom post-processing (see [post-processing-lambda-hook.md](post-processing-lambda-hook.md) for detailed implementation guidance)
Description: Model to use for evaluation reports (e.g., "us.anthropic.claude-3-7-sonnet-20250219-v1:0")
95
91
```
96
92
93
+
### Runtime Configuration
94
+
95
+
Control evaluation behavior through the configuration file (no stack redeployment needed):
96
+
97
+
```yaml
98
+
evaluation:
99
+
enabled: true # Set to false to disable evaluation processing
100
+
llm_method:
101
+
model: "us.anthropic.claude-3-haiku-20240307-v1:0"# Model for evaluation reports
102
+
temperature: "0.0"
103
+
top_p: "0.1"
104
+
max_tokens: "4096"
105
+
# Additional model parameters...
106
+
```
107
+
108
+
**Benefits of Configuration-Based Control:**
109
+
- Enable/disable evaluation without stack redeployment
110
+
- Runtime control similar to summarization and assessment features
111
+
- Zero LLM costs when disabled (step executes but skips processing)
112
+
- Consistent feature control pattern across the solution
113
+
114
+
### Attribute-Specific Evaluation Methods
115
+
97
116
You can also configure evaluation methods for specific document classes and attributes through the solution's configuration. The framework supports three types of attributes with different evaluation approaches:
0 commit comments