Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summary: avoid actions summary if there no action #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions case-summarization/deploy/case-summarization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Resources:
description="Focus on the main elements of the conversation and highlight the proposed solutions. If no specific solution, skip this section."
)
actions: str = Field(
description="Finish off with any action items or next steps highlighting ownership of actions or next steps."
description="Finish off with any action items or next steps highlighting ownership of actions or next steps. If none, skip this section."
)
references: list[str] = Field(
description=(
Expand Down Expand Up @@ -313,7 +313,7 @@ Resources:

logger.info("support case summarization starting")
model_id = get_model_id()

llm_program = get_llm_program(communications, model_id)
try:
case_data_content['Summary'] = llm_program().model_dump_json()
Expand Down Expand Up @@ -445,7 +445,7 @@ Resources:
QueueEventSourceMapping:
Type: AWS::Lambda::EventSourceMapping
Properties:
BatchSize: !Ref BatchSize # Process N messages at a time to avoid Bedrock Tootling
BatchSize: !Ref BatchSize # Process N messages at a time to avoid Bedrock Throttling
Enabled: true
EventSourceArn: !GetAtt SummarizationQueue.Arn
FunctionName: !Ref SummarizationLambda
Loading