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.
5689 5690 5691 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5689 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
5682 5683 5684 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5682 def prediction @prediction end |
#version ⇒ String
The version of the predictor which was used in dynamic retrieval.
Corresponds to the JSON property version
5687 5688 5689 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5687 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5694 5695 5696 5697 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5694 def update!(**args) @prediction = args[:prediction] if args.key?(:prediction) @version = args[:version] if args.key?(:version) end |