Creating an Amazon Titan (Amazon Bedrock) connection
To communicate with Amazon Titan, create a connection to the Amazon Titan (Amazon Bedrock) 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.
Configurations and configurable settings
Set up your analytic connection with one of the configurations listed below.
See the Amazon Bedrock documentation for more information about the parameters: Amazon Titan models
Amazon - Titan Text G1
The Amazon - Titan Text G1 - Express configuration provides access to models returning completions in a natural language format.
Field | Description |
---|---|
Select Configuration | Under Configuration, select Amazon - Titan Text G1. |
Titan Model |
Select a model to use to generate the responses. You can use the following models:
|
AWS Region | Choose the appropriate geographical region where the AWS resources are hosted. |
Use FIPS Endpoint (US Regions Only) | Select whether communication between the connection and AWS uses encryption compliant with some version of the Federal Information Processing Standard (FIPS). |
AWS Access Key |
Enter the AWS Access Key ID, which is one part of the access key pair (the other being the secret key) that you will need to provide as credentials to authenticate the AWS account. |
AWS Secret Key | Enter the AWS Secret Key, which is one part of the access key pair (the other being the Access Key ID) that you will need to provide as credentials to authenticate the AWS account. |
Maximum Token Count |
Set the length of the response generated by the model. |
Temperature | Control the randomness of the response from the model. The lower the value, the lower the randomness. |
Top P | Control how probable the token usage is. A lower value leads to higher exclusion of less probable tokens. |
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. |
Amazon - Titan Embeddings G1 - Text
The Amazon - Titan Embeddings G1 - Text configuration provides access to embeddings model technology, which returns numeric representations of input text. These numeric representations are intended to be consumed by machine learning models.
Field | Description |
---|---|
Select Configuration | Under Configuration, select Amazon - Titan Embeddings G1 - Text. |
Titan Model |
Select a model to use to generate the responses. You can use the following models:
|
AWS Region | Choose the appropriate geographical region where the AWS resources are hosted. |
Use FIPS Endpoint (US Regions Only) | Select whether communication between the connection and AWS uses encryption compliant with some version of the Federal Information Processing Standard (FIPS). |
AWS Access Key |
Enter the AWS Access Key ID, which is one part of the access key pair (the other being the secret key) that you will need to provide as credentials to authenticate the AWS account. |
AWS Secret Key | Enter the AWS Secret Key, which is one part of the access key pair (the other being the Access Key ID) that you will need to provide as credentials to authenticate the AWS account. |
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.
Do the following:
-
Access the connector through Data load editor or Script.
-
Click Create new connection.
-
Under Space, select the space where the connection will be located.
-
Select Amazon Titan (Amazon Bedrock) from the list of data connectors.
-
Fill out the connection dialog fields.
-
Click Create.
Your connection is now listed under Data connections in Data load editor or Script.