public static interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getPrediction()
public abstract float getPrediction()
The value of the predictor. This should be between [0, 1] where a value of 0 means that the query would not benefit from grounding, while a value of 1.0 means that the query would benefit the most. In between values allow to differentiate between different usefulness scores for grounding.
optional float prediction = 2;
Returns | |
---|---|
Type | Description |
float |
The prediction. |
getVersion()
public abstract GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version getVersion()
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version |
The version. |
getVersionValue()
public abstract int getVersionValue()
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for version. |
hasPrediction()
public abstract boolean hasPrediction()
The value of the predictor. This should be between [0, 1] where a value of 0 means that the query would not benefit from grounding, while a value of 1.0 means that the query would benefit the most. In between values allow to differentiate between different usefulness scores for grounding.
optional float prediction = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the prediction field is set. |