interface RecursiveCharacterTextSplitterParams {
    chunkOverlap: number;
    chunkSize: number;
    keepSeparator: boolean;
    separators: string[];
    lengthFunction?: ((text: string) => number) | ((text: string) => Promise<number>);
}

Hierarchy (view full)

Implemented by

Properties

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