Skip to main content

Overview

Semantic splitter identifies boundaries by embedding sentences and finding points of high cosine distance between adjacent sentences, indicating topic changes. Uses statistical methods to determine breakpoint thresholds. Requires an embedding provider. Splitter Class: SemanticChunker Config Class: SemanticChunkingConfig

Dependencies

Also requires an embedding provider (e.g., OpenAIEmbedding).

Examples

Parameters