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.



40738
40739
40740
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40738

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)


40729
40730
40731
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40729

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)


40736
40737
40738
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40736

def top_k
  @top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40743
40744
40745
40746
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40743

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