Properties
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) => number) | ((text) => Promise<number>)
Type declaration
-
- (text): number
-
Returns number
Type declaration
-
- (text): Promise<number>
-
Returns Promise<number>
Implementation of splitter which looks at tokens.