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.



5689
5690
5691
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5689

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)


5682
5683
5684
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5682

def prediction
  @prediction
end

#versionString

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

Returns:

  • (String)


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