Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig

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

Overview

The configuration for grounding checking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig

Returns a new instance of GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig.



28259
28260
28261
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28259

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

Instance Attribute Details

#disable_attributionBoolean Also known as: disable_attribution?

If set, skip finding claim attributions (i.e not generate grounding citation). Corresponds to the JSON property disableAttribution

Returns:

  • (Boolean)


28251
28252
28253
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28251

def disable_attribution
  @disable_attribution
end

#sourcesArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry>

The sources for the grounding checking. Corresponds to the JSON property sources



28257
28258
28259
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28257

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28264
28265
28266
28267
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 28264

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