Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Describes the metadata about the dynamic retrieval predictor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata.



10791
10792
10793
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10791

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#predictionFloat

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

Returns:

  • (Float)


10784
10785
10786
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10784

def prediction
  @prediction
end

#versionString

The version of the predictor which was used in dynamic retrieval. Corresponds to the JSON property version

Returns:

  • (String)


10789
10790
10791
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10789

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10796
10797
10798
10799
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10796

def update!(**args)
  @prediction = args[:prediction] if args.key?(:prediction)
  @version = args[:version] if args.key?(:version)
end