-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gemini connector integration (#183668)
- Loading branch information
Showing
54 changed files
with
3,353 additions
and
28 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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,74 @@ | ||
[[gemini-action-type]] | ||
== {gemini} connector and action | ||
++++ | ||
<titleabbrev>{gemini}</titleabbrev> | ||
++++ | ||
:frontmatter-description: Add a connector that can send requests to {gemini}. | ||
:frontmatter-tags-products: [kibana] | ||
:frontmatter-tags-content-type: [how-to] | ||
:frontmatter-tags-user-goals: [configure] | ||
|
||
|
||
The {gemini} connector uses https://github.com/axios/axios[axios] to send a POST request to {gemini}. The connector uses the <<execute-connector-api,run connector API>> to send the request. | ||
|
||
[float] | ||
[[define-gemini-ui]] | ||
=== Create connectors in {kib} | ||
|
||
You can create connectors in *{stack-manage-app} > {connectors-ui}*. For example: | ||
|
||
[role="screenshot"] | ||
image::management/connectors/images/gemini-connector.png[{gemini} connector] | ||
// NOTE: This is an autogenerated screenshot. Do not edit it directly. | ||
|
||
[float] | ||
[[gemini-connector-configuration]] | ||
==== Connector configuration | ||
|
||
{gemini} connectors have the following configuration properties: | ||
|
||
Name:: The name of the connector. | ||
API URL:: The {gemini} request URL. | ||
PROJECT ID:: The project which has Vertex AI endpoint enabled. | ||
Region:: The GCP region where the Vertex AI endpoint enabled. | ||
Default model:: The GAI model for {gemini} to use. Current support is for the Google Gemini models, defaulting to gemini-1.5-pro-preview-0409. The model can be set on a per request basis by including a "model" parameter alongside the request body. | ||
Credentials JSON:: The GCP service account JSON file for authentication. | ||
|
||
[float] | ||
[[gemini-action-configuration]] | ||
=== Test connectors | ||
|
||
You can test connectors with the <<execute-connector-api,run connector API>> or | ||
as you're creating or editing the connector in {kib}. For example: | ||
|
||
[role="screenshot"] | ||
image::management/connectors/images/gemini-params.png[{gemini} params test] | ||
// NOTE: This is an autogenerated screenshot. Do not edit it directly. | ||
|
||
The {gemini} actions have the following configuration properties. | ||
|
||
Body:: A stringified JSON payload sent to the {gemini} Invoke Model API URL. For example: | ||
+ | ||
[source,text] | ||
-- | ||
|
||
{ | ||
body: JSON.stringify({ | ||
contents: [{ | ||
role: user, | ||
parts: [{ text: 'Write the first line of a story about a magic backpack.' }] | ||
}], | ||
generation_config: { | ||
temperature: 0, | ||
maxOutputTokens: 8192 | ||
} | ||
}) | ||
} | ||
-- | ||
Model:: An optional string that will overwrite the connector's default model. For | ||
|
||
[float] | ||
[[gemini-connector-networking-configuration]] | ||
=== Connector networking configuration | ||
|
||
Use the <<action-settings, Action configuration settings>> to customize connector networking configurations, such as proxies, certificates, or TLS settings. You can set configurations that apply to all your connectors or use `xpack.actions.customHostSettings` to set per-host configurations. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Oops, something went wrong.