Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Describes the metadata about the dynamic retrieval predictor.
Instance Attribute Summary collapse
-
#prediction ⇒ Float
The value of the predictor.
-
#version ⇒ String
The version of the predictor which was used in dynamic retrieval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata
constructor
A new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata
Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata.
5776 5777 5778 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5776 def initialize(**args) update!(**args) end |
Instance Attribute Details
#prediction ⇒ Float
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.
Corresponds to the JSON property prediction
5769 5770 5771 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5769 def prediction @prediction end |
#version ⇒ String
The version of the predictor which was used in dynamic retrieval.
Corresponds to the JSON property version
5774 5775 5776 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5774 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5781 5782 5783 5784 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5781 def update!(**args) @prediction = args[:prediction] if args.key?(:prediction) @version = args[:version] if args.key?(:version) end |