interface CharacterTextSplitterParams {
    chunkOverlap: number;
    chunkSize: number;
    keepSeparator: boolean;
    separator: string;
    lengthFunction?: ((text: string) => number) | ((text: string) => Promise<number>);
}

Hierarchy (view full)

Implemented by

Properties

chunkOverlap: number
chunkSize: number
keepSeparator: boolean
separator: string
lengthFunction?: ((text: string) => number) | ((text: string) => Promise<number>)