Lingua

ContentUnderstandingModelFactory.SemanticChunkingStrategy Method

Definition

Semantic chunking strategy that splits content into semantically meaningful, size-controlled chunks.

public static Azure.AI.ContentUnderstanding.SemanticChunkingStrategy SemanticChunkingStrategy(int? maxTokens = default);
static member SemanticChunkingStrategy : Nullable<int> -> Azure.AI.ContentUnderstanding.SemanticChunkingStrategy
Public Shared Function SemanticChunkingStrategy (Optional maxTokens As Nullable(Of Integer) = Nothing) As SemanticChunkingStrategy

Parameters

maxTokens
Nullable<Int32>

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.

Returns

A new SemanticChunkingStrategy instance for mocking.

Applies to