Skip to main content
Text chunking node for splitting text into smaller segments. This node processes text input and divides it into manageable chunks based on configurable parameters like chunk size and overlap. Input: String - The data type that TextChunkingNode accepts as input Output: GraphTypes.TextChunks - The data type that TextChunkingNode outputs Example:
const textChunkingNode = new TextChunkingNode({
  id: 'my-text-chunking-node'
});

Constructor

new TextChunkingNode(props?: TextChunkingNodeProps): TextChunkingNode
Creates a new TextChunkingNode instance.

Parameters

props (TextChunkingNodeProps) = {} Optional configuration for the text chunking node

Returns

TextChunkingNode