Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ notebooks/examples/data
*tmp-dev-assets*
scratch/

# Service tier implementation artifacts
service_tier_*.md

# Node.js / npm
node_modules/
package-lock.json
Expand Down
4 changes: 4 additions & 0 deletions config_library/pattern-1/lending-package-sample/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
# SPDX-License-Identifier: MIT-0

notes: Processing configuration in BDA project.
# Global service tier setting (priority, standard, flex)
service_tier: "standard"
assessment:
service_tier: null # null = use global service_tier
default_confidence_threshold: '0.8'
summarization:
enabled: true
service_tier: null # null = use global service_tier
top_p: "0.0"
max_tokens: '4096'
top_k: '5'
Expand Down
8 changes: 8 additions & 0 deletions config_library/pattern-2/lending-package-sample/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
notes: Default settings for lending-package-sample configuration
# Global service tier setting (priority, standard, flex)
# This applies to all operations unless overridden at operation level
service_tier: "standard"
ocr:
backend: "textract" # Default to Textract for backward compatibility
model_id: "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
service_tier: null # null = use global service_tier
system_prompt: "You are an expert OCR system. Extract all text from the provided image accurately, preserving layout where possible."
task_prompt: "Extract all text from this document image. Preserve the layout, including paragraphs, tables, and formatting."
features:
Expand Down Expand Up @@ -1189,6 +1193,7 @@ classification:
classificationMethod: multimodalPageLevelClassification
maxPagesForClassification: "ALL"
sectionSplitting: llm_determined
service_tier: null # null = use global service_tier
image:
target_height: ""
target_width: ""
Expand Down Expand Up @@ -1250,6 +1255,7 @@ classification:
4. Outputting in the exact JSON format specified in <output-format>
</final-instructions>
extraction:
service_tier: null # null = use global service_tier
agentic:
enabled: false
review_agent: false
Expand Down Expand Up @@ -1351,6 +1357,7 @@ extraction:
You are a document assistant. Respond only with JSON. Never make up data, only provide data found in the document being provided.
summarization:
enabled: true
service_tier: null # null = use global service_tier
top_p: "0.0"
max_tokens: "4096"
top_k: "5"
Expand Down Expand Up @@ -1425,6 +1432,7 @@ summarization:
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.
assessment:
enabled: true
service_tier: null # null = use global service_tier
validation_enabled: false
image:
target_height: ""
Expand Down
7 changes: 7 additions & 0 deletions config_library/pattern-3/rvl-cdip-package-sample/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# SPDX-License-Identifier: MIT-0

notes: Default settings
# Global service tier setting (priority, standard, flex)
service_tier: "standard"
ocr:
backend: "textract" # Default to Textract for backward compatibility
model_id: "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
service_tier: null # null = use global service_tier
system_prompt: "You are an expert OCR system. Extract all text from the provided image accurately, preserving layout where possible."
task_prompt: "Extract all text from this document image. Preserve the layout, including paragraphs, tables, and formatting."
features:
Expand Down Expand Up @@ -765,7 +768,9 @@ classes:
labeled 'notes', 'remarks', or 'comments'.
classification:
model: Custom fine tuned UDOP model
service_tier: null # null = use global service_tier (UDOP doesn't use Bedrock, but kept for consistency)
extraction:
service_tier: null # null = use global service_tier
image:
target_width: ""
target_height: ""
Expand Down Expand Up @@ -864,6 +869,7 @@ extraction:
You are a document assistant. Respond only with JSON. Never make up data, only provide data found in the document being provided.
summarization:
enabled: true
service_tier: null # null = use global service_tier
top_p: "0.0"
max_tokens: "4096"
top_k: "5"
Expand Down Expand Up @@ -926,6 +932,7 @@ summarization:
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.
assessment:
enabled: true
service_tier: null # null = use global service_tier
image:
target_height: ""
target_width: ""
Expand Down
Loading