Skip to content

Commit f454612

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.7.17
2 parents 1127d8a + 446d634 commit f454612

File tree

8 files changed

+126
-91
lines changed

8 files changed

+126
-91
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.7.17] - 2025-09-18
11+
12+
### Fixed
13+
- Store JSON output produced by GenAI as sub-node below the Summary node #326
14+
- misc dependabot PRs
15+
16+
1017
## [0.7.16] - 2025-07-07
1118

1219
### Fixed
@@ -324,6 +331,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
324331
- Initial release
325332

326333
[Unreleased]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/compare/main...develop
334+
[0.7.17]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.17
327335
[0.7.16]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.16
328336
[0.7.15]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.15
329337
[0.7.14]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.7.14

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.16
1+
0.7.17

pca-main-nokendra.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.16) (uksb-1sn29lk73, SO9071)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.17) (uksb-1sn29lk73, SO9071)
44

55
Parameters:
66

pca-main.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.16) (uksb-1sn29lk73, SO9071)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.7.17) (uksb-1sn29lk73, SO9071)
44

55
Parameters:
66

pca-server/src/pca/pca-aws-sf-summarize.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,22 @@ def generate_bedrock_summary(transcript, api_mode):
185185
else:
186186
prompt = prompt.replace("{transcript}", transcript)
187187
generated_text = call_bedrock(prompt, 0, MAX_TOKENS)
188-
result[key] = generated_text
188+
189+
# Quick validation before attempting JSON parse
190+
stripped_text = generated_text.strip()
191+
if (stripped_text.startswith('{') and stripped_text.endswith('}')) or \
192+
(stripped_text.startswith('[') and stripped_text.endswith(']')):
193+
try:
194+
parsed_json = json.loads(generated_text)
195+
result[key] = parsed_json
196+
print("Parsed JSON response for key:", key)
197+
except json.JSONDecodeError:
198+
result[key] = generated_text
199+
print("Invalid JSON, stored as string for key:", key)
200+
else:
201+
result[key] = generated_text
202+
print("Not JSON format, stored as string for key:", key)
203+
189204
if len(result.keys()) == 1:
190205
# This is a single node JSON with value that can be either:
191206
# A single inference that returns a string value

pca-ui/src/www/package-lock.json

Lines changed: 84 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pca-ui/src/www/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"aws-sdk": "^2.1620.0",
77
"@cloudscape-design/components": "^3.0.293",
88
"@cloudscape-design/global-styles": "^1.0.9",
9-
"axios": "^1.8.2",
9+
"axios": "^1.12.0",
1010
"bootstrap": "5.1.1",
1111
"chart.js": "^3.5.1",
1212
"luxon": "^2.5.2",

0 commit comments

Comments
 (0)