Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking

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 fixed length chunking config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking

Returns a new instance of GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking.



46602
46603
46604
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46602

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

Instance Attribute Details

#chunk_overlapFixnum

The overlap between chunks. Corresponds to the JSON property chunkOverlap

Returns:

  • (Fixnum)


46595
46596
46597
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46595

def chunk_overlap
  @chunk_overlap
end

#chunk_sizeFixnum

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

Returns:

  • (Fixnum)


46600
46601
46602
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46600

def chunk_size
  @chunk_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46607
46608
46609
46610
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46607

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