UNPKG

embeddings-splitter

Version:

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

7 lines (6 loc) 179 B
interface FunctionData { code: string; function_name: string; } declare function getFunctions(code: string): FunctionData[]; export { getFunctions as getChunksByPython };