ChunkingOptions Class
Provides configuration options for generating chunks suitable for retrieval-augmented generation (RAG).
Inheritance
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 |
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 |
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. |