alexa
menu

Document Processing

    Show / Hide Table of Contents

    ChunkingOptions Class

    Provides configuration options for generating chunks suitable for retrieval-augmented generation (RAG).

    Inheritance
    System.Object
    ChunkingOptions
    Namespace: Syncfusion.DocumentChunking
    Assembly: Syncfusion.DocumentChunking.Base.dll
    Syntax
    public class ChunkingOptions : Object

    Constructors

    ChunkingOptions()

    Declaration
    public ChunkingOptions()

    Properties

    IncludeCitation

    Gets or sets a value indicating whether citation information is generated for each chunk.

    Declaration
    public bool IncludeCitation { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to generate citation information; otherwise, false. The default is true.

    IncludeMetadata

    Gets or sets a value indicating whether metadata is generated for each chunk.

    Declaration
    public bool IncludeMetadata { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to generate chunk metadata; otherwise, false. The default is true.

    MaxTokens

    Gets or sets the maximum number of tokens allowed in each generated chunk.

    Declaration
    public int MaxTokens { get; set; }
    Property Value
    Type Description
    System.Int32

    The maximum number of tokens per chunk. The default is 512. The value must be greater than zero and greater than OverlapTokens.

    OverlapTokens

    Gets or sets the maximum number of tokens shared between adjacent chunks generated from the same source structure.

    Declaration
    public int OverlapTokens { get; set; }
    Property Value
    Type Description
    System.Int32

    The maximum number of overlapping tokens. The default is 50. The value must be non-negative and less than MaxTokens.

    SourceOptions

    Gets or sets the format-specific options used for the chunking operation.

    Declaration
    public SourceChunkingOptions SourceOptions { get; set; }
    Property Value
    Type Description
    SourceChunkingOptions

    The format-specific chunking options, or null to use the default options for the detected source format.

    TokenCounter

    Gets or sets the token counter used for the chunking operation.

    Declaration
    public ITokenCounter TokenCounter { get; set; }
    Property Value
    Type Description
    ITokenCounter

    The custom token counter, or null to use the service's default token counter.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved