Hierarchy (view full)

Implements

Constructors

Properties

chunkOverlap: number = 200
chunkSize: number = 1000
keepSeparator: boolean = false
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>

separators: string[] = ...

Methods

  • Parameters

    • language: "cpp" | "go" | "java" | "js" | "php" | "proto" | "python" | "rst" | "ruby" | "rust" | "scala" | "swift" | "markdown" | "latex" | "html" | "sol"

    Returns string[]

Generated using TypeDoc