Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStoreRagResource

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

The definition of the Rag resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1VertexRagStoreRagResource

Returns a new instance of GoogleCloudAiplatformV1VertexRagStoreRagResource.



37400
37401
37402
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37400

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

Instance Attribute Details

#rag_corpusString

Optional. RagCorpora resource name. Format: projects/project/locations/ location/ragCorpora/rag_corpus` Corresponds to the JSON propertyragCorpus`

Returns:

  • (String)


37392
37393
37394
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37392

def rag_corpus
  @rag_corpus
end

#rag_file_idsArray<String>

Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. Corresponds to the JSON property ragFileIds

Returns:

  • (Array<String>)


37398
37399
37400
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37398

def rag_file_ids
  @rag_file_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37405
37406
37407
37408
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37405

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