Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig

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

Configuration for Retrieval Augmented Generation feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig

Returns a new instance of GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig.



12490
12491
12492
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12490

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

Instance Attribute Details

#enable_ragBoolean Also known as: enable_rag?

If true, enable Retrieval Augmented Generation in ChatCompletion request. Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used. Corresponds to the JSON property enableRag

Returns:

  • (Boolean)


12487
12488
12489
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12487

def enable_rag
  @enable_rag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12495
12496
12497
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12495

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