@memberjunction/ai-vectors-memory 6.2.0-edge.2 → 6.2.0-edge.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -12
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/models/MetadataFilterEvaluator.d.ts +37 -0
- package/dist/models/MetadataFilterEvaluator.d.ts.map +1 -0
- package/dist/models/MetadataFilterEvaluator.js +233 -0
- package/dist/models/MetadataFilterEvaluator.js.map +1 -0
- package/dist/models/SimpleVectorDatabase.d.ts +55 -11
- package/dist/models/SimpleVectorDatabase.d.ts.map +1 -1
- package/dist/models/SimpleVectorDatabase.js +148 -35
- package/dist/models/SimpleVectorDatabase.js.map +1 -1
- package/dist/models/SimpleVectorService.d.ts +164 -12
- package/dist/models/SimpleVectorService.d.ts.map +1 -1
- package/dist/models/SimpleVectorService.js +612 -286
- package/dist/models/SimpleVectorService.js.map +1 -1
- package/dist/models/SimpleVectorServiceProvider.d.ts +151 -35
- package/dist/models/SimpleVectorServiceProvider.d.ts.map +1 -1
- package/dist/models/SimpleVectorServiceProvider.js +429 -106
- package/dist/models/SimpleVectorServiceProvider.js.map +1 -1
- package/dist/models/StoredVector.d.ts +35 -0
- package/dist/models/StoredVector.d.ts.map +1 -0
- package/dist/models/StoredVector.js +83 -0
- package/dist/models/StoredVector.js.map +1 -0
- package/dist/models/VectorAccelerator.d.ts +109 -0
- package/dist/models/VectorAccelerator.d.ts.map +1 -0
- package/dist/models/VectorAccelerator.js +97 -0
- package/dist/models/VectorAccelerator.js.map +1 -0
- package/dist/models/VectorKernels.d.ts +117 -0
- package/dist/models/VectorKernels.d.ts.map +1 -0
- package/dist/models/VectorKernels.js +338 -0
- package/dist/models/VectorKernels.js.map +1 -0
- package/dist/models/VectorStore.d.ts +157 -0
- package/dist/models/VectorStore.d.ts.map +1 -0
- package/dist/models/VectorStore.js +376 -0
- package/dist/models/VectorStore.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Packed, row-oriented storage behind {@link SimpleVectorService}.
|
|
3
|
+
*
|
|
4
|
+
* Vectors live in one contiguous typed array instead of one `number[]` per
|
|
5
|
+
* key, with each row's sum of squares cached alongside. That halves memory at
|
|
6
|
+
* float32, removes per-search allocation, and lets a worker thread read the
|
|
7
|
+
* same memory when the buffers are `SharedArrayBuffer`s.
|
|
8
|
+
*
|
|
9
|
+
* Rows are kept in insertion order — the order a `Map` iterates — so ranking
|
|
10
|
+
* ties resolve exactly as they did when the service stored a `Map`:
|
|
11
|
+
* - overwriting an existing key writes its row in place (keeps its position)
|
|
12
|
+
* - removing a key leaves a tombstone; the next add appends at the end
|
|
13
|
+
* - tombstones are reclaimed by an order-preserving compaction
|
|
14
|
+
*
|
|
15
|
+
* **Concurrency contract for readers on other threads.** Growth and compaction
|
|
16
|
+
* allocate NEW buffers and a NEW key array, so a snapshot taken earlier keeps
|
|
17
|
+
* a consistent row→key mapping. An in-place overwrite can be observed half
|
|
18
|
+
* written by a concurrent reader; callers that read from another thread must
|
|
19
|
+
* re-score their final rows against the live store (the service does).
|
|
20
|
+
*
|
|
21
|
+
* @module @memberjunction/ai-vectors-memory
|
|
22
|
+
*/
|
|
23
|
+
import { SumOfSquares } from './VectorKernels.js';
|
|
24
|
+
const MIN_CAPACITY = 16;
|
|
25
|
+
const GROWTH_FACTOR = 1.5;
|
|
26
|
+
/** Compact once tombstones exceed both this count and {@link COMPACT_RATIO} of rows. */
|
|
27
|
+
const COMPACT_MIN_TOMBSTONES = 64;
|
|
28
|
+
const COMPACT_RATIO = 0.25;
|
|
29
|
+
/** Most recent row changes remembered for {@link VectorStore.ChangedRowsSince}. */
|
|
30
|
+
const CHANGE_LOG_CAPACITY = 8192;
|
|
31
|
+
const DEFAULT_ALLOCATOR = (byteLength) => new ArrayBuffer(byteLength);
|
|
32
|
+
let nextStoreID = 1;
|
|
33
|
+
/**
|
|
34
|
+
* Packed row store keyed by string. Not thread-safe for writers; see the
|
|
35
|
+
* file overview for the reader contract.
|
|
36
|
+
*/
|
|
37
|
+
export class VectorStore {
|
|
38
|
+
constructor(precision = 'float64', allocate) {
|
|
39
|
+
this.readOnly = false;
|
|
40
|
+
this.storeID = nextStoreID++;
|
|
41
|
+
this.dims = 0;
|
|
42
|
+
this.capacity = 0;
|
|
43
|
+
this.rowCount = 0;
|
|
44
|
+
this.liveCount = 0;
|
|
45
|
+
this.zeroNormRows = 0;
|
|
46
|
+
this.generation = 0;
|
|
47
|
+
this.version = 0;
|
|
48
|
+
this.norms = new Float64Array(0);
|
|
49
|
+
this.live = new Uint8Array(0);
|
|
50
|
+
this.keys = [];
|
|
51
|
+
this.metadata = [];
|
|
52
|
+
this.rowByKey = new Map();
|
|
53
|
+
/** Rows written or removed, oldest first, with the version each change produced. */
|
|
54
|
+
this.changedRows = [];
|
|
55
|
+
this.changedVersions = [];
|
|
56
|
+
/** Changes at or before this version are no longer in the log. */
|
|
57
|
+
this.changeLogFloor = 0;
|
|
58
|
+
this.precision = precision;
|
|
59
|
+
this.allocate = allocate ?? DEFAULT_ALLOCATOR;
|
|
60
|
+
this.data = precision === 'float32' ? new Float32Array(0) : new Float64Array(0);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Wraps an existing view (for example, shared memory received by a worker)
|
|
64
|
+
* as a read-only store. Each live row in `candidates` (or every live row)
|
|
65
|
+
* gets the synthetic key `String(row)`, so results computed on the
|
|
66
|
+
* adopted store map straight back to source rows.
|
|
67
|
+
*/
|
|
68
|
+
static Adopt(view, precision, candidates) {
|
|
69
|
+
const store = new VectorStore(precision);
|
|
70
|
+
store.adoptView(view, candidates);
|
|
71
|
+
return store;
|
|
72
|
+
}
|
|
73
|
+
// ── Read accessors ─────────────────────────────────────────────────────
|
|
74
|
+
get Precision() { return this.precision; }
|
|
75
|
+
/** Dimensions per row, or 0 before the first vector is written. */
|
|
76
|
+
get Dims() { return this.dims; }
|
|
77
|
+
/** Live rows. */
|
|
78
|
+
get Size() { return this.liveCount; }
|
|
79
|
+
/** Rows written, including tombstones. */
|
|
80
|
+
get RowCount() { return this.rowCount; }
|
|
81
|
+
/** Live rows whose vector is all zeros. */
|
|
82
|
+
get ZeroNormRows() { return this.zeroNormRows; }
|
|
83
|
+
/** Process-unique identity of this store. */
|
|
84
|
+
get StoreID() { return this.storeID; }
|
|
85
|
+
get Generation() { return this.generation; }
|
|
86
|
+
get Version() { return this.version; }
|
|
87
|
+
/** True when the row buffers are shared with other threads. */
|
|
88
|
+
get IsShared() {
|
|
89
|
+
return typeof SharedArrayBuffer !== 'undefined' && this.data.buffer instanceof SharedArrayBuffer;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The current row→key array. It is replaced (never reordered) on
|
|
93
|
+
* compaction, so a captured reference stays valid for the rows it saw.
|
|
94
|
+
*/
|
|
95
|
+
get Keys() { return this.keys; }
|
|
96
|
+
Has(key) { return this.rowByKey.has(key); }
|
|
97
|
+
RowOf(key) { return this.rowByKey.get(key); }
|
|
98
|
+
KeyAt(row) { return this.keys[row] ?? null; }
|
|
99
|
+
MetadataAt(row) { return this.metadata[row]; }
|
|
100
|
+
NormAt(row) { return this.norms[row]; }
|
|
101
|
+
IsLive(row) { return this.live[row] === 1; }
|
|
102
|
+
/** The live view used by kernels on this thread. */
|
|
103
|
+
View() {
|
|
104
|
+
return { Data: this.data, Norms: this.norms, Live: this.live, RowCount: this.rowCount, Dims: this.dims };
|
|
105
|
+
}
|
|
106
|
+
/** A view plus version stamps, for readers on other threads. */
|
|
107
|
+
Snapshot() {
|
|
108
|
+
return {
|
|
109
|
+
...this.View(),
|
|
110
|
+
StoreID: this.storeID,
|
|
111
|
+
LiveCount: this.liveCount,
|
|
112
|
+
Precision: this.precision,
|
|
113
|
+
Generation: this.generation,
|
|
114
|
+
Version: this.version,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Rows written or removed after `version`, oldest first (a row can repeat).
|
|
119
|
+
* Lets a derived index — a native ANN graph, say — follow the store
|
|
120
|
+
* incrementally. Returns null when it cannot answer: the change log no
|
|
121
|
+
* longer reaches back that far, or rows were renumbered since (generation
|
|
122
|
+
* changed), so the caller must rebuild from scratch.
|
|
123
|
+
*/
|
|
124
|
+
ChangedRowsSince(version, generation) {
|
|
125
|
+
if (generation !== this.generation || version < this.changeLogFloor)
|
|
126
|
+
return null;
|
|
127
|
+
let first = this.changedVersions.length;
|
|
128
|
+
while (first > 0 && this.changedVersions[first - 1] > version)
|
|
129
|
+
first--;
|
|
130
|
+
return Int32Array.from(this.changedRows.slice(first));
|
|
131
|
+
}
|
|
132
|
+
/** Live rows in insertion order. */
|
|
133
|
+
LiveRows() {
|
|
134
|
+
const rows = new Int32Array(this.liveCount);
|
|
135
|
+
let n = 0;
|
|
136
|
+
for (let row = 0; row < this.rowCount; row++) {
|
|
137
|
+
if (this.live[row] === 1)
|
|
138
|
+
rows[n++] = row;
|
|
139
|
+
}
|
|
140
|
+
return rows;
|
|
141
|
+
}
|
|
142
|
+
/** A row's values as a plain array (a copy). */
|
|
143
|
+
ReadRow(row) {
|
|
144
|
+
const start = row * this.dims;
|
|
145
|
+
return Array.from(this.data.subarray(start, start + this.dims));
|
|
146
|
+
}
|
|
147
|
+
/** A row's values as a typed array in the store's precision (a copy). */
|
|
148
|
+
CopyRow(row) {
|
|
149
|
+
const start = row * this.dims;
|
|
150
|
+
return this.data.slice(start, start + this.dims);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Copies a vector into a Float64Array with each value rounded to the store's
|
|
154
|
+
* precision, so it compares exactly like a stored row (equality-based
|
|
155
|
+
* metrics such as hamming depend on that).
|
|
156
|
+
*/
|
|
157
|
+
ToStorePrecision(vector) {
|
|
158
|
+
return this.precision === 'float32' ? Float64Array.from(vector, Math.fround) : Float64Array.from(vector);
|
|
159
|
+
}
|
|
160
|
+
// ── Mutation ───────────────────────────────────────────────────────────
|
|
161
|
+
/** Reserves room for `additionalRows` more rows so a bulk load allocates once. */
|
|
162
|
+
Reserve(additionalRows, dims) {
|
|
163
|
+
this.assertWritable();
|
|
164
|
+
if (this.dims === 0)
|
|
165
|
+
this.dims = dims;
|
|
166
|
+
this.ensureCapacity(this.rowCount + additionalRows);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Writes a vector for `key`, overwriting the existing row in place or
|
|
170
|
+
* appending a new one. Metadata is left to {@link SetMetadata}. The caller
|
|
171
|
+
* is responsible for dimension validation.
|
|
172
|
+
*
|
|
173
|
+
* @returns The row the vector was written to
|
|
174
|
+
*/
|
|
175
|
+
Write(key, vector) {
|
|
176
|
+
this.assertWritable();
|
|
177
|
+
if (this.dims === 0)
|
|
178
|
+
this.dims = vector.length;
|
|
179
|
+
let row = this.rowByKey.get(key);
|
|
180
|
+
if (row === undefined) {
|
|
181
|
+
this.ensureCapacity(this.rowCount + 1);
|
|
182
|
+
row = this.rowCount++;
|
|
183
|
+
this.keys[row] = key;
|
|
184
|
+
this.metadata[row] = undefined;
|
|
185
|
+
this.rowByKey.set(key, row);
|
|
186
|
+
this.live[row] = 1;
|
|
187
|
+
this.liveCount++;
|
|
188
|
+
}
|
|
189
|
+
else if (this.norms[row] === 0) {
|
|
190
|
+
this.zeroNormRows--;
|
|
191
|
+
}
|
|
192
|
+
this.writeValues(row, vector);
|
|
193
|
+
this.version++;
|
|
194
|
+
this.recordChange(row);
|
|
195
|
+
return row;
|
|
196
|
+
}
|
|
197
|
+
SetMetadata(row, metadata) {
|
|
198
|
+
this.assertWritable();
|
|
199
|
+
this.metadata[row] = metadata;
|
|
200
|
+
}
|
|
201
|
+
/** Removes a key, leaving a tombstone. Compacts when tombstones pile up. */
|
|
202
|
+
Remove(key) {
|
|
203
|
+
this.assertWritable();
|
|
204
|
+
const row = this.rowByKey.get(key);
|
|
205
|
+
if (row === undefined)
|
|
206
|
+
return false;
|
|
207
|
+
this.rowByKey.delete(key);
|
|
208
|
+
this.keys[row] = null;
|
|
209
|
+
this.metadata[row] = undefined;
|
|
210
|
+
this.live[row] = 0;
|
|
211
|
+
if (this.norms[row] === 0)
|
|
212
|
+
this.zeroNormRows--;
|
|
213
|
+
this.liveCount--;
|
|
214
|
+
this.version++;
|
|
215
|
+
this.recordChange(row);
|
|
216
|
+
this.compactIfWorthwhile();
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
/** Removes every row. The dimension lock is kept, as the service always has. */
|
|
220
|
+
Clear() {
|
|
221
|
+
this.assertWritable();
|
|
222
|
+
this.rowCount = 0;
|
|
223
|
+
this.liveCount = 0;
|
|
224
|
+
this.zeroNormRows = 0;
|
|
225
|
+
this.capacity = 0;
|
|
226
|
+
this.data = this.precision === 'float32' ? new Float32Array(0) : new Float64Array(0);
|
|
227
|
+
this.norms = new Float64Array(0);
|
|
228
|
+
this.live = new Uint8Array(0);
|
|
229
|
+
this.keys = [];
|
|
230
|
+
this.metadata = [];
|
|
231
|
+
this.rowByKey = new Map();
|
|
232
|
+
this.generation++;
|
|
233
|
+
this.version++;
|
|
234
|
+
this.resetChangeLog();
|
|
235
|
+
}
|
|
236
|
+
// ── Internals ──────────────────────────────────────────────────────────
|
|
237
|
+
recordChange(row) {
|
|
238
|
+
this.changedRows.push(row);
|
|
239
|
+
this.changedVersions.push(this.version);
|
|
240
|
+
if (this.changedRows.length > CHANGE_LOG_CAPACITY) {
|
|
241
|
+
const drop = this.changedRows.length - CHANGE_LOG_CAPACITY / 2;
|
|
242
|
+
this.changeLogFloor = this.changedVersions[drop - 1];
|
|
243
|
+
this.changedRows.splice(0, drop);
|
|
244
|
+
this.changedVersions.splice(0, drop);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/** Renumbering rows invalidates the change log; readers must rebuild. */
|
|
248
|
+
resetChangeLog() {
|
|
249
|
+
this.changedRows = [];
|
|
250
|
+
this.changedVersions = [];
|
|
251
|
+
this.changeLogFloor = this.version;
|
|
252
|
+
}
|
|
253
|
+
writeValues(row, vector) {
|
|
254
|
+
const offset = row * this.dims;
|
|
255
|
+
for (let i = 0; i < this.dims; i++) {
|
|
256
|
+
this.data[offset + i] = vector[i];
|
|
257
|
+
}
|
|
258
|
+
// Norm from the STORED values so float32 rows and their norms agree.
|
|
259
|
+
const normSq = SumOfSquares(this.data, offset, this.dims);
|
|
260
|
+
this.norms[row] = normSq;
|
|
261
|
+
if (normSq === 0)
|
|
262
|
+
this.zeroNormRows++;
|
|
263
|
+
}
|
|
264
|
+
ensureCapacity(rows) {
|
|
265
|
+
if (rows <= this.capacity)
|
|
266
|
+
return;
|
|
267
|
+
const next = Math.max(rows, Math.ceil(this.capacity * GROWTH_FACTOR), MIN_CAPACITY);
|
|
268
|
+
this.reallocate(next, this.rowCount);
|
|
269
|
+
}
|
|
270
|
+
/** Copies the first `rowsToCopy` rows into freshly allocated buffers of `capacity` rows. */
|
|
271
|
+
reallocate(capacity, rowsToCopy) {
|
|
272
|
+
const data = this.allocateData(capacity * this.dims);
|
|
273
|
+
const norms = new Float64Array(this.allocate(capacity * Float64Array.BYTES_PER_ELEMENT));
|
|
274
|
+
const live = new Uint8Array(this.allocate(capacity));
|
|
275
|
+
data.set(this.data.subarray(0, rowsToCopy * this.dims));
|
|
276
|
+
norms.set(this.norms.subarray(0, rowsToCopy));
|
|
277
|
+
live.set(this.live.subarray(0, rowsToCopy));
|
|
278
|
+
this.data = data;
|
|
279
|
+
this.norms = norms;
|
|
280
|
+
this.live = live;
|
|
281
|
+
this.capacity = capacity;
|
|
282
|
+
this.version++;
|
|
283
|
+
}
|
|
284
|
+
allocateData(elements) {
|
|
285
|
+
const bytesPer = this.precision === 'float32' ? Float32Array.BYTES_PER_ELEMENT : Float64Array.BYTES_PER_ELEMENT;
|
|
286
|
+
const buffer = this.allocate(elements * bytesPer);
|
|
287
|
+
return this.precision === 'float32' ? new Float32Array(buffer) : new Float64Array(buffer);
|
|
288
|
+
}
|
|
289
|
+
compactIfWorthwhile() {
|
|
290
|
+
const tombstones = this.rowCount - this.liveCount;
|
|
291
|
+
if (tombstones < COMPACT_MIN_TOMBSTONES || tombstones < this.rowCount * COMPACT_RATIO)
|
|
292
|
+
return;
|
|
293
|
+
this.compact();
|
|
294
|
+
}
|
|
295
|
+
/** Order-preserving compaction into new buffers and a new key array. */
|
|
296
|
+
compact() {
|
|
297
|
+
const liveRows = this.LiveRows();
|
|
298
|
+
const capacity = Math.max(MIN_CAPACITY, Math.ceil(liveRows.length * GROWTH_FACTOR));
|
|
299
|
+
const data = this.allocateData(capacity * this.dims);
|
|
300
|
+
const norms = new Float64Array(this.allocate(capacity * Float64Array.BYTES_PER_ELEMENT));
|
|
301
|
+
const live = new Uint8Array(this.allocate(capacity));
|
|
302
|
+
const keys = new Array(liveRows.length);
|
|
303
|
+
const metadata = new Array(liveRows.length);
|
|
304
|
+
const rowByKey = new Map();
|
|
305
|
+
for (let newRow = 0; newRow < liveRows.length; newRow++) {
|
|
306
|
+
const oldRow = liveRows[newRow];
|
|
307
|
+
data.set(this.data.subarray(oldRow * this.dims, (oldRow + 1) * this.dims), newRow * this.dims);
|
|
308
|
+
norms[newRow] = this.norms[oldRow];
|
|
309
|
+
live[newRow] = 1;
|
|
310
|
+
const key = this.keys[oldRow];
|
|
311
|
+
keys[newRow] = key;
|
|
312
|
+
metadata[newRow] = this.metadata[oldRow];
|
|
313
|
+
rowByKey.set(key, newRow);
|
|
314
|
+
}
|
|
315
|
+
this.data = data;
|
|
316
|
+
this.norms = norms;
|
|
317
|
+
this.live = live;
|
|
318
|
+
this.keys = keys;
|
|
319
|
+
this.metadata = metadata;
|
|
320
|
+
this.rowByKey = rowByKey;
|
|
321
|
+
this.capacity = capacity;
|
|
322
|
+
this.rowCount = liveRows.length;
|
|
323
|
+
this.generation++;
|
|
324
|
+
this.version++;
|
|
325
|
+
this.resetChangeLog();
|
|
326
|
+
}
|
|
327
|
+
adoptView(view, candidates) {
|
|
328
|
+
this.data = view.Data;
|
|
329
|
+
this.norms = view.Norms;
|
|
330
|
+
this.live = view.Live;
|
|
331
|
+
this.dims = view.Dims;
|
|
332
|
+
this.rowCount = view.RowCount;
|
|
333
|
+
this.capacity = view.RowCount;
|
|
334
|
+
this.keys = new Array(view.RowCount).fill(null);
|
|
335
|
+
this.metadata = new Array(view.RowCount).fill(undefined);
|
|
336
|
+
const rows = candidates ?? this.liveRowsOfView(view);
|
|
337
|
+
for (let i = 0; i < rows.length; i++) {
|
|
338
|
+
const row = rows[i];
|
|
339
|
+
if (view.Live[row] !== 1)
|
|
340
|
+
continue;
|
|
341
|
+
const key = String(row);
|
|
342
|
+
this.keys[row] = key;
|
|
343
|
+
this.rowByKey.set(key, row);
|
|
344
|
+
this.liveCount++;
|
|
345
|
+
if (view.Norms[row] === 0)
|
|
346
|
+
this.zeroNormRows++;
|
|
347
|
+
}
|
|
348
|
+
// Rows outside `candidates` must be invisible to the adopted store's scans.
|
|
349
|
+
if (candidates)
|
|
350
|
+
this.live = this.maskLive(view, rows);
|
|
351
|
+
this.readOnly = true;
|
|
352
|
+
}
|
|
353
|
+
liveRowsOfView(view) {
|
|
354
|
+
const rows = [];
|
|
355
|
+
for (let row = 0; row < view.RowCount; row++) {
|
|
356
|
+
if (view.Live[row] === 1)
|
|
357
|
+
rows.push(row);
|
|
358
|
+
}
|
|
359
|
+
return Int32Array.from(rows);
|
|
360
|
+
}
|
|
361
|
+
/** A private live mask limited to `rows`, so the shared mask is never written. */
|
|
362
|
+
maskLive(view, rows) {
|
|
363
|
+
const mask = new Uint8Array(view.RowCount);
|
|
364
|
+
for (let i = 0; i < rows.length; i++) {
|
|
365
|
+
if (view.Live[rows[i]] === 1)
|
|
366
|
+
mask[rows[i]] = 1;
|
|
367
|
+
}
|
|
368
|
+
return mask;
|
|
369
|
+
}
|
|
370
|
+
assertWritable() {
|
|
371
|
+
if (this.readOnly) {
|
|
372
|
+
throw new Error('This vector store is a read-only view and cannot be modified');
|
|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,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAEO,cAAc,CAAC,IAAoB;QACzC,MAAM,IAAI,GAAa,EAAE,CAAC;QAC1B,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC;YAC7C,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;gBAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,kFAAkF;IAC1E,QAAQ,CAAC,IAAoB,EAAE,IAAgB;QACrD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,cAAc;QACpB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAClF,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-vectors-memory",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.0-edge.
|
|
4
|
+
"version": "6.2.0-edge.3",
|
|
5
5
|
"description": "MemberJunction: AI Vectors In-Memory Utilities",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@memberjunction/ai-vectordb": "6.2.0-edge.
|
|
15
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
16
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
14
|
+
"@memberjunction/ai-vectordb": "6.2.0-edge.3",
|
|
15
|
+
"@memberjunction/core": "6.2.0-edge.3",
|
|
16
|
+
"@memberjunction/global": "6.2.0-edge.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "24.10.11",
|