Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfig

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

Overview

The configuration for grounding checking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfig

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfig.



30542
30543
30544
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30542

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)


30534
30535
30536
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30534

def disable_attribution
  @disable_attribution
end

#sourcesArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfigSourceEntry>

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



30540
30541
30542
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30540

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30547
30548
30549
30550
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30547

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