embeddings-js
Version:
A NodeJS RAG framework to easily work with LLMs and custom datasets
4 lines (3 loc) • 345 B
TypeScript
export declare function mapAsync<T, U>(array: T[], callbackfn: (value: T, index: number, array: T[]) => Promise<U>): Promise<U[]>;
export declare function filterAsync<T>(array: T[], callbackfn: (value: T, index: number, array: T[]) => Promise<boolean>): Promise<T[]>;
export declare function createArrayChunks<T>(arr: T[], size: number): T[][];