Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams

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

Parameters for semantic similarity search based retrieval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams

Returns a new instance of GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams.



48365
48366
48367
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48365

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

Instance Attribute Details

#search_queryString

Required. Query to use for similarity search retrieval. If provided, then the parent ReasoningEngine must have ReasoningEngineContextSpec.MemoryBankConfig. SimilaritySearchConfig set. Corresponds to the JSON property searchQuery

Returns:

  • (String)


48356
48357
48358
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48356

def search_query
  @search_query
end

#top_kFixnum

Optional. The maximum number of memories to return. The service may return fewer than this value. If unspecified, at most 3 memories will be returned. The maximum value is 100; values above 100 will be coerced to 100. Corresponds to the JSON property topK

Returns:

  • (Fixnum)


48363
48364
48365
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48363

def top_k
  @top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48370
48371
48372
48373
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48370

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