Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus

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

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

Returns a new instance of GoogleCloudAiplatformV1beta1RagCorpus.



22519
22520
22521
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22519

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


22491
22492
22493
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22491

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


22496
22497
22498
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22496

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)


22502
22503
22504
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22502

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


22507
22508
22509
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22507

def name
  @name
end

#rag_embedding_model_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig

Config for the embedding model to use for RAG. Corresponds to the JSON property ragEmbeddingModelConfig



22512
22513
22514
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22512

def rag_embedding_model_config
  @rag_embedding_model_config
end

#update_timeString

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

Returns:

  • (String)


22517
22518
22519
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22517

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22524
22525
22526
22527
22528
22529
22530
22531
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22524

def update!(**args)
  @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)
  @rag_embedding_model_config = args[:rag_embedding_model_config] if args.key?(:rag_embedding_model_config)
  @update_time = args[:update_time] if args.key?(:update_time)
end