Package com.google.cloud.aiplatform.v1
Interface GroundingSupportOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GroundingSupport,GroundingSupport.Builder
@Generated
public interface GroundingSupportOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatgetConfidenceScores(int index) Confidence score of the support references.intConfidence score of the support references.Confidence score of the support references.intgetGroundingChunkIndices(int index) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.intA list of indices (into 'grounding_chunk') specifying the citations associated with the claim.A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.Segment of the content this support belongs to.Segment of the content this support belongs to.booleanSegment of the content this support belongs to.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
-
hasSegment
boolean hasSegment()Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1;- Returns:
- Whether the segment field is set.
-
getSegment
Segment getSegment()Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1;- Returns:
- The segment.
-
getSegmentOrBuilder
SegmentOrBuilder getSegmentOrBuilder()Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
getGroundingChunkIndicesList
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;- Returns:
- A list containing the groundingChunkIndices.
-
getGroundingChunkIndicesCount
int getGroundingChunkIndicesCount()A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;- Returns:
- The count of groundingChunkIndices.
-
getGroundingChunkIndices
int getGroundingChunkIndices(int index) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;- Parameters:
index- The index of the element to return.- Returns:
- The groundingChunkIndices at the given index.
-
getConfidenceScoresList
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;- Returns:
- A list containing the confidenceScores.
-
getConfidenceScoresCount
int getConfidenceScoresCount()Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;- Returns:
- The count of confidenceScores.
-
getConfidenceScores
float getConfidenceScores(int index) Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;- Parameters:
index- The index of the element to return.- Returns:
- The confidenceScores at the given index.
-