Skip to main content

Input

Type: TextStream | ContentStream The data type that TextChunkingNode accepts as input. See TextStream and ContentStream for more details.

Output

Type: GraphTypes.TextStream The data type that TextChunkingNode outputs

Examples

const chunkingNode = new TextChunkingNode({
id: 'my-chunking-node',
reportToClient: true,
minChunkLength: 100
});

Constructors

Interfaces


Constructors

constructor

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

Parameters

props
TextChunkingNodeProps
Configuration for the text chunking node.

Returns

TextChunkingNode

Interfaces

TextChunkingNodeProps

Configuration properties for TextChunkingNode.

Properties

minChunkLength?: number Optional minimum chunk length (in bytes) for sentence splitting. If not provided, the default value is 80.