allowedSpecial
allowedSpecial: string[] | "all"
chunkOverlap
chunkOverlap: number = 200
chunkSize
chunkSize: number = 1000
disallowedSpecial
disallowedSpecial: string[] | "all"
encodingName
encodingName: TiktokenEncoding
keepSeparator
keepSeparator: boolean = false
lengthFunction
lengthFunction: ((text: string) => number) | ((text: string) => Promise<number>)
Implementation of splitter which looks at tokens.