Class: Aws::QConnect::Types::AIPromptInferenceConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb

Overview

The configuration for inference parameters when using AI Prompts.

Constant Summary collapse

SENSITIVE =
[:temperature, :top_p, :top_k, :max_tokens_to_sample]

Instance Attribute Summary collapse

Instance Attribute Details

#max_tokens_to_sample ⇒ Integer

The maximum number of tokens to generate in the response.

Returns:

  • (Integer)


725
726
727
728
729
730
731
732
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 725

class AIPromptInferenceConfiguration < Struct.new(
  :temperature,
  :top_p,
  :top_k,
  :max_tokens_to_sample)
  SENSITIVE = [:temperature, :top_p, :top_k, :max_tokens_to_sample]
  include Aws::Structure
end

#temperature ⇒ Float

The temperature setting for controlling randomness in the generated response.

Returns:

  • (Float)


725
726
727
728
729
730
731
732
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 725

class AIPromptInferenceConfiguration < Struct.new(
  :temperature,
  :top_p,
  :top_k,
  :max_tokens_to_sample)
  SENSITIVE = [:temperature, :top_p, :top_k, :max_tokens_to_sample]
  include Aws::Structure
end

#top_k ⇒ Integer

The top-K sampling parameter for token selection.

Returns:

  • (Integer)


725
726
727
728
729
730
731
732
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 725

class AIPromptInferenceConfiguration < Struct.new(
  :temperature,
  :top_p,
  :top_k,
  :max_tokens_to_sample)
  SENSITIVE = [:temperature, :top_p, :top_k, :max_tokens_to_sample]
  include Aws::Structure
end

#top_p ⇒ Float

The top-P sampling parameter for nucleus sampling.

Returns:

  • (Float)


725
726
727
728
729
730
731
732
# File 'gems/aws-sdk-qconnect/lib/aws-sdk-qconnect/types.rb', line 725

class AIPromptInferenceConfiguration < Struct.new(
  :temperature,
  :top_p,
  :top_k,
  :max_tokens_to_sample)
  SENSITIVE = [:temperature, :top_p, :top_k, :max_tokens_to_sample]
  include Aws::Structure
end