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.



24103
24104
24105
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24103

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

Instance Attribute Details

#filterGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter

Config for filters. Corresponds to the JSON property filter



24091
24092
24093
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24091

def filter
  @filter
end

#rankingGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking

Config for ranking and reranking. Corresponds to the JSON property ranking



24096
24097
24098
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24096

def ranking
  @ranking
end

#top_kFixnum

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

Returns:

  • (Fixnum)


24101
24102
24103
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24101

def top_k
  @top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24108
24109
24110
24111
24112
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24108

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