Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#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)


5769
5770
5771
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5769

def prediction
  @prediction
end

#versionString

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

Returns:

  • (String)


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