From 0a50217f110624fa7dd799d0582104c381ff7eda Mon Sep 17 00:00:00 2001 From: Luca Belluccini Date: Mon, 12 Aug 2024 21:06:59 +0200 Subject: [PATCH 1/4] AI Assistant Gemini AI --- docs/en/observability/observability-ai-assistant.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/observability/observability-ai-assistant.asciidoc b/docs/en/observability/observability-ai-assistant.asciidoc index 7ea143dca0..f3a811ae7e 100644 --- a/docs/en/observability/observability-ai-assistant.asciidoc +++ b/docs/en/observability/observability-ai-assistant.asciidoc @@ -39,6 +39,7 @@ The AI assistant requires the following: ** OpenAI `gpt-4`+. ** Azure OpenAI Service `gpt-4`(0613) or `gpt-4-32k`(0613) with API version `2023-07-01-preview` or more recent. ** AWS Bedrock, specifically the Anthropic Claude models. +** Google Gemini, with defaulting to `gemini-1.5-pro-001` * The knowledge base requires a 4 GB {ml} node. [IMPORTANT] From 997a13f9415e86deb27c4578fe5ab215f3ad8daa Mon Sep 17 00:00:00 2001 From: dedemorton Date: Tue, 13 Aug 2024 15:22:46 -0700 Subject: [PATCH 2/4] Add google gemini details --- .../observability/observability-ai-assistant.asciidoc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/en/observability/observability-ai-assistant.asciidoc b/docs/en/observability/observability-ai-assistant.asciidoc index f3a811ae7e..1c1e42f58a 100644 --- a/docs/en/observability/observability-ai-assistant.asciidoc +++ b/docs/en/observability/observability-ai-assistant.asciidoc @@ -13,6 +13,7 @@ The AI Assistant integrates with your large language model (LLM) provider throug * {kibana-ref}/openai-action-type.html[OpenAI connector] for OpenAI or Azure OpenAI Service. * {kibana-ref}/bedrock-action-type.html[Amazon Bedrock connector] for Amazon Bedrock, specifically for the Claude models. +* {kibana-ref}/gemini-action-type.html[Google Gemini connector] for Google Gemini. [IMPORTANT] ==== @@ -39,7 +40,7 @@ The AI assistant requires the following: ** OpenAI `gpt-4`+. ** Azure OpenAI Service `gpt-4`(0613) or `gpt-4-32k`(0613) with API version `2023-07-01-preview` or more recent. ** AWS Bedrock, specifically the Anthropic Claude models. -** Google Gemini, with defaulting to `gemini-1.5-pro-001` +** Google Gemini, with defaulting to `gemini-1.5-pro-001`. * The knowledge base requires a 4 GB {ml} node. [IMPORTANT] @@ -69,11 +70,15 @@ To set up the AI Assistant: * https://platform.openai.com/docs/api-reference[OpenAI API keys] * https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference[Azure OpenAI Service API keys] * https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html[Amazon Bedrock authentication keys and secrets] +* https://cloud.google.com/iam/docs/keys-list-get[Google Gemini service account keys] -. From *{stack-manage-app}* -> *{connectors-ui}* in {kib}, create an {kibana-ref}/openai-action-type.html[OpenAI] or {kibana-ref}/bedrock-action-type.html[Amazon Bedrock] connector. +. From *{stack-manage-app}* -> *{connectors-ui}* in {kib}, create an connector for your AI provider: +* {kibana-ref}/openai-action-type.html[OpenAI] +* {kibana-ref}/bedrock-action-type.html[Amazon Bedrock] +* {kibana-ref}/gemini-action-type.html[Google Gemini] . Authenticate communication between {observability} and the AI provider by providing the following information: .. In the *URL* field, enter the AI provider's API endpoint URL. -.. Under *Authentication*, enter the API key or access key/secret you created in the previous step. +.. Under *Authentication*, enter the key or secret you created in the previous step. [discrete] [[obs-ai-add-data]] From b74f501f1c5f43d22683dbf9e74daf5eaff3cce4 Mon Sep 17 00:00:00 2001 From: DeDe Morton Date: Tue, 20 Aug 2024 10:13:36 -0700 Subject: [PATCH 3/4] Specify supported models of Gemini --- docs/en/observability/observability-ai-assistant.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/observability/observability-ai-assistant.asciidoc b/docs/en/observability/observability-ai-assistant.asciidoc index 1c1e42f58a..371d83c4b1 100644 --- a/docs/en/observability/observability-ai-assistant.asciidoc +++ b/docs/en/observability/observability-ai-assistant.asciidoc @@ -40,7 +40,7 @@ The AI assistant requires the following: ** OpenAI `gpt-4`+. ** Azure OpenAI Service `gpt-4`(0613) or `gpt-4-32k`(0613) with API version `2023-07-01-preview` or more recent. ** AWS Bedrock, specifically the Anthropic Claude models. -** Google Gemini, with defaulting to `gemini-1.5-pro-001`. +** Google Gemini `gemini-1.5-pro-preview-0409` or `gemini-1.5-flash-001`, with defaulting to `gemini-1.5-pro-001`. * The knowledge base requires a 4 GB {ml} node. [IMPORTANT] From 3c7d515ef2d115d11c93ba8baf178c9c77b810ae Mon Sep 17 00:00:00 2001 From: dedemorton Date: Thu, 22 Aug 2024 10:44:33 -0700 Subject: [PATCH 4/4] Apply changes from review --- .../observability/observability-ai-assistant.asciidoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/observability/observability-ai-assistant.asciidoc b/docs/en/observability/observability-ai-assistant.asciidoc index 371d83c4b1..b8aa864361 100644 --- a/docs/en/observability/observability-ai-assistant.asciidoc +++ b/docs/en/observability/observability-ai-assistant.asciidoc @@ -36,11 +36,11 @@ The AI assistant requires the following: * {stack} version 8.9 and later. * An https://www.elastic.co/pricing[Enterprise subscription]. -* An account with a third-party generative AI provider that supports function calling. The Observability AI Assistant supports the following providers: -** OpenAI `gpt-4`+. -** Azure OpenAI Service `gpt-4`(0613) or `gpt-4-32k`(0613) with API version `2023-07-01-preview` or more recent. -** AWS Bedrock, specifically the Anthropic Claude models. -** Google Gemini `gemini-1.5-pro-preview-0409` or `gemini-1.5-flash-001`, with defaulting to `gemini-1.5-pro-001`. +* An account with a third-party generative AI provider that preferably supports function calling. +If your AI provider does not support function calling, you can configure AI Assistant settings under **Stack Management** to simulate function calling, but this might affect performance. ++ +Refer to the {kibana-ref}/action-types.html[connector documentation] for your provider to learn about supported and default models. + * The knowledge base requires a 4 GB {ml} node. [IMPORTANT]