@delali/narsil 0.2.4-next.47 → 0.2.4-next.49
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 +2 -2
- package/dist/adapters/indexeddb.mjs +15 -10
- package/dist/{chunk-BFIH7OV5.mjs → chunk-2GWVQWGA.mjs} +3 -1
- package/dist/{chunk-UZTT2BKQ.mjs → chunk-56PJBIJ6.mjs} +891 -542
- package/dist/chunk-CBLS46IE.mjs +10 -0
- package/dist/{chunk-JQUL2T6I.mjs → chunk-GCM3JFVA.mjs} +1 -2
- package/dist/{chunk-4COAUBLJ.mjs → chunk-HGJC5L65.mjs} +4 -7
- package/dist/{chunk-DFZDV5FV.mjs → chunk-JXHUHFJ5.mjs} +27 -14
- package/dist/{chunk-XWICBGYT.mjs → chunk-KGRYQVZ5.mjs} +2 -5
- package/dist/{chunk-EV45L35L.mjs → chunk-M6JGMKA5.mjs} +391 -183
- package/dist/{chunk-PM52SMBT.mjs → chunk-OOSIDHA3.mjs} +2 -1
- package/dist/chunk-ORBLD3EL.mjs +6 -0
- package/dist/chunk-OWCFK42Q.mjs +30 -0
- package/dist/{chunk-WTONLDU3.mjs → chunk-RDGXYRF4.mjs} +1 -0
- package/dist/chunk-UNEEFTEU.mjs +7 -0
- package/dist/chunk-YEO6G2NG.mjs +6 -0
- package/dist/{client-C5BkUqB8.d.ts → client-DX7xPcNA.d.ts} +1 -1
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +224 -222
- package/dist/{config-B-ZI-ft5.d.ts → config-B41W23Us.d.ts} +1 -1
- package/dist/{config-BZRExglL.d.ts → config-Co-zAXqO.d.ts} +27 -11
- package/dist/direct-executor-HRTDWMVB.mjs +9 -0
- package/dist/distribution/coordinator/etcd.mjs +4 -7
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- package/dist/distribution/transport/grpc.mjs +7 -9
- package/dist/distribution/transport/in-memory.mjs +2 -1
- package/dist/distribution/transport/tcp.mjs +3 -2
- package/dist/distribution.d.ts +5 -5
- package/dist/distribution.mjs +121 -97
- package/dist/embeddings/openai.mjs +5 -3
- package/dist/{engine-Cjr1uBLa.d.ts → engine-CABZg25p.d.ts} +12 -8
- package/dist/index.browser.mjs +1514 -894
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +9 -8
- package/dist/invalidation/broadcast-channel.mjs +2 -1
- package/dist/invalidation/filesystem.mjs +3 -4
- package/dist/{options-BC68VPoE.d.ts → options-Dtk99qUs.d.ts} +1 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +9 -8
- package/dist/react.d.ts +3 -3
- package/dist/react.mjs +7 -5
- package/dist/{search-DDHjfXhJ.d.ts → search-FjWhZN3f.d.ts} +20 -3
- package/dist/server.d.ts +6 -6
- package/dist/server.mjs +43 -30
- package/dist/vector/hnsw-build-worker.mjs +2 -4
- package/dist/vector/search-worker.mjs +3 -4
- package/dist/workers/entry.mjs +2 -2
- package/package.json +1 -1
- package/dist/direct-executor-EOTFGXTO.mjs +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter } from './adapters-79OIa4xm.js';
|
|
2
|
-
import { I as IndexInfo, f as IndexStats, P as PartitionStatsResult, B as BatchResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, h as PreflightResult, i as SuggestParams, j as SuggestResult, M as MemoryStats, V as VectorMaintenanceResult } from './search-
|
|
2
|
+
import { I as IndexInfo, f as IndexStats, P as PartitionStatsResult, B as BatchResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, h as PreflightResult, i as SuggestParams, j as SuggestResult, M as MemoryStats, V as VectorMaintenanceResult } from './search-FjWhZN3f.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument, b as InsertOptions, P as PartitionConfig } from './schema-B7juWg8Q.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -16,8 +16,12 @@ type NarsilEventMap = {
|
|
|
16
16
|
/**
|
|
17
17
|
* A worker thread died. The pool drops it and fails its outstanding requests
|
|
18
18
|
* with `WORKER_CRASHED`, while the remaining workers keep answering because
|
|
19
|
-
* each holds a full worker copy of every promoted index.
|
|
20
|
-
*
|
|
19
|
+
* each holds a full worker copy of every promoted index. After a delay the
|
|
20
|
+
* engine spawns a replacement, loads every copy onto it, and puts it back
|
|
21
|
+
* into rotation. Once no worker is left, queries fall back to the main
|
|
22
|
+
* thread, which holds every document, and the next request after the delay
|
|
23
|
+
* starts a new pool. The delay starts at one second and doubles up to a
|
|
24
|
+
* minute while replacements keep failing.
|
|
21
25
|
*/
|
|
22
26
|
workerCrash: {
|
|
23
27
|
/** This worker died. */
|
|
@@ -27,16 +31,16 @@ type NarsilEventMap = {
|
|
|
27
31
|
/** This ended the worker. */
|
|
28
32
|
error: Error;
|
|
29
33
|
};
|
|
30
|
-
/**
|
|
34
|
+
/** An index gained worker copies, whether it reached the copy threshold or loaded its copies again after an idle spell. */
|
|
31
35
|
workerPromote: {
|
|
32
|
-
/** The pool
|
|
36
|
+
/** The pool holds this many workers. */
|
|
33
37
|
workerCount: number;
|
|
34
|
-
/** The
|
|
38
|
+
/** The index gained its copies for this reason, such as the copy threshold it reached. */
|
|
35
39
|
reason: string;
|
|
36
40
|
};
|
|
37
|
-
/**
|
|
41
|
+
/** An index could not gain worker copies. It keeps answering on the main thread. */
|
|
38
42
|
workerPromoteFailure: {
|
|
39
|
-
/** The engine tried to
|
|
43
|
+
/** The engine tried to load the copies for this reason. */
|
|
40
44
|
reason: string;
|
|
41
45
|
/** This stopped it. */
|
|
42
46
|
error: Error;
|