From e71f466db6b7b4943835c9810a01d33524e2ab60 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Tue, 30 Apr 2024 13:28:50 -0700 Subject: [PATCH 01/18] Creates new page detailing Bedrock connector setup --- docs/assistant/connect-to-bedrock.asciidoc | 80 ++++++++++++++++++++++ docs/assistant/security-assistant.asciidoc | 1 + 2 files changed, 81 insertions(+) create mode 100644 docs/assistant/connect-to-bedrock.asciidoc diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc new file mode 100644 index 0000000000..9f26eb99fe --- /dev/null +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -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 <>. \ No newline at end of file diff --git a/docs/assistant/security-assistant.asciidoc b/docs/assistant/security-assistant.asciidoc index 3b5c562f6f..61697eb4a7 100644 --- a/docs/assistant/security-assistant.asciidoc +++ b/docs/assistant/security-assistant.asciidoc @@ -223,3 +223,4 @@ In addition to practical advice, AI Assistant can offer conceptual advice, tips, include::ai-alert-triage.asciidoc[leveloffset=+1] +include::connect-to-bedrock.asciidoc[leveloffset=+1] \ No newline at end of file From c4b9b3cc9c48acd9c795a8bd44ce0478b1632b8b Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Wed, 1 May 2024 06:35:59 -0700 Subject: [PATCH 02/18] Update docs/assistant/connect-to-bedrock.asciidoc Co-authored-by: Joe Peeples --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 9f26eb99fe..1b73abdea3 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -13,7 +13,7 @@ NOTE: Only Amazon Bedrock's `Anthropic` models are supported: `Claude` and `Clau === 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**. +. From the **IAM** menu, select **Policies** → **Create policy**. . To provide the necessary permissions, paste the following JSON into the **Specify permissions** menu. + ```json From b71da36175562fb280f69e49eb4c02a45c5aacf6 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Wed, 1 May 2024 06:36:04 -0700 Subject: [PATCH 03/18] Update docs/assistant/connect-to-bedrock.asciidoc Co-authored-by: Joe Peeples --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 1b73abdea3..2868c93c23 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -50,7 +50,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p === 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. +. Search for the user you just created, and click its 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**. From 3b94a1d37379e5d6fbb72addc9f5af81eec26a1f Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Wed, 1 May 2024 06:36:15 -0700 Subject: [PATCH 04/18] Update docs/assistant/connect-to-bedrock.asciidoc Co-authored-by: Joe Peeples --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 2868c93c23..7655ff13b2 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -54,7 +54,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p . 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. +. Click **Download .csv file** to download the key. Store it securely. [discrete] === Enable model access From ea1ab67fb074d3ac7716cd2a2be5083507ba58b3 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Wed, 1 May 2024 06:36:21 -0700 Subject: [PATCH 05/18] Update docs/assistant/connect-to-bedrock.asciidoc Co-authored-by: Joe Peeples --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 7655ff13b2..fece317184 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -69,7 +69,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p == Configure Elastic AI Assistant . Log in to {kib}. -. Go to **Stack Management > Connectors > Create connector > Amazon Bedrock**. +. 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` From 5e25812dcd1455bff83291c45818443dfd6c9eee Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Thu, 2 May 2024 10:23:11 -0700 Subject: [PATCH 06/18] adds information about provisioned throughput --- docs/assistant/connect-to-bedrock.asciidoc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index fece317184..c6afc5bc74 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -1,11 +1,10 @@ [[assistant-connect-to-bedrock]] -= Connect Elastic AI Assistant to Amazon Bedrock += Connect 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. +This page provides step-by-step instructions for setting up an Amazon Bedrock connector for the first time. This connector type enables you to leverage large language models (LLMs) within {kib}. You'll first need to configure AWS, then configure the connector in {kib}. NOTE: Only Amazon Bedrock's `Anthropic` models are supported: `Claude` and `Claude instant`. - [discrete] == Configure AWS @@ -71,10 +70,17 @@ NOTE: These are the minimum required permissions. IAM policies with additional p . Log in to {kib}. . Go to **Stack Management → Connectors → Create connector → Amazon Bedrock**. . Name your connector. +. (Optional) Configure the Amazon Bedrock connector to use a different AWS region where Anthropic models are supported by editing the **URL** field, for example by changing `us-east-1` to `eu-central-1`. . (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 <>. \ No newline at end of file +Your model is now configured. For more information on using Elastic AI Assistant, refer to <>. + +IMPORTANT: For customers using Provisioned Throughput, your ARN becomes the Model ID, and it must be be encoded for your Connector Settings URL to work. ++ +For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` ++ +The encoded ARN would be: `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1` From 9b7e0fc726501b42a27cdcd39bf69bd03d12a860 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Thu, 2 May 2024 10:27:54 -0700 Subject: [PATCH 07/18] sentence edits --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index c6afc5bc74..4a01bcc87f 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -79,7 +79,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p Your model is now configured. For more information on using Elastic AI Assistant, refer to <>. -IMPORTANT: For customers using Provisioned Throughput, your ARN becomes the Model ID, and it must be be encoded for your Connector Settings URL to work. +IMPORTANT: If you're using provisioned throughput, your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` + From 4c955297f7f0ae3a11c298c8a1555485bdcdcc56 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Thu, 2 May 2024 12:35:56 -0700 Subject: [PATCH 08/18] incorporates Charles' review --- docs/assistant/connect-to-bedrock.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 4a01bcc87f..34175ad451 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -61,7 +61,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p . 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. +. Check the boxes for **Claude** and/or **Claude Instant**, depending which model or models you plan to use. . Click **Save changes**. [discrete] @@ -79,7 +79,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p Your model is now configured. For more information on using Elastic AI Assistant, refer to <>. -IMPORTANT: If you're using provisioned throughput, your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. +IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` + From 51b629c1872646445f9268147f76f545f5a03e28 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Fri, 3 May 2024 07:24:18 -0700 Subject: [PATCH 09/18] adds context to each section --- docs/assistant/connect-to-bedrock.asciidoc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 34175ad451..7b6b339a97 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -11,6 +11,8 @@ NOTE: Only Amazon Bedrock's `Anthropic` models are supported: `Claude` and `Clau [discrete] === Configure an IAM policy +First, configure an IAM policy with the necessary permissions: + . Log into the AWS console and search for Identity and Access Management (IAM). . From the **IAM** menu, select **Policies** → **Create policy**. . To provide the necessary permissions, paste the following JSON into the **Specify permissions** menu. @@ -36,9 +38,14 @@ NOTE: These are the minimum required permissions. IAM policies with additional p + . Click **Next**. Name your policy. +To see a video of these steps, refer to the following video. + + [discrete] === Configure an IAM User +Next, assign the policy you just created to a new 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**. @@ -48,6 +55,8 @@ NOTE: These are the minimum required permissions. IAM policies with additional p [discrete] === Create an access key +Create the access keys that will authenticate your Elastic connector: + . Return to the **IAM** menu. Select **Users** from the navigation menu. . Search for the user you just created, and click its name. . Go to the **Security credentials** tab. @@ -58,6 +67,8 @@ NOTE: These are the minimum required permissions. IAM policies with additional p [discrete] === Enable model access +Make sure the supported Amazon Bedrock LLMs are enabled: + . 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**. @@ -67,6 +78,8 @@ NOTE: These are the minimum required permissions. IAM policies with additional p [discrete] == Configure Elastic AI Assistant +Finally, configure the connector in {kib}: + . Log in to {kib}. . Go to **Stack Management → Connectors → Create connector → Amazon Bedrock**. . Name your connector. @@ -77,7 +90,7 @@ NOTE: These are the minimum required permissions. IAM policies with additional p .. 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 <>. +Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + From 21e5c2af33673f53db9df8c250c476f67c986bf6 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Fri, 3 May 2024 08:11:44 -0700 Subject: [PATCH 10/18] adds video embeds --- docs/assistant/connect-to-bedrock.asciidoc | 86 +++++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 7b6b339a97..ee6421a2e0 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -38,7 +38,22 @@ NOTE: These are the minimum required permissions. IAM policies with additional p + . Click **Next**. Name your policy. -To see a video of these steps, refer to the following video. +The following video demonstrates these steps. + +======= +++++ + + +
+++++ +======= [discrete] @@ -52,6 +67,23 @@ Next, assign the policy you just created to a new user: . In the **Permissions policies** field, search for the policy you created earlier, select it, and click **Next**. . Review the configuration then click **Create user**. +The following video demonstrates these steps. + +======= +++++ + + +
+++++ +======= + [discrete] === Create an access key @@ -64,6 +96,23 @@ Create the access keys that will authenticate your Elastic connector: . 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. +The following video demonstrates these steps. + +======= +++++ + + +
+++++ +======= + [discrete] === Enable model access @@ -75,6 +124,23 @@ Make sure the supported Amazon Bedrock LLMs are enabled: . Check the boxes for **Claude** and/or **Claude Instant**, depending which model or models you plan to use. . Click **Save changes**. +The following video demonstrates these steps. + +======= +++++ + + +
+++++ +======= + [discrete] == Configure Elastic AI Assistant @@ -97,3 +163,21 @@ IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/ For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` + The encoded ARN would be: `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1` + + +The following video demonstrates these steps. + +======= +++++ + + +
+++++ +======= \ No newline at end of file From 5e5afcdfc1c679dddf3c6b5d07b02c62bbeabbc9 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Fri, 3 May 2024 08:47:10 -0700 Subject: [PATCH 11/18] Update docs/assistant/connect-to-bedrock.asciidoc --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index ee6421a2e0..00a9bb8017 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -155,7 +155,7 @@ Finally, configure the connector in {kib}: .. 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 LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. From 66b50d3eef5cf1ce9c46c938b734b54f9fc36885 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Fri, 3 May 2024 08:47:24 -0700 Subject: [PATCH 12/18] Update docs/assistant/connect-to-bedrock.asciidoc --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 00a9bb8017..24bbbec25f 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -157,7 +157,7 @@ Finally, configure the connector in {kib}: . Enter the **Access Key** and **Secret** that you generated earlier, then click **Save**. + Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. - ++ IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` From 750f6dd2ec7716a2fa82ed4cd40b67a4f5c59edd Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Fri, 3 May 2024 09:11:26 -0700 Subject: [PATCH 13/18] Update docs/assistant/connect-to-bedrock.asciidoc --- docs/assistant/connect-to-bedrock.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 24bbbec25f..f85c794ddc 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -157,7 +157,6 @@ Finally, configure the connector in {kib}: . Enter the **Access Key** and **Secret** that you generated earlier, then click **Save**. + Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. -+ IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` From d27cabbf945216ba84902bbbf5327e21f89e2be6 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Fri, 3 May 2024 09:11:45 -0700 Subject: [PATCH 14/18] Update docs/assistant/connect-to-bedrock.asciidoc --- docs/assistant/connect-to-bedrock.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index f85c794ddc..00a9bb8017 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -157,6 +157,7 @@ Finally, configure the connector in {kib}: . Enter the **Access Key** and **Secret** that you generated earlier, then click **Save**. + Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. + IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` From 65341c704d14fb9b8ff0b65f3b435ff9277748da Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Fri, 3 May 2024 09:16:19 -0700 Subject: [PATCH 15/18] minor format fix --- docs/assistant/connect-to-bedrock.asciidoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 00a9bb8017..0d1f0e9b32 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -160,9 +160,7 @@ Your LLM connector is now configured. For more information on using Elastic AI A IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. + -For example, if the non-encoded ARN is: `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1` -+ -The encoded ARN would be: `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1` +For example, if the non-encoded ARN is `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1`, the encoded ARN would be `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1`. The following video demonstrates these steps. From 567ecbaf8a5ac1c930d196effec862244b80cabc Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Fri, 3 May 2024 10:22:44 -0700 Subject: [PATCH 16/18] update heading --- docs/assistant/connect-to-bedrock.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 0d1f0e9b32..9685181ab0 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -142,7 +142,7 @@ The following video demonstrates these steps. ======= [discrete] -== Configure Elastic AI Assistant +== Configure the Amazon Bedrock connector Finally, configure the connector in {kib}: From afd2aafb7dcad651269e4c8cf50ded87af14d457 Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com> Date: Fri, 3 May 2024 12:01:58 -0700 Subject: [PATCH 17/18] Update docs/assistant/connect-to-bedrock.asciidoc --- docs/assistant/connect-to-bedrock.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 9685181ab0..2ddfc36dc6 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -159,7 +159,6 @@ Finally, configure the connector in {kib}: Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. -+ For example, if the non-encoded ARN is `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1`, the encoded ARN would be `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1`. From 54504709b5955e7d92993a26b8f318c7d6fffdde Mon Sep 17 00:00:00 2001 From: Benjamin Ironside Goldstein Date: Fri, 3 May 2024 12:04:03 -0700 Subject: [PATCH 18/18] Formatting fix --- docs/assistant/connect-to-bedrock.asciidoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/assistant/connect-to-bedrock.asciidoc b/docs/assistant/connect-to-bedrock.asciidoc index 2ddfc36dc6..39ac30180d 100644 --- a/docs/assistant/connect-to-bedrock.asciidoc +++ b/docs/assistant/connect-to-bedrock.asciidoc @@ -158,8 +158,7 @@ Finally, configure the connector in {kib}: + Your LLM connector is now configured. For more information on using Elastic AI Assistant, refer to <>. -IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. -For example, if the non-encoded ARN is `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1`, the encoded ARN would be `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1`. +IMPORTANT: If you're using https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html[provisioned throughput], your ARN becomes the model ID, and the connector settings **URL** value must be https://www.urlencoder.org/[encoded] to work. For example, if the non-encoded ARN is `arn:aws:bedrock:us-east-2:123456789102:provisioned-model/3Ztr7hbzmkrqy1`, the encoded ARN would be `arn%3Aaws%3Abedrock%3Aus-east-2%3A123456789102%3Aprovisioned-model%2F3Ztr7hbzmkrqy1`. The following video demonstrates these steps.