This pull request enhances the functionality of the BedrockEmbeddings class by adding an optional config argument as a botocore.config.Config to give more possible configuration for the boto3 client, in the same way as how it is done on the class ChatBedrock.
Description
This pull request enhances the functionality of the
BedrockEmbeddings
class by adding an optionalconfig
argument as abotocore.config.Config
to give more possible configuration for the boto3 client, in the same way as how it is done on the classChatBedrock
.Here an example answer before the change:
And now after the change:
Change
config
parameter to the classBedrockEmbeddings
Motivation
This change will allow user to configure
BedrockEmbeddings
the same way asChatBedrock
.Additional Notes
This change maintains backwards compatibility with existing usage.