Class ChunkingOptions

ChunkingOptions class

Configuration options for document chunking operations.

public sealed class ChunkingOptions

Constructors

NameDescription
ChunkingOptions()The default constructor.

Properties

NameDescription
MaxChunkSize { get; set; }Gets or sets the maximum size of each chunk in tokens.
OverlapSize { get; set; }Gets or sets the number of tokens to overlap between consecutive chunks.

Methods

NameDescription
Validate()Validates the current options configuration.

Fields

NameDescription
const DefaultMaxChunkSizeThe default maximum chunk size in tokens.
const DefaultOverlapSizeThe default overlap size in tokens between consecutive chunks.
const MaximumChunkSizeThe maximum allowed chunk size.
const MinimumChunkSizeThe minimum allowed chunk size.

Remarks

This class provides configuration for controlling how documents are split into chunks suitable for AI processing and embeddings.

See Also