Hierarchy (view full)

Implements

Constructors

Properties

chunkOverlap: number = 200
chunkSize: number = 1000
keepSeparator: boolean = false
lengthFunction: ((text: string) => number) | ((text: string) => Promise<number>)
separators: string[] = ...

Methods

  • Parameters

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

    Returns string[]