Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking
- 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
-
#chunk_overlap ⇒ Fixnum
The overlap between chunks.
-
#chunk_size ⇒ Fixnum
The size of the chunks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking
constructor
A new instance of GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking
Returns a new instance of GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking.
22478 22479 22480 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22478 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_overlap ⇒ Fixnum
The overlap between chunks.
Corresponds to the JSON property chunkOverlap
22471 22472 22473 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22471 def chunk_overlap @chunk_overlap end |
#chunk_size ⇒ Fixnum
The size of the chunks.
Corresponds to the JSON property chunkSize
22476 22477 22478 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22476 def chunk_size @chunk_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22483 22484 22485 22486 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22483 def update!(**args) @chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap) @chunk_size = args[:chunk_size] if args.key?(:chunk_size) end |