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 various files related to the infrastructure, configuration, and job execution components of the project. The changes aim to enhance the existing functionality and address potential issues.
The modifications include updates to the configuration files (
config.ts
,magic-config.ts
), knowledge base stack (knowledge-base-stack.ts
), shared types (types.ts
), and the Glue job script (glue-job-script.py
). Additionally, there are updates to the shell script (build_whl.sh
) and Python module (sm_utils.py
) used in the Lambda job execution.One notable change is the error reported for the
llm_bot_dep-0.1.0-py3-none-any.whl
file, which may require further investigation and resolution.Type of change
File Stats Summary
File number involved in this PR: 7, unfold to see the details:
The file changes summary is as follows:
--CROSS_ACCOUNT_BEDROCK_KEY
to the KnowledgeBaseStack, which is likely used for cross-account access to Bedrock resources.os
module and theClientError
exception frombotocore.exceptions
, setting up an AWS session and secret manager client, adding a functionget_secret_value
to retrieve secret values from AWS Secrets Manager, and adding an optional parameterbedrock_api_key_arn
to thegetCustomEmbeddings
function.