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.
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.
22074 22075 22076 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22074 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_overlap ⇒ Fixnum
The overlap between chunks.
Corresponds to the JSON property chunkOverlap
22067 22068 22069 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22067 def chunk_overlap @chunk_overlap end |
#chunk_size ⇒ Fixnum
The size of the chunks.
Corresponds to the JSON property chunkSize
22072 22073 22074 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22072 def chunk_size @chunk_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22079 22080 22081 22082 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22079 def update!(**args) @chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap) @chunk_size = args[:chunk_size] if args.key?(:chunk_size) end |