Skip to main content Skip to complementary content

Creating a Google AI - Gemini connection

To communicate with generative AI models from Google, create a connection to the Google AI - Gemini analytics source. Create the connection in the Create page of the Analytics activity center, Data load editor, or Script.

Data received from these connections can be used in the load script and in chart expressions to enhance your Qlik Sense analytics apps.

Configurable settings

For full details about configuring externally controlled parameters, see the Gemini API documentation for text generation models:

Configurable settings in the connection dialog
Field Description and options
Model ID

Enter the ID of the model you want to use. This can be found on Google AI Studio.

Google AI API Key

Enter the API key generated by Google. This can be found on Google AI Studio.

System Prompt Optional parameter. This is a text field in which you can insert contextual information and additional guidelines that you want the provide to the model before you provide it with the prompt. For more information, refer to the official Converse API documentation.
Maximum Token Count Set the length of the response generated by the model.
Temperature

Control the randomness of the response from the model.

For more information, see:

Top P

Configure token probability.

For more information, see:

Top K

Configure how many tokens can be used during content generation.

Configuration - Safety Settings

Configure whether you want to apply safety controls on content.

See Safety settings.

Association Field

Specify an association field, a field from the input data table containing a unique identifier.

It is required to include this field in the source data when making an endpoint request for the results table returned to be associated with the source field table using a key. The designated field will be returned as a field in the response and enable the response to be associated with the source data in the data model. This can be any field with a unique ID, either from the source data or as part of the table load process.

Name The name of the connection. The default name is used if you do not enter a name.

Creating a new connection

You can create a connection to the analytic connector from the Analytics activity center, from Data load editor in an existing app, or from Script in an existing script. Follow the steps below to create a connection.

  1. Access the connector through Data load editor or Script.

  2. Click Create new connection.

  3. Under Space, select the space where the connection will be located.

  4. Select Google AI - Gemini from the list of data connectors.

  5. Fill out the connection dialog fields.

  6. Click Create.

The data connection is saved to the space where the app is created, so it can be reused in other Qlik Sense apps and scripts. It is also listed under Data connections in Data load editor or Script.

Once you have created the connection, you can use it to load data with the requests and the platform's responses to them. Additionally, you can use it in chart expressions. For more information, see:

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!