SemanticChunkingStrategy.MaxTokens Property

Definition

Target chunk size expressed in tokens. Interpreted as a soft limit; the chunking process may slightly exceed this value to respect semantic or structural boundaries.

public int? MaxTokens { get; set; }
member this.MaxTokens : Nullable<int> with get, set
Public Property MaxTokens As Nullable(Of Integer)

Property Value

Applies to