AWS Bedrock Models

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-parser
  • For other models, use the following command:

npm install aws-sdk

Requesting Model Access

  1. Sign into the AWS Console and select the Amazon Bedrock Service.

  2. Next, select Model access, and then click on Manage model access.

  3. Request access to Text-based models, such as Anthropic Claude.

Steps

  1. Sign into the AWS Console and select the Identity and Access Management (IAM) Service.

  2. Then, select Users under Access management.

  3. Locate or create a user that is authorized to access Amazon Bedrock.

  4. Under the user’s Security credentials area, find Access keys, and create a new Access Key.

  5. 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" } }