Interface RagContextRecallInstanceOrBuilder (3.41.0)

public interface RagContextRecallInstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract String getContext()

Required. Retrieved facts from RAG pipeline as context to be evaluated.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The context.

getContextBytes()

public abstract ByteString getContextBytes()

Required. Retrieved facts from RAG pipeline as context to be evaluated.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for context.

getReference()

public abstract String getReference()

Required. Ground truth used to compare against the context.

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

Returns
TypeDescription
String

The reference.

getReferenceBytes()

public abstract ByteString getReferenceBytes()

Required. Ground truth used to compare against the context.

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

Returns
TypeDescription
ByteString

The bytes for reference.

hasContext()

public abstract boolean hasContext()

Required. Retrieved facts from RAG pipeline as context to be evaluated.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the context field is set.

hasReference()

public abstract boolean hasReference()

Required. Ground truth used to compare against the context.

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

Returns
TypeDescription
boolean

Whether the reference field is set.