Class: Aws::BedrockAgent::Types::InferenceConfiguration

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrockagent/types.rb

Overview

Configuration for inference in prompt configuration

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#maximum_lengthInteger

Maximum length of output

Returns:

  • (Integer)


1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1754

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

#stop_sequencesArray<String>

List of stop sequences

Returns:

  • (Array<String>)


1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1754

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

#temperatureFloat

Controls randomness, higher values increase diversity

Returns:

  • (Float)


1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1754

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

#top_kInteger

Sample from the k most likely next tokens

Returns:

  • (Integer)


1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1754

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

#top_pFloat

Cumulative probability cutoff for token selection

Returns:

  • (Float)


1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1754

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