Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate
- 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
-
#gcs_uri ⇒ String
Prompt template stored in Cloud Storage.
-
#prompt_template ⇒ String
Inline prompt template.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate
constructor
A new instance of GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate
Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate.
19505 19506 19507 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19505 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_uri ⇒ String
Prompt template stored in Cloud Storage. Format: "gs://my-bucket/file-name.txt"
.
Corresponds to the JSON property gcsUri
19496 19497 19498 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19496 def gcs_uri @gcs_uri end |
#prompt_template ⇒ String
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
19503 19504 19505 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19503 def prompt_template @prompt_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19510 19511 19512 19513 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19510 def update!(**args) @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) @prompt_template = args[:prompt_template] if args.key?(:prompt_template) end |