Skip to main content Skip to complementary content

Creating an Anthropic (Amazon Bedrock) connection

To communicate with Anthropic, create a connection to the Anthropic (Amazon Bedrock) analytics source. Create the connection in the hub, Data load editor, or Script editor.

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 Anthropic (Amazon Bedrock) analytics connection with one of the following configurations. Each connection can consist of a single configuration.

Anthropic Claude models

Anthropic - Claude (Messages API)

The Anthropic - Claude (Messages API) configuration connects to the Messages API. You can use this configuration to access the following Claude models:

  • Claude 3 Sonnet

  • Claude 3 Haiku

  • Claude 2.1

  • Claude 2

  • Claude Instant 1.2

See the Amazon Bedrock and Anthropic documentation for more information about the parameters:

Configurable settings in the connection dialog (Anthropic - Claude (Messages API) configuration)
Field Description
Anthropic Model

Select a model to use to generate the responses.

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.
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 Anthropic documentation.
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.
Top K Adjust how many token choices are considered when creating the next token in the response.
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.

Anthropic - Claude

You can use the Anthropic - Claude configuration of this connector to connect to the following legacy models:

  • Claude 2.1

  • Claude 2

  • Claude Instant 1.2

See the Amazon Bedrock and Anthropic documentation for more information about the parameters:

Configurable settings in the connection dialog (Anthropic - Claude configuration)
Field Description
Anthropic Model

Select a model to use to generate the responses.

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.
Top K Adjust how many token choices are considered when creating the next token in the response.
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 hub, from Data load editor in an existing app, or from Script editor in an existing script. Follow the steps below to create a connection.

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

    Click Create new connection and select the Anthropic (Amazon Bedrock) connector from the list.

  2. Fill out the connection dialog fields.

  3. Click Create.

Your connection is now listed under Data connections in Data load editor or Script editor.

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 – let us know how we can improve!