UNPKG

embeddings-splitter

Version:

A typescript library to split your long texts into smaller chunks to send them to OpenAI Embeddings API

6 lines (5 loc) 158 B
export declare function getChunksSimple({ text, // The input text to be split maxCharLength, }: { text: string; maxCharLength?: number; }): string[];