Class: Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb

Overview

Content generation specification.

Instance Attribute Summary collapse

Instance Attribute Details

#frequency_penalty::Float

Returns If specified, custom value for frequency penalty will be used.

Returns:

  • (::Float)

    If specified, custom value for frequency penalty will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_code::String

Returns Language code for content. Use language tags defined by BCP47.

Returns:

  • (::String)

    Language code for content. Use language tags defined by BCP47.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#max_output_tokens::Integer

Returns If specified, custom value for max output tokens will be used.

Returns:

  • (::Integer)

    If specified, custom value for max output tokens will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#model_id::String

Returns Specifies which Vertex model id to use for generation.

Returns:

  • (::String)

    Specifies which Vertex model id to use for generation.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#presence_penalty::Float

Returns If specified, custom value for presence penalty will be used.

Returns:

  • (::Float)

    If specified, custom value for presence penalty will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#temperature::Float

Returns If specified, custom value for the temperature will be used.

Returns:

  • (::Float)

    If specified, custom value for the temperature will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#top_k::Integer

Returns If specified, custom value for top-k sampling will be used.

Returns:

  • (::Integer)

    If specified, custom value for top-k sampling will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#top_p::Float

Returns If specified, custom value for nucleus sampling will be used.

Returns:

  • (::Float)

    If specified, custom value for nucleus sampling will be used.



125
126
127
128
# File 'proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb', line 125

class GenerationSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end