Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec (v1.2.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec.

Content generation specification.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#frequency_penalty

def frequency_penalty() -> ::Float
Returns
  • (::Float) — If specified, custom value for frequency penalty will be used.

#frequency_penalty=

def frequency_penalty=(value) -> ::Float
Parameter
  • value (::Float) — If specified, custom value for frequency penalty will be used.
Returns
  • (::Float) — If specified, custom value for frequency penalty will be used.

#language_code

def language_code() -> ::String
Returns
  • (::String) — Language code for content. Use language tags defined by BCP47.

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — Language code for content. Use language tags defined by BCP47.
Returns
  • (::String) — Language code for content. Use language tags defined by BCP47.

#max_output_tokens

def max_output_tokens() -> ::Integer
Returns
  • (::Integer) — If specified, custom value for max output tokens will be used.

#max_output_tokens=

def max_output_tokens=(value) -> ::Integer
Parameter
  • value (::Integer) — If specified, custom value for max output tokens will be used.
Returns
  • (::Integer) — If specified, custom value for max output tokens will be used.

#model_id

def model_id() -> ::String
Returns
  • (::String) — Specifies which Vertex model id to use for generation.

#model_id=

def model_id=(value) -> ::String
Parameter
  • value (::String) — Specifies which Vertex model id to use for generation.
Returns
  • (::String) — Specifies which Vertex model id to use for generation.

#presence_penalty

def presence_penalty() -> ::Float
Returns
  • (::Float) — If specified, custom value for presence penalty will be used.

#presence_penalty=

def presence_penalty=(value) -> ::Float
Parameter
  • value (::Float) — If specified, custom value for presence penalty will be used.
Returns
  • (::Float) — If specified, custom value for presence penalty will be used.

#temperature

def temperature() -> ::Float
Returns
  • (::Float) — If specified, custom value for the temperature will be used.

#temperature=

def temperature=(value) -> ::Float
Parameter
  • value (::Float) — If specified, custom value for the temperature will be used.
Returns
  • (::Float) — If specified, custom value for the temperature will be used.

#top_k

def top_k() -> ::Integer
Returns
  • (::Integer) — If specified, custom value for top-k sampling will be used.

#top_k=

def top_k=(value) -> ::Integer
Parameter
  • value (::Integer) — If specified, custom value for top-k sampling will be used.
Returns
  • (::Integer) — If specified, custom value for top-k sampling will be used.

#top_p

def top_p() -> ::Float
Returns
  • (::Float) — If specified, custom value for nucleus sampling will be used.

#top_p=

def top_p=(value) -> ::Float
Parameter
  • value (::Float) — If specified, custom value for nucleus sampling will be used.
Returns
  • (::Float) — If specified, custom value for nucleus sampling will be used.