Skip to content

Commit 7614682

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.3.17
2 parents 3a060b1 + 7254f18 commit 7614682

File tree

28 files changed

+467
-12
lines changed

28 files changed

+467
-12
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ SPDX-License-Identifier: MIT-0
55

66
## [Unreleased]
77

8+
## [0.3.18]
9+
10+
### Added
11+
12+
- **Lambda Function Execution Cost Metering for Complete Cost Visibility**
13+
- Added Lambda execution cost tracking to all core processing functions across all three processing patterns
14+
- **Dual Metrics**: Tracks both invocation counts ($0.20 per 1M requests) and GB-seconds duration ($16.67 per 1M GB-seconds) aligned with official AWS Lambda pricing
15+
- **Context-Specific Tracking**: Separate cost attribution for each processing step enabling granular cost analysis per document processing context
16+
- **Automatic Integration**: Lambda costs automatically integrate with existing cost reporting infrastructure and appear alongside AWS service costs (Textract, Bedrock, SageMaker)
17+
- **Configuration Integration**: Added Lambda pricing entries to all 7 configuration files in `config_library/` using official US East pricing
18+
19+
### Fixed
20+
- Defect in v0.3.17 causing workflow tracker failure to (1) update status of failed workflows, and (2) update reporting database for all workflows #72
21+
22+
823
## [0.3.17]
924

1025
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.17
1+
0.3.18

config_library/pattern-1/lending-package-sample/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ pricing:
215215
price: '1.5E-6'
216216
- name: cacheWriteInputTokens
217217
price: '1.875E-5'
218+
# AWS Lambda pricing (US East - N. Virginia)
219+
- name: lambda/requests
220+
units:
221+
- name: invocations
222+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
223+
- name: lambda/duration
224+
units:
225+
- name: gb_seconds
226+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
218227
discovery:
219228
output_format:
220229
sample_json: |-

config_library/pattern-2/bank-statement-sample/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,15 @@ pricing:
693693
price: '1.5E-6'
694694
- name: cacheWriteInputTokens
695695
price: '1.875E-5'
696+
# AWS Lambda pricing (US East - N. Virginia)
697+
- name: lambda/requests
698+
units:
699+
- name: invocations
700+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
701+
- name: lambda/duration
702+
units:
703+
- name: gb_seconds
704+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
696705
discovery:
697706
output_format:
698707
sample_json: |-

config_library/pattern-2/criteria-validation/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ pricing:
212212
price: 0.0000032
213213
- name: cacheReadInputTokens
214214
price: 0.0000002
215+
# AWS Lambda pricing (US East - N. Virginia)
216+
- name: lambda/requests
217+
units:
218+
- name: invocations
219+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
220+
- name: lambda/duration
221+
units:
222+
- name: gb_seconds
223+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
215224
discovery:
216225
output_format:
217226
sample_json: |-

config_library/pattern-2/lending-package-sample/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,15 @@ pricing:
14561456
price: '1.5E-6'
14571457
- name: cacheWriteInputTokens
14581458
price: '1.875E-5'
1459+
# AWS Lambda pricing (US East - N. Virginia)
1460+
- name: lambda/requests
1461+
units:
1462+
- name: invocations
1463+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
1464+
- name: lambda/duration
1465+
units:
1466+
- name: gb_seconds
1467+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
14591468
discovery:
14601469
output_format:
14611470
sample_json: |-

config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/config.yaml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,3 +1307,139 @@ discovery:
13071307
and organizational structure. Focus on creating comprehensive blueprints
13081308
for document processing without extracting actual values.
13091309
max_tokens: '10000'
1310+
pricing:
1311+
- name: textract/detect_document_text
1312+
units:
1313+
- name: pages
1314+
price: '0.0015'
1315+
- name: textract/analyze_document-Layout
1316+
units:
1317+
- name: pages
1318+
price: '0.004'
1319+
- name: textract/analyze_document-Signatures
1320+
units:
1321+
- name: pages
1322+
price: '0.0035'
1323+
- name: textract/analyze_document-Forms
1324+
units:
1325+
- name: pages
1326+
price: '0.05'
1327+
- name: textract/analyze_document-Tables
1328+
units:
1329+
- name: pages
1330+
price: '0.015'
1331+
- name: textract/analyze_document-Tables+Forms
1332+
units:
1333+
- name: pages
1334+
price: '0.065'
1335+
- name: bedrock/us.amazon.nova-lite-v1:0
1336+
units:
1337+
- name: inputTokens
1338+
price: '6.0E-8'
1339+
- name: outputTokens
1340+
price: '2.4E-7'
1341+
- name: cacheReadInputTokens
1342+
price: '1.5E-8'
1343+
- name: cacheWriteInputTokens
1344+
price: '6.0E-8'
1345+
- name: bedrock/us.amazon.nova-pro-v1:0
1346+
units:
1347+
- name: inputTokens
1348+
price: '8.0E-7'
1349+
- name: outputTokens
1350+
price: '3.2E-6'
1351+
- name: cacheReadInputTokens
1352+
price: '2.0E-7'
1353+
- name: cacheWriteInputTokens
1354+
price: '8.0E-7'
1355+
- name: bedrock/us.amazon.nova-premier-v1:0
1356+
units:
1357+
- name: inputTokens
1358+
price: '2.5E-6'
1359+
- name: outputTokens
1360+
price: '1.25E-5'
1361+
- name: bedrock/us.anthropic.claude-3-haiku-20240307-v1:0
1362+
units:
1363+
- name: inputTokens
1364+
price: '2.5E-7'
1365+
- name: outputTokens
1366+
price: '1.25E-6'
1367+
- name: bedrock/us.anthropic.claude-3-5-haiku-20241022-v1:0
1368+
units:
1369+
- name: inputTokens
1370+
price: '8.0E-7'
1371+
- name: outputTokens
1372+
price: '4.0E-6'
1373+
- name: cacheReadInputTokens
1374+
price: '8.0E-8'
1375+
- name: cacheWriteInputTokens
1376+
price: '1.0E-6'
1377+
- name: bedrock/us.anthropic.claude-3-5-sonnet-20241022-v2:0
1378+
units:
1379+
- name: inputTokens
1380+
price: '3.0E-6'
1381+
- name: outputTokens
1382+
price: '1.5E-5'
1383+
- name: cacheReadInputTokens
1384+
price: '3.0E-7'
1385+
- name: cacheWriteInputTokens
1386+
price: '3.75E-6'
1387+
- name: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
1388+
units:
1389+
- name: inputTokens
1390+
price: '3.0E-6'
1391+
- name: outputTokens
1392+
price: '1.5E-5'
1393+
- name: cacheReadInputTokens
1394+
price: '3.0E-7'
1395+
- name: cacheWriteInputTokens
1396+
price: '3.75E-6'
1397+
- name: bedrock/us.anthropic.claude-sonnet-4-20250514-v1:0
1398+
units:
1399+
- name: inputTokens
1400+
price: '3.0E-6'
1401+
- name: outputTokens
1402+
price: '1.5E-5'
1403+
- name: cacheReadInputTokens
1404+
price: '3.0E-7'
1405+
- name: cacheWriteInputTokens
1406+
price: '3.75E-6'
1407+
- name: bedrock/us.anthropic.claude-sonnet-4-20250514-v1:0:1m
1408+
units:
1409+
- name: inputTokens
1410+
price: '6.0E-6'
1411+
- name: outputTokens
1412+
price: '2.25E-5'
1413+
- name: cacheReadInputTokens
1414+
price: '6.0E-7'
1415+
- name: cacheWriteInputTokens
1416+
price: '7.5E-6'
1417+
- name: bedrock/us.anthropic.claude-opus-4-20250514-v1:0
1418+
units:
1419+
- name: inputTokens
1420+
price: '1.5E-5'
1421+
- name: outputTokens
1422+
price: '7.5E-5'
1423+
- name: cacheReadInputTokens
1424+
price: '1.5E-6'
1425+
- name: cacheWriteInputTokens
1426+
price: '1.875E-5'
1427+
- name: bedrock/us.anthropic.claude-opus-4-1-20250805-v1:0
1428+
units:
1429+
- name: inputTokens
1430+
price: '1.5E-5'
1431+
- name: outputTokens
1432+
price: '7.5E-5'
1433+
- name: cacheReadInputTokens
1434+
price: '1.5E-6'
1435+
- name: cacheWriteInputTokens
1436+
price: '1.875E-5'
1437+
# AWS Lambda pricing (US East - N. Virginia)
1438+
- name: lambda/requests
1439+
units:
1440+
- name: invocations
1441+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
1442+
- name: lambda/duration
1443+
units:
1444+
- name: gb_seconds
1445+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)

config_library/pattern-2/rvl-cdip-package-sample/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,15 @@ pricing:
930930
price: '1.5E-6'
931931
- name: cacheWriteInputTokens
932932
price: '1.875E-5'
933+
# AWS Lambda pricing (US East - N. Virginia)
934+
- name: lambda/requests
935+
units:
936+
- name: invocations
937+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
938+
- name: lambda/duration
939+
units:
940+
- name: gb_seconds
941+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
933942
discovery:
934943
output_format:
935944
sample_json: |-

config_library/pattern-3/rvl-cdip-package-sample/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,15 @@ pricing:
789789
price: '1.5E-6'
790790
- name: cacheWriteInputTokens
791791
price: '1.875E-5'
792+
# AWS Lambda pricing (US East - N. Virginia)
793+
- name: lambda/requests
794+
units:
795+
- name: invocations
796+
price: '2.0E-7' # $0.0000002 per request ($0.20 per 1M requests)
797+
- name: lambda/duration
798+
units:
799+
- name: gb_seconds
800+
price: '1.66667E-5' # $0.0000166667 per GB-second ($16.67 per 1M GB-seconds)
792801
discovery:
793802
output_format:
794803
sample_json: |-

images/IDP-Pattern1-BDA.drawio.png

3.67 KB
Loading

0 commit comments

Comments
 (0)