View a markdown version of this page

AWS::Wisdom::AIPrompt AIPromptInferenceConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::Wisdom::AIPrompt AIPromptInferenceConfiguration

The configuration for inference parameters when using AI Prompts.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "MaxTokensToSample" : Integer, "Temperature" : Number, "TopK" : Integer, "TopP" : Number }

YAML

MaxTokensToSample: Integer Temperature: Number TopK: Integer TopP: Number

Properties

MaxTokensToSample

The maximum number of tokens to generate in the response.

Required: No

Type: Integer

Minimum: 1

Maximum: 4096

Update requires: No interruption

Temperature

The temperature setting for controlling randomness in the generated response.

Required: No

Type: Number

Minimum: 0

Maximum: 1

Update requires: No interruption

TopK

The top-K sampling parameter for token selection.

Required: No

Type: Integer

Minimum: 0

Maximum: 200

Update requires: No interruption

TopP

The top-P sampling parameter for nucleus sampling.

Required: No

Type: Number

Minimum: 0

Maximum: 1

Update requires: No interruption