Interface QuestionAnsweringRelevanceInstanceOrBuilder (3.42.0)

public interface QuestionAnsweringRelevanceInstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract String getContext()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The context.

getContextBytes()

public abstract ByteString getContextBytes()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for context.

getInstruction()

public abstract String getInstruction()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The instruction.

getInstructionBytes()

public abstract ByteString getInstructionBytes()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for instruction.

getPrediction()

public abstract String getPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The prediction.

getPredictionBytes()

public abstract ByteString getPredictionBytes()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for prediction.

getReference()

public abstract String getReference()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The reference.

getReferenceBytes()

public abstract ByteString getReferenceBytes()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for reference.

hasContext()

public abstract boolean hasContext()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the context field is set.

hasInstruction()

public abstract boolean hasInstruction()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the instruction field is set.

hasPrediction()

public abstract boolean hasPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the prediction field is set.

hasReference()

public abstract boolean hasReference()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the reference field is set.