Interface Answer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Answer.Step.Action.Observation.SearchResult.ChunkInfo,Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder
- Enclosing class:
- Answer.Step.Action.Observation.SearchResult
public static interface Answer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetChunk()Chunk resource name.com.google.protobuf.ByteStringChunk resource name.Chunk textual content.com.google.protobuf.ByteStringChunk textual content.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
-
getChunk
String getChunk()Chunk resource name.
string chunk = 1;- Returns:
- The chunk.
-
getChunkBytes
com.google.protobuf.ByteString getChunkBytes()Chunk resource name.
string chunk = 1;- Returns:
- The bytes for chunk.
-
getContent
String getContent()Chunk textual content.
string content = 2;- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()Chunk textual content.
string content = 2;- Returns:
- The bytes for content.
-
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.
-