Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig
- 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
-
#chunk_overlap ⇒ Fixnum
The overlap between chunks.
-
#chunk_size ⇒ Fixnum
The size of the chunks.
-
#fixed_length_chunking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking
Specifies the fixed length chunking config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFileChunkingConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1RagFileChunkingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFileChunkingConfig
Returns a new instance of GoogleCloudAiplatformV1beta1RagFileChunkingConfig.
26336 26337 26338 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_overlap ⇒ Fixnum
The overlap between chunks.
Corresponds to the JSON property chunkOverlap
26324 26325 26326 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26324 def chunk_overlap @chunk_overlap end |
#chunk_size ⇒ Fixnum
The size of the chunks.
Corresponds to the JSON property chunkSize
26329 26330 26331 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26329 def chunk_size @chunk_size end |
#fixed_length_chunking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking
Specifies the fixed length chunking config.
Corresponds to the JSON property fixedLengthChunking
26334 26335 26336 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26334 def fixed_length_chunking @fixed_length_chunking end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
26341 26342 26343 26344 26345 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26341 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 |