Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::PairwiseQuestionAnsweringQualityInstance (v0.51.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::PairwiseQuestionAnsweringQualityInstance.

Spec for pairwise question answering quality instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#baseline_prediction

def baseline_prediction() -> ::String
Returns
  • (::String) — Required. Output of the baseline model.

#baseline_prediction=

def baseline_prediction=(value) -> ::String
Parameter
  • value (::String) — Required. Output of the baseline model.
Returns
  • (::String) — Required. Output of the baseline model.

#context

def context() -> ::String
Returns
  • (::String) — Required. Text to answer the question.

#context=

def context=(value) -> ::String
Parameter
  • value (::String) — Required. Text to answer the question.
Returns
  • (::String) — Required. Text to answer the question.

#instruction

def instruction() -> ::String
Returns
  • (::String) — Required. Question Answering prompt for LLM.

#instruction=

def instruction=(value) -> ::String
Parameter
  • value (::String) — Required. Question Answering prompt for LLM.
Returns
  • (::String) — Required. Question Answering prompt for LLM.

#prediction

def prediction() -> ::String
Returns
  • (::String) — Required. Output of the candidate model.

#prediction=

def prediction=(value) -> ::String
Parameter
  • value (::String) — Required. Output of the candidate model.
Returns
  • (::String) — Required. Output of the candidate model.

#reference

def reference() -> ::String
Returns
  • (::String) — Optional. Ground truth used to compare against the prediction.

#reference=

def reference=(value) -> ::String
Parameter
  • value (::String) — Optional. Ground truth used to compare against the prediction.
Returns
  • (::String) — Optional. Ground truth used to compare against the prediction.