embeddings-splitter
Advanced tools
+1
-0
@@ -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 }; |
+1
-1
| { | ||
| "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", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
193394
0.07%1325
0.15%