Google Cloud Discovery Engine V1 Client - Class DynamicRetrievalPredictor (1.5.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DynamicRetrievalPredictor.

Describes the predictor settings for dynamic retrieval.

Generated from protobuf message google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ GenerateGroundedContentRequest \ DynamicRetrievalConfiguration

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ versionint

The version of the predictor to be used in dynamic retrieval.

↳ thresholdfloat

The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.

getVersion

The version of the predictor to be used in dynamic retrieval.

Returns
TypeDescription
int

setVersion

The version of the predictor to be used in dynamic retrieval.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getThreshold

The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.

Returns
TypeDescription
float

hasThreshold

clearThreshold

setThreshold

The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this