SemanticChunkingStrategy Class

Definition

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

public class SemanticChunkingStrategy : Azure.AI.ContentUnderstanding.ChunkingStrategy, System.ClientModel.Primitives.IJsonModel<Azure.AI.ContentUnderstanding.SemanticChunkingStrategy>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.ContentUnderstanding.SemanticChunkingStrategy>
type SemanticChunkingStrategy = class
    inherit ChunkingStrategy
    interface IJsonModel<SemanticChunkingStrategy>
    interface IPersistableModel<SemanticChunkingStrategy>
Public Class SemanticChunkingStrategy
Inherits ChunkingStrategy
Implements IJsonModel(Of SemanticChunkingStrategy), IPersistableModel(Of SemanticChunkingStrategy)
Inheritance
SemanticChunkingStrategy
Implements

Constructors

Name Description
SemanticChunkingStrategy()

Initializes a new instance of SemanticChunkingStrategy.

Properties

Name Description
MaxTokens

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.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ChunkingStrategy>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from ChunkingStrategy)
IJsonModel<ChunkingStrategy>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ChunkingStrategy)
IJsonModel<SemanticChunkingStrategy>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<SemanticChunkingStrategy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ChunkingStrategy>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from ChunkingStrategy)
IPersistableModel<ChunkingStrategy>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from ChunkingStrategy)
IPersistableModel<ChunkingStrategy>.Write(ModelReaderWriterOptions) (Inherited from ChunkingStrategy)
IPersistableModel<SemanticChunkingStrategy>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<SemanticChunkingStrategy>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<SemanticChunkingStrategy>.Write(ModelReaderWriterOptions)

Applies to