Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SummarizationHelpfulnessInstance

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

Overview

Spec for summarization helpfulness instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SummarizationHelpfulnessInstance

Returns a new instance of GoogleCloudAiplatformV1SummarizationHelpfulnessInstance.



29949
29950
29951
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29949

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

Instance Attribute Details

#contextString

Required. Text to be summarized. Corresponds to the JSON property context

Returns:

  • (String)


29932
29933
29934
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29932

def context
  @context
end

#instructionString

Optional. Summarization prompt for LLM. Corresponds to the JSON property instruction

Returns:

  • (String)


29937
29938
29939
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29937

def instruction
  @instruction
end

#predictionString

Required. Output of the evaluated model. Corresponds to the JSON property prediction

Returns:

  • (String)


29942
29943
29944
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29942

def prediction
  @prediction
end

#referenceString

Optional. Ground truth used to compare against the prediction. Corresponds to the JSON property reference

Returns:

  • (String)


29947
29948
29949
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29947

def reference
  @reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29954
29955
29956
29957
29958
29959
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29954

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @instruction = args[:instruction] if args.key?(:instruction)
  @prediction = args[:prediction] if args.key?(:prediction)
  @reference = args[:reference] if args.key?(:reference)
end