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) • 419 B
TypeScript
import { getChunksSimple } from './helpers/getChunksSimple';
import { splitText } from './helpers/getChunksByMaxToken';
import { getChunksByNewLine } from './helpers/getChunksByNewLine';
import { getChunksByPython } from './helpers/getChunksByPython';
import { getAllFilesFromGithubRepo } from './helpers/github';
export { getChunksSimple, splitText, getChunksByNewLine, getChunksByPython, getAllFilesFromGithubRepo };