matts-llm-tools
Version:
Some useful tools for working with LLMs
5 lines (4 loc) • 424 B
TypeScript
export declare function getFileNames(filepath: string, namePattern: string, sortFunction?: (a: string, b: string) => number): Promise<string[]>;
export declare function chunkTextBySentences(sourceText: string, sentencesPerChunk: number, overlap: number): string[];
export declare function latestModelGetter(modelName: string, debug?: boolean): Promise<void>;
export declare function jsonhash(json: string): Promise<string>;