-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates new page detailing Bedrock connector setup
- Loading branch information
1 parent
0d835e1
commit e71f466
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
[[assistant-connect-to-bedrock]] | ||
= Connect Elastic AI Assistant to Amazon Bedrock | ||
|
||
This page provides step-by-step instructions for connecting AI Assistant to an Amazon Bedrock large language model (LLM) for the first time. You'll need to configure AWS, then connect AI Assistant to your chosen model. | ||
|
||
NOTE: Only Amazon Bedrock's `Anthropic` models are supported: `Claude` and `Claude instant`. | ||
|
||
|
||
[discrete] | ||
== Configure AWS | ||
|
||
[discrete] | ||
=== Configure an IAM policy | ||
|
||
. Log into the AWS console and search for Identity and Access Management (IAM). | ||
. From the **IAM** menu, select **Policies**, then click **Create policy**. | ||
. To provide the necessary permissions, paste the following JSON into the **Specify permissions** menu. | ||
+ | ||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "VisualEditor0", | ||
"Effect": "Allow", | ||
"Action": [ | ||
"bedrock:InvokeModel", | ||
"bedrock:InvokeModelWithResponseStream" | ||
], | ||
"Resource": "*" | ||
} | ||
] | ||
} | ||
``` | ||
+ | ||
NOTE: These are the minimum required permissions. IAM policies with additional permissions are also supported. | ||
+ | ||
. Click **Next**. Name your policy. | ||
|
||
[discrete] | ||
=== Configure an IAM User | ||
|
||
. Return to the **IAM** menu. Select **Users** from the navigation menu, then click **Create User**. | ||
. Name the user, then click **Next**. | ||
. Select **Attach policies directly**. | ||
. In the **Permissions policies** field, search for the policy you created earlier, select it, and click **Next**. | ||
. Review the configuration then click **Create user**. | ||
|
||
[discrete] | ||
=== Create an access key | ||
|
||
. Return to the **IAM** menu. Select **Users** from the navigation menu. | ||
. Search for the user you just created, and click it's name. | ||
. Go to the **Security credentials** tab. | ||
. Under **Access keys**, click **Create access key**. | ||
. Select **Third-party service**, check the box under **Confirmation**, click **Next**, then click **Create access key**. | ||
. Click **Download .csv file**, to download the key. Store it securely. | ||
|
||
[discrete] | ||
=== Enable model access | ||
|
||
. Search the AWS console for Amazon Bedrock. | ||
. From the Amazon Bedrock page, click **Get started**. | ||
. Select **Model access** from the left navigation menu, then click **Manage model access**. | ||
. Check the boxes for **Claude** and **Claude Instant**, depending which model or models you plan to use. | ||
. Click **Save changes**. | ||
|
||
[discrete] | ||
== Configure Elastic AI Assistant | ||
|
||
. Log in to {kib}. | ||
. Go to **Stack Management > Connectors > Create connector > Amazon Bedrock**. | ||
. Name your connector. | ||
. (Optional) Add one of the following strings if you want to use a model other than the default: | ||
.. For Haiku: `anthropic.claude-3-haiku-20240307-v1:0` | ||
.. For Sonnet: `anthropic.claude-3-sonnet-20240229-v1:0` | ||
.. For Opus: `anthropic.claude-3-opus-20240229-v1:0` | ||
. Enter the **Access Key** and **Secret** that you generated earlier, then click **Save**. | ||
|
||
Your model is now configured. For more information on using Elastic AI Assistant, refer to <<security-assistant, AI Assistant>>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters