h2oGPT integration
H2O Driverless AI features integration with h2oGPT that lets you optionally generate and view dataset or experiment results summaries using a GPT model. These options let you easily explain the results of complex experiments and datasets and help you share the insights and implications of your experiments and data in a more convenient manner.
Note: For information about H2O.ai’s enterprise generative AI solution, see the Enterprise h2oGPTe documentation and Enterprise h2oGPTe on H2O.ai’s Platform.
The following sections describe how to enable and use GPT-related options in H2O Driverless AI:
Description of relevant configuration options
The following are descriptions of the relevant configuration options when enabling h2oGPT integration.
enable_gpt
: Specifies whether to enable GPT functionality. By default, this option is set toFalse
. (Note: If theopenai_api_secret_key
configuration option is provided, then the OpenAI API is used.)h2ogpt_url
: Specifies your h2oGPT endpoint. For some h2oGPT URLs, you must also set theh2ogpt_key
configuration option to enable authorized access for GPT-related tasks. (Optional: OpenAI can also be used by setting theopenai_api_secret_key
configuration option.)h2ogpt_key
: Specifies an h2oGPT key. For some h2oGPT URLs, this key is required to enable authorized access for GPT-related tasks.h2ogpt_model_name
: Specifies a model to use based on its name from the list provided by the h2oGPT client. If the provided name doesn’t match any available model, the first model in the list is used by default.openai_api_secret_key
: Specifies your OpenAI API key to use OpenAI models instead of h2oGPT. When this is set, GPT functionality is automatically enabled.openai_api_model
: (Required when using OpenAI) Specifies the OpenAI model to use. By default, this option is set togpt-4
. If you don’t have access to this model, you’ll need to specify a different model that your account has access to.
备注
Configuration requirements for using OpenAI:
Set both
openai_api_secret_key
andopenai_api_model
.The model name must exactly match an available model in your OpenAI account.
警告
If you specify a model that your OpenAI account does not have access to, you may receive the following error:
Error code: 404 - {"error":{"message":"The model 'gpt-4' does not exist or you do not have access to it."}}
GPT summaries
The following subsections describe how to generate and view summaries for datasets and experiment results.
Summarize datasets
Ensure that GPT functionality is enabled by setting
enable_gpt=true
.For h2oGPT: Configure
h2ogpt_url
(andh2ogpt_key
if required)For OpenAI: Configure both
openai_api_secret_key
andopenai_api_model
Ensure that the relevant configuration options have been set correctly. For more information, see Description of relevant configuration options.
In the main navigation, click Datasets to go to the Datasets page.
Click Click for Actions next to the dataset you want to summarize.
From the list of options, select Summarize.
Summarize experiment results
Ensure that GPT functionality is enabled by setting
enable_gpt=true
.Ensure that the relevant configuration options have been set correctly. For more information, see Description of relevant configuration options.
In the main navigation, click Experiments to go to the Experiments page.
For the completed experiment you want to summarize, click Extra > Summarize from the list of experiment options.