Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig

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

Specifies the size and overlap of chunks for RagFiles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFileChunkingConfig

Returns a new instance of GoogleCloudAiplatformV1beta1RagFileChunkingConfig.



25938
25939
25940
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25938

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

Instance Attribute Details

#chunk_overlapFixnum

The overlap between chunks. Corresponds to the JSON property chunkOverlap

Returns:

  • (Fixnum)


25926
25927
25928
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25926

def chunk_overlap
  @chunk_overlap
end

#chunk_sizeFixnum

The size of the chunks. Corresponds to the JSON property chunkSize

Returns:

  • (Fixnum)


25931
25932
25933
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25931

def chunk_size
  @chunk_size
end

#fixed_length_chunkingGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking

Specifies the fixed length chunking config. Corresponds to the JSON property fixedLengthChunking



25936
25937
25938
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25936

def fixed_length_chunking
  @fixed_length_chunking
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25943
25944
25945
25946
25947
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25943

def update!(**args)
  @chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap)
  @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
  @fixed_length_chunking = args[:fixed_length_chunking] if args.key?(:fixed_length_chunking)
end