Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCheckGroundingSpec

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

Overview

Specification for the grounding check.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCheckGroundingSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaCheckGroundingSpec.



7124
7125
7126
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7124

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

Instance Attribute Details

#citation_thresholdFloat

The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0. 6. Corresponds to the JSON property citationThreshold

Returns:

  • (Float)


7122
7123
7124
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7122

def citation_threshold
  @citation_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7129
7130
7131
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7129

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