Class: Google::Cloud::AIPlatform::V1::GenerationConfig
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::GenerationConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/content.rb
Overview
Generation config.
Instance Attribute Summary collapse
-
#candidate_count ⇒ ::Integer
Optional.
-
#frequency_penalty ⇒ ::Float
Optional.
-
#max_output_tokens ⇒ ::Integer
Optional.
-
#presence_penalty ⇒ ::Float
Optional.
-
#response_mime_type ⇒ ::String
Optional.
-
#response_schema ⇒ ::Google::Cloud::AIPlatform::V1::Schema
Optional.
-
#stop_sequences ⇒ ::Array<::String>
Optional.
-
#temperature ⇒ ::Float
Optional.
-
#top_k ⇒ ::Float
Optional.
-
#top_p ⇒ ::Float
Optional.
Instance Attribute Details
#candidate_count ⇒ ::Integer
Returns Optional. Number of candidates to generate.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#frequency_penalty ⇒ ::Float
Returns Optional. Frequency penalties.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#max_output_tokens ⇒ ::Integer
Returns Optional. The maximum number of output tokens to generate per message.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#presence_penalty ⇒ ::Float
Returns Optional. Positive penalties.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#response_mime_type ⇒ ::String
Returns Optional. Output response mimetype of the generated candidate text. Supported mimetype:
text/plain: (default) Text output.application/json: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#response_schema ⇒ ::Google::Cloud::AIPlatform::V1::Schema
Returns Optional. The Schema object allows the definition of input and output
data types. These types can be objects, but also primitives and arrays.
Represents a select subset of an OpenAPI 3.0 schema
object.
If set, a compatible response_mime_type must also be set.
Compatible mimetypes:
application/json: Schema for JSON response.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#stop_sequences ⇒ ::Array<::String>
Returns Optional. Stop sequences.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#temperature ⇒ ::Float
Returns Optional. Controls the randomness of predictions.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#top_k ⇒ ::Float
Returns Optional. If specified, top-k sampling will be used.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#top_p ⇒ ::Float
Returns Optional. If specified, nucleus sampling will be used.
162 163 164 165 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |