Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking

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

Specifies the fixed length chunking config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking

Returns a new instance of GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking.



24737
24738
24739
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24737

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

Instance Attribute Details

#chunk_overlapFixnum

The overlap between chunks. Corresponds to the JSON property chunkOverlap

Returns:

  • (Fixnum)


24730
24731
24732
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24730

def chunk_overlap
  @chunk_overlap
end

#chunk_sizeFixnum

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

Returns:

  • (Fixnum)


24735
24736
24737
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24735

def chunk_size
  @chunk_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24742
24743
24744
24745
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24742

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