Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Prompt template used for inference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate

Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate.



16825
16826
16827
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16825

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gcs_uriString

Prompt template stored in Cloud Storage. Format: "gs://my-bucket/file-name.txt" . Corresponds to the JSON property gcsUri

Returns:

  • (String)


16816
16817
16818
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16816

def gcs_uri
  @gcs_uri
end

#prompt_templateString

Inline prompt template. Template variables should be in the format "var_name" . Example: "Translate the following from source_lang to target_lang: text " Corresponds to the JSON property promptTemplate

Returns:

  • (String)


16823
16824
16825
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16823

def prompt_template
  @prompt_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16830
16831
16832
16833
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16830

def update!(**args)
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
  @prompt_template = args[:prompt_template] if args.key?(:prompt_template)
end