Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams

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

Parameters for semantic similarity search based retrieval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams

Returns a new instance of GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams.



33500
33501
33502
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33500

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)


33491
33492
33493
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33491

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)


33498
33499
33500
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33498

def top_k
  @top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33505
33506
33507
33508
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33505

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