Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1RagStoreConfigRagResource

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

The definition of the Rag resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1RagStoreConfigRagResource

Returns a new instance of GenaiVertexV1beta1RagStoreConfigRagResource.



4481
4482
4483
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4481

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

Instance Attribute Details

#rag_corpusString

Optional. RagCorpora resource name. Corresponds to the JSON property rag_corpus

Returns:

  • (String)


4473
4474
4475
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4473

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 rag_file_ids

Returns:

  • (Array<String>)


4479
4480
4481
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4479

def rag_file_ids
  @rag_file_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4486
4487
4488
4489
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4486

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