AWS Bedrock Models
See Model Configuration for a full list of available model properties.
Overview
Use the procedure outlined below to configure and use AWS Bedrock models within Profound AI.
Requirements
Prior to using models from AWS Bedrock, you must install the AWS SDK within your Profound AI installation.
For Anthropic models, use the commands below:
npm install @anthropic-ai/bedrock-sdk
npm install fast-xml-parserFor other models, use the following command:
npm install aws-sdkRequesting Model Access
Sign into the AWS Console and select the Amazon Bedrock Service.
Next, select Model access, and then click on Manage model access.
Request access to Text-based models, such as Anthropic Claude.
Steps
Sign into the AWS Console and select the Identity and Access Management (IAM) Service.
Then, select Users under Access management.
Locate or create a user that is authorized to access Amazon Bedrock.
Under the user’s Security credentials area, find Access keys, and create a new Access Key.
Place the Access Key Id and the Secret Access Key into your model configuration.
Example
The example below shows a sample configuration for the anthropic.claude-v2:1 AWS model:
models: {
"AWS Bedrock - Claude 2": {
provider: "anthropic",
cloud: "aws",
model: "anthropic.claude-v2:1",
awsAccessKey: "......",
awsSecretKey: "......",
awsRegion: "us-west-2"
}
}