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"
          | "cpp"
          | "go"
          | "java"
          | "js"
          | "php"
          | "proto"
          | "python"
          | "rst"
          | "ruby"
          | "rust"
          | "scala"
          | "swift"
          | "markdown"
          | "latex"
          | "sol"

    Returns string[]