Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
- 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
Specification for the grounding check.
Instance Attribute Summary collapse
-
#citation_threshold ⇒ Float
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec.
4312 4313 4314 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#citation_threshold ⇒ Float
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
4310 4311 4312 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4310 def citation_threshold @citation_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4317 4318 4319 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4317 def update!(**args) @citation_threshold = args[:citation_threshold] if args.key?(:citation_threshold) end |