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.



4708
4709
4710
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4708

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

Instance Attribute Details

#rag_corpusString

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

Returns:

  • (String)


4700
4701
4702
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4700

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>)


4706
4707
4708
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4706

def rag_file_ids
  @rag_file_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4713
4714
4715
4716
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4713

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