UNPKG

embeddings-splitter

Version:

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

14 lines (13 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllFilesFromGithubRepo = exports.getChunksByPython = exports.getChunksByNewLine = exports.splitText = exports.getChunksSimple = void 0; const getChunksSimple_1 = require("./helpers/getChunksSimple"); Object.defineProperty(exports, "getChunksSimple", { enumerable: true, get: function () { return getChunksSimple_1.getChunksSimple; } }); const getChunksByMaxToken_1 = require("./helpers/getChunksByMaxToken"); Object.defineProperty(exports, "splitText", { enumerable: true, get: function () { return getChunksByMaxToken_1.splitText; } }); const getChunksByNewLine_1 = require("./helpers/getChunksByNewLine"); Object.defineProperty(exports, "getChunksByNewLine", { enumerable: true, get: function () { return getChunksByNewLine_1.getChunksByNewLine; } }); const getChunksByPython_1 = require("./helpers/getChunksByPython"); Object.defineProperty(exports, "getChunksByPython", { enumerable: true, get: function () { return getChunksByPython_1.getChunksByPython; } }); const github_1 = require("./helpers/github"); Object.defineProperty(exports, "getAllFilesFromGithubRepo", { enumerable: true, get: function () { return github_1.getAllFilesFromGithubRepo; } });