Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes modifications to the response handling utilities and the main entry point for the online lambda function. Additionally, it updates the requirements for the BCE embedding model.
The changes in
response_utils.py
aim to improve the formatting and structure of the responses sent from the online lambda function. The modifications inmain.py
andcommon_entry.py
are related to integrating the updated response utilities and ensuring consistent response handling across different entry points.The update to
requirements.txt
for the BCE embedding model ensures that the necessary dependencies are installed for the model to function correctly.Type of change
File Stats Summary
File number involved in this PR: 4, unfold to see the details:
The file changes summary is as follows:
format_intention_output
function and modify the condition for registering RAG tools to only consider the QD (Question Answering) index type.create_ddb_history_obj
function to create aDynamoDBChatMessageHistory
object.compose_connect_body
function to compose the body for Amazon Connect API requests.assemble_event_body
function to assemble the event body with relevant information.connect_case_event_handler
function to handle Amazon Connect case events.restapi_event_handler
function to handle Restful API requests.default_event_handler
function to handle default events (WebSocket API).lambda_handler
function to route events to appropriate handlers based on event source and stream status. |🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes changes to the online lambda function and the BCE embedding model. The modifications to the
response_utils.py
file aim to improve the handling of responses in the common logic module. The updates tomain.py
andcommon_entry.py
are related to enhancing the online entry processing and overall functionality of the lambda function. Additionally, therequirements.txt
file for the BCE embedding model has been updated to ensure the correct dependencies are installed.Type of change
File Stats Summary
File number involved in this PR: 4, unfold to see the details:
The file changes summary is as follows:
format_intention_output
function and modifying the condition in theregister_rag_tool_from_config
function to register RAG tools only for the QD (Question Answering) index type.assemble_event_body
to extract and generate event details from the original event body.create_ddb_history_obj
to create a DynamoDB chat message history object.connect_case_event_handler
,restapi_event_handler
, anddefault_event_handler
.