embeddings-splitter
Version:
A typescript library to split your long texts into smaller chunks to send them to OpenAI Embeddings API
15 lines (14 loc) • 450 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Uuid = void 0;
const node_crypto_1 = __importDefault(require("node:crypto"));
class Uuid {
v4(options) {
return node_crypto_1.default.randomUUID(options);
}
}
exports.Uuid = Uuid;
exports.default = new Uuid();