Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec
- 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
Grounding specification.
Instance Attribute Summary collapse
-
#filtering_level ⇒ String
Optional.
-
#include_grounding_supports ⇒ Boolean
(also: #include_grounding_supports?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec.
4650 4651 4652 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4650 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filtering_level ⇒ String
Optional. Specifies whether to enable the filtering based on grounding score
and at what level.
Corresponds to the JSON property filteringLevel
4640 4641 4642 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4640 def filtering_level @filtering_level end |
#include_grounding_supports ⇒ Boolean Also known as: include_grounding_supports?
Optional. Specifies whether to include grounding_supports in the answer. The
default value is false
. When this field is set to true
, returned answer
will have grounding_score
and will contain GroundingSupports for each claim.
Corresponds to the JSON property includeGroundingSupports
4647 4648 4649 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4647 def include_grounding_supports @include_grounding_supports end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4655 4656 4657 4658 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4655 def update!(**args) @filtering_level = args[:filtering_level] if args.key?(:filtering_level) @include_grounding_supports = args[:include_grounding_supports] if args.key?(:include_grounding_supports) end |