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:IntegerTemperature:NumberTopK:IntegerTopP:Number
Properties
MaxTokensToSample-
The maximum number of tokens to generate in the response.
Required: No
Type: Integer
Minimum:
1Maximum:
4096Update requires: No interruption
Temperature-
The temperature setting for controlling randomness in the generated response.
Required: No
Type: Number
Minimum:
0Maximum:
1Update requires: No interruption
TopK-
The top-K sampling parameter for token selection.
Required: No
Type: Integer
Minimum:
0Maximum:
200Update requires: No interruption
TopP-
The top-P sampling parameter for nucleus sampling.
Required: No
Type: Number
Minimum:
0Maximum:
1Update requires: No interruption