Overview
The main function of the document chunker node is:To split long document content into logically coherent, indexable text blocks according to configuration strategies, enabling structured knowledge and efficient retrieval.During the execution of the knowledge pipeline, the chunker node receives standardized document content output from upstream nodes (such as “Document Converter” or “Data Source Node”) and automatically splits it based on the configured chunking strategy. These chunking results are written into the knowledge base, forming a hierarchical tree structure to facilitate efficient embedding and semantic search in later stages.
Pluggable Chunking Strategies
XpertAI’s document chunker node is fully based on a Strategy Plugin Mechanism. This means the system can dynamically switch between different chunking algorithms according to document type, business scenario, or language characteristics. Common strategies include:- Recursive Character Splitter: Recursively splits long text by paragraphs, sentences, and spaces, balancing semantic integrity and chunk size.
- Markdown Hierarchical Chunking:
For technical documents or knowledge articles, splits based on heading levels (
#,##, etc.) to form parent-child chunk structures, preserving contextual semantics. - Semantic Similarity Chunking (in development): Uses sentence embeddings from language models to dynamically detect topic shifts and achieve intelligent chunking.
Intelligent Configuration & Visual Debugging
In the knowledge pipeline orchestration interface, users can configure key parameters for the chunker node, such as:- Chunk Size: Maximum number of characters or tokens per text block;
- Chunk Overlap: Overlap length between adjacent chunks to maintain context continuity;
- Separators: List of delimiters used to identify paragraphs or sentences in the text;
- Custom Strategy Selection: Select the most suitable algorithm from the chunking strategy dropdown provided by plugins.