UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

21 lines (20 loc) 733 B
export declare class TextChunker { static fixedCharacterLength(text: string, opts: { chunkLength: number; overlap: number; }): string[]; static parentDocRetrieval(text: string, opts: { parentChunker: (text: string) => string[]; childChunker: (parentText: string) => string[]; }): { doc: string; metadata: { parent: string; }; }[]; static sentences(text: string): string[]; static singleLine(content: string): string[]; static multiLines(content: string, linesPerChunk: number): string[]; static characters(content: string, characterLimit: number): string[]; static words(content: string, characterLimit: number): string[]; }