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/configuration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The web interface allows real-time configuration updates without stack redeploym
19
19
-**Extraction Attributes**: Configure fields to extract for each document class (defined as JSON Schema properties)
20
20
-**Few Shot Examples**: Upload and configure example documents to improve accuracy (supported in Pattern 2)
21
21
-**Model Selection**: Choose between available Bedrock models for classification and extraction
22
+
> **💡 Cost Attribution Tip:** You can replace standard model IDs with [Bedrock Application Inference Profile](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-create.html) ARNs to enable cost-allocation tagging (e.g., for MAP migration tracking). This is a configuration-only change — no code modifications required. See [Cost Attribution with Application Inference Profiles](./cost-calculator.md#cost-attribution-with-bedrock-application-inference-profiles) for step-by-step instructions.
22
23
-**Prompt Engineering**: Customize system and task prompts for optimal results
23
24
-**OCR Features**: Configure Textract features (TABLES, FORMS, SIGNATURES, LAYOUT) for enhanced data capture
24
25
-**Evaluation Methods**: Set evaluation methods and thresholds for each attribute
Copy file name to clipboardExpand all lines: docs/cost-calculator.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,71 @@ In addition to the built-in cost tracking, consider using these AWS tools:
100
100
-**AWS Budgets**: Set custom budgets and receive alerts when costs exceed thresholds
101
101
-**AWS Cost and Usage Reports**: Generate detailed reports on your AWS costs and usage
102
102
103
+
## Cost Attribution with Bedrock Application Inference Profiles
104
+
105
+
Amazon Bedrock [Application Inference Profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-create.html) let you tag Bedrock model invocations with custom cost-allocation tags (e.g., project, team, or migration program identifiers). Because all Bedrock calls in the GenAI IDP Accelerator are driven by model IDs in the configuration, you can enable cost attribution **without any code changes** — just create an inference profile and update the configuration.
106
+
107
+
### Why Use Application Inference Profiles?
108
+
109
+
By default, Bedrock usage appears in AWS Cost Explorer as a single line item per model. Application inference profiles enable you to:
110
+
111
+
-**Attribute Bedrock costs** to specific projects, teams, or migration programs using AWS cost-allocation tags
112
+
-**Track costs per workload** when multiple applications share the same AWS account
> **💡 Tip:** Create separate inference profiles for each processing stage (classification, extraction, assessment) if you need per-stage cost breakdowns.
132
+
133
+
#### Step 2 — Update the IDP Configuration (No Code Change Needed)
134
+
135
+
1. In the IDP web UI, go to **View/Edit Configuration**
136
+
2. Toggle to **JSON View** or **YAML View**
137
+
3. Find the `model` or `model_id` fields in the relevant processing step sections — for example:
138
+
-**Classification**: `classification.model_id`
139
+
-**Extraction**: `extraction.model_id`
140
+
-**Assessment**: `assessment.model`
141
+
-**Summarization**: `summarization.model`
142
+
4.**Replace** the standard model ID or cross-region inference profile ID with the new **Application Inference Profile ARN**
> **⚠️ Note:** Application inference profiles are region-specific. If you are using cross-region inference profiles (e.g., `us.*` or `eu.*` prefixes) for multi-region routing, be aware that an application inference profile pins invocations to the region where it was created. See the [EU Region Model Support](./eu-region-model-support.md) doc for details on cross-region behavior.
157
+
158
+
### Verifying Cost Attribution
159
+
160
+
After processing documents with the updated configuration:
161
+
162
+
1. Go to **AWS Cost Explorer**
163
+
2. Group by your cost-allocation tag (e.g., `map-migrated`)
164
+
3. Bedrock invocations made through the application inference profile will now appear under the tagged allocation
165
+
166
+
> **📝 Note:** Cost allocation tags may take up to 24 hours to appear in Cost Explorer after first use. You must also [activate the tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/activating-tags.html) in the Billing console if they are user-defined tags.
167
+
103
168
## Disclaimer
104
169
105
170
The GenAI IDP Accelerator solution is designed to provide cost transparency and efficiency. However, actual costs will depend on your specific implementation, document characteristics, and processing needs. Always refer to the official AWS pricing pages for the most current pricing information for all services used.
Copy file name to clipboardExpand all lines: docs/well-architected.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ The GenAI Intelligent Document Processing (GenAIIDP) Accelerator demonstrates st
118
118
119
119
### Recommendations
120
120
121
-
- Implement more granular cost allocation tags to track expenses by document type, workflow, or customer.
121
+
- Implement more granular cost allocation tags to track expenses by document type, workflow, or customer. Bedrock [Application Inference Profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-create.html) can be used to tag model invocations for cost attribution — see [Cost Attribution with Application Inference Profiles](./cost-calculator.md#cost-attribution-with-bedrock-application-inference-profiles).
122
122
- Add cost anomaly detection to identify unexpected usage patterns.
123
123
- Consider implementing tiered storage strategies for processed documents based on access patterns.
124
124
- Evaluate model selection based on cost-performance tradeoffs for different document types.
0 commit comments