Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore

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

Retrieve from Vertex RAG Store for grounding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1VertexRagStore

Returns a new instance of GoogleCloudAiplatformV1beta1VertexRagStore.



33372
33373
33374
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33372

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

Instance Attribute Details

#rag_corporaArray<String>

Required. Vertex RAG Store corpus resource name: projects/project/locations/ location/ragCorpora/ragCorpus Currently only one corpus is allowed. In the future we may open up multiple corpora support. However, they should be from the same project and location. Corresponds to the JSON property ragCorpora

Returns:

  • (Array<String>)


33365
33366
33367
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33365

def rag_corpora
  @rag_corpora
end

#similarity_top_kFixnum

Optional. Number of top k results to return from the selected corpora. Corresponds to the JSON property similarityTopK

Returns:

  • (Fixnum)


33370
33371
33372
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33370

def similarity_top_k
  @similarity_top_k
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33377
33378
33379
33380
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33377

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