You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

embeddings-splitter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embeddings-splitter - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+1
-0
lib/index.d.ts

@@ -6,2 +6,3 @@ export declare function split(prompt: string): string[];

export declare function index(chunks: string[], embedCallback: (batch: Batches) => void): Promise<void[]>;
export declare const merge: (chunks: string[], maxLen?: number) => Promise<string>;
declare const _default: {

@@ -8,0 +9,0 @@ split: typeof split;

+3
-2

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.index = exports.split = void 0;
exports.merge = exports.index = exports.split = void 0;
const tiktoken_1 = require("@dqbd/tiktoken");

@@ -80,2 +80,3 @@ const tokenizer = (0, tiktoken_1.get_encoding)('cl100k_base');

});
exports.default = { split, index, merge };
exports.merge = merge;
exports.default = { split, index, merge: exports.merge };
{
"name": "embeddings-splitter",
"version": "0.0.3",
"version": "0.0.4",
"description": "A typescript library to split your long texts into smaller chunks to send them to OpenAI Embeddings",

@@ -5,0 +5,0 @@ "main": "lib/index.js",