Interface Answer.Reference.UnstructuredDocumentInfo.ChunkContentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Answer.Reference.UnstructuredDocumentInfo.ChunkContent,Answer.Reference.UnstructuredDocumentInfo.ChunkContent.Builder
- Enclosing class:
- Answer.Reference.UnstructuredDocumentInfo
public static interface Answer.Reference.UnstructuredDocumentInfo.ChunkContentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionChunk textual content.com.google.protobuf.ByteStringChunk textual content.Page identifier.com.google.protobuf.ByteStringPage identifier.floatThe relevance of the chunk for a given query.booleanThe relevance of the chunk for a given query.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getContent
String getContent()Chunk textual content.
string content = 1;- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()Chunk textual content.
string content = 1;- Returns:
- The bytes for content.
-
getPageIdentifier
String getPageIdentifier()Page identifier.
string page_identifier = 2;- Returns:
- The pageIdentifier.
-
getPageIdentifierBytes
com.google.protobuf.ByteString getPageIdentifierBytes()Page identifier.
string page_identifier = 2;- Returns:
- The bytes for pageIdentifier.
-
hasRelevanceScore
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:
- Whether the relevanceScore field is set.
-
getRelevanceScore
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:
- The relevanceScore.
-