Interface Answer.Reference.UnstructuredDocumentInfo.ChunkContentOrBuilder (0.51.0)

public static interface Answer.Reference.UnstructuredDocumentInfo.ChunkContentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String getContent()

Chunk textual content.

string content = 1;

Returns
Type Description
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

Chunk textual content.

string content = 1;

Returns
Type Description
ByteString

The bytes for content.

getPageIdentifier()

public abstract String getPageIdentifier()

Page identifier.

string page_identifier = 2;

Returns
Type Description
String

The pageIdentifier.

getPageIdentifierBytes()

public abstract ByteString getPageIdentifierBytes()

Page identifier.

string page_identifier = 2;

Returns
Type Description
ByteString

The bytes for pageIdentifier.

getRelevanceScore()

public abstract float getRelevanceScore()

The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.

optional float relevance_score = 3;

Returns
Type Description
float

The relevanceScore.

hasRelevanceScore()

public abstract boolean hasRelevanceScore()

The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.

optional float relevance_score = 3;

Returns
Type Description
boolean

Whether the relevanceScore field is set.