Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig

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

Specifies the context retrieval config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfig

Returns a new instance of GoogleCloudAiplatformV1RagRetrievalConfig.



23607
23608
23609
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23607

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

Instance Attribute Details

#filterGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter

Config for filters. Corresponds to the JSON property filter



23600
23601
23602
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23600

def filter
  @filter
end

#top_kFixnum

Optional. The number of contexts to retrieve. Corresponds to the JSON property topK

Returns:

  • (Fixnum)


23605
23606
23607
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23605

def top_k
  @top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23612
23613
23614
23615
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23612

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