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

Hierarchy (view full)

Implemented by

Properties

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

Type declaration

    • (text): number
    • Parameters

      • text: string

      Returns number

Type declaration

    • (text): Promise<number>
    • Parameters

      • text: string

      Returns Promise<number>

Generated using TypeDoc