Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus

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

A RagCorpus is a RagFile container and a project can have multiple RagCorpora.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RagCorpus

Returns a new instance of GoogleCloudAiplatformV1RagCorpus.



22294
22295
22296
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22294

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

Instance Attribute Details

#corpus_statusGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1CorpusStatus

RagCorpus status. Corresponds to the JSON property corpusStatus



22261
22262
22263
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22261

def corpus_status
  @corpus_status
end

#create_timeString

Output only. Timestamp when this RagCorpus was created. Corresponds to the JSON property createTime

Returns:

  • (String)


22266
22267
22268
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22266

def create_time
  @create_time
end

#descriptionString

Optional. The description of the RagCorpus. Corresponds to the JSON property description

Returns:

  • (String)


22271
22272
22273
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22271

def description
  @description
end

#display_nameString

Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


22277
22278
22279
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22277

def display_name
  @display_name
end

#nameString

Output only. The resource name of the RagCorpus. Corresponds to the JSON property name

Returns:

  • (String)


22282
22283
22284
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22282

def name
  @name
end

#update_timeString

Output only. Timestamp when this RagCorpus was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


22287
22288
22289
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22287

def update_time
  @update_time
end

#vector_db_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfig

Config for the Vector DB to use for RAG. Corresponds to the JSON property vectorDbConfig



22292
22293
22294
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22292

def vector_db_config
  @vector_db_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22299
22300
22301
22302
22303
22304
22305
22306
22307
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22299

def update!(**args)
  @corpus_status = args[:corpus_status] if args.key?(:corpus_status)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @vector_db_config = args[:vector_db_config] if args.key?(:vector_db_config)
end