From afcc9c0dcdb696b3816b9fb0149a948b8f0bbabb Mon Sep 17 00:00:00 2001 From: Luca Belluccini Date: Fri, 18 Oct 2024 23:53:39 +0200 Subject: [PATCH] O11y AI Assistant - Google Gemini support (#4143) * AI Assistant Gemini AI * Add google gemini details * Specify supported models of Gemini * Apply changes from review --------- Co-authored-by: dedemorton (cherry picked from commit 41438555eb6023b6bd7b0f347e674bf3c4e19349) # Conflicts: # docs/en/observability/observability-ai-assistant.asciidoc --- .../observability-ai-assistant.asciidoc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/en/observability/observability-ai-assistant.asciidoc b/docs/en/observability/observability-ai-assistant.asciidoc index acc2a8a5b2..a2058c1969 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] ==== @@ -35,11 +36,19 @@ The AI assistant requires the following: * {stack} version 8.9 and later. * An https://www.elastic.co/pricing[Enterprise subscription]. +<<<<<<< HEAD * 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. * An {enterprise-search-ref}/server.html[Enterprise Search] server if {ref}/es-connectors.html[search connectors] are used to populate external data into the knowledge base. +======= +* 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. + +>>>>>>> 41438555 (O11y AI Assistant - Google Gemini support (#4143)) * The knowledge base requires a 4 GB {ml} node. [IMPORTANT] @@ -78,11 +87,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]]