Class: Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec
- 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
-
#frequency_penalty ⇒ ::Float
If specified, custom value for frequency penalty will be used.
-
#language_code ⇒ ::String
Language code for content.
-
#max_output_tokens ⇒ ::Integer
If specified, custom value for max output tokens will be used.
-
#model_id ⇒ ::String
Specifies which Vertex model id to use for generation.
-
#presence_penalty ⇒ ::Float
If specified, custom value for presence penalty will be used.
-
#temperature ⇒ ::Float
If specified, custom value for the temperature will be used.
-
#top_k ⇒ ::Integer
If specified, custom value for top-k sampling will be used.
-
#top_p ⇒ ::Float
If specified, custom value for nucleus sampling will be used.
Instance Attribute Details
#frequency_penalty ⇒ ::Float
Returns 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.
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.
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.
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.
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.
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.
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.
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 |