@delali/narsil 0.2.4-next.43 → 0.2.4-next.45
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/dist/adapters/filesystem.mjs +1 -1
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/{chunk-TLRUUMVE.mjs → chunk-P4ELXVJQ.mjs} +1 -0
- package/dist/{chunk-KEDL6FFZ.mjs → chunk-WASNWIEK.mjs} +1142 -327
- package/dist/{chunk-YGQMKTKG.mjs → chunk-XNCJFU2E.mjs} +121 -27
- package/dist/{chunk-O4Q5JYNK.mjs → chunk-XWICBGYT.mjs} +1 -1
- package/dist/{client-B5uO5jL1.d.ts → client-C5BkUqB8.d.ts} +25 -2
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +11 -2
- package/dist/{config-NgUCkc6a.d.ts → config-B-ZI-ft5.d.ts} +2 -2
- package/dist/{config-B09-cud9.d.ts → config-BZRExglL.d.ts} +20 -3
- package/dist/{direct-executor-7O23GEHE.mjs → direct-executor-IMXNRS7O.mjs} +2 -2
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +24 -10
- package/dist/distribution.mjs +1023 -864
- package/dist/embeddings/openai.mjs +1 -1
- package/dist/{engine-CjLhdDIm.d.ts → engine-Cjr1uBLa.d.ts} +28 -6
- package/dist/index.browser.mjs +1237 -330
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +4 -4
- package/dist/{options-BakECW-r.d.ts → options-BC68VPoE.d.ts} +9 -2
- package/dist/persistence/durability/checkpoint-worker.d.ts +3 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.mjs +1 -0
- package/dist/{schema-DXOd96kx.d.ts → schema-B7juWg8Q.d.ts} +1 -1
- package/dist/{search-BGouJxH4.d.ts → search-DDHjfXhJ.d.ts} +14 -3
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +27 -6
- package/dist/{types-BTE33VZS.d.ts → types-DsSSjY4d.d.ts} +1 -1
- package/dist/workers/entry.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import { I as IndexConfig, A as AnyDocument,
|
|
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-DDHjfXhJ.js';
|
|
3
|
+
import { I as IndexConfig, A as AnyDocument, b as InsertOptions, P as PartitionConfig } from './schema-B7juWg8Q.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Every event the engine emits, with the payload each one carries.
|
|
@@ -88,6 +88,28 @@ type NarsilEventMap = {
|
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Opens and closes durable indexes without deleting them.
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
interface IndexLifecycleOperations {
|
|
97
|
+
/**
|
|
98
|
+
* Loads a closed index from its durable checkpoint and resets a parked recovery failure.
|
|
99
|
+
*
|
|
100
|
+
* @param indexName - The index to load.
|
|
101
|
+
* @returns A promise that settles when the index is ready for operations.
|
|
102
|
+
*/
|
|
103
|
+
open(indexName: string): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Drains active work, checkpoints the index, releases its memory, and keeps its durable files.
|
|
106
|
+
*
|
|
107
|
+
* @param indexName - The index to close.
|
|
108
|
+
* @returns A promise that settles after the index releases its memory.
|
|
109
|
+
*/
|
|
110
|
+
close(indexName: string): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
|
|
91
113
|
/**
|
|
92
114
|
* The search engine, and everything you do with it.
|
|
93
115
|
*
|
|
@@ -97,7 +119,7 @@ type NarsilEventMap = {
|
|
|
97
119
|
*
|
|
98
120
|
* @public
|
|
99
121
|
*/
|
|
100
|
-
interface Narsil {
|
|
122
|
+
interface Narsil extends IndexLifecycleOperations {
|
|
101
123
|
/**
|
|
102
124
|
* Creates an index you can insert documents into and query.
|
|
103
125
|
*
|
|
@@ -140,7 +162,7 @@ interface Narsil {
|
|
|
140
162
|
* an index grows unevenly or a rebalance is worth running.
|
|
141
163
|
*
|
|
142
164
|
* @param indexName - The index to describe.
|
|
143
|
-
* @returns One entry per partition, in partition order.
|
|
165
|
+
* @returns One entry per open partition, in partition order, or an empty list while the index is closed.
|
|
144
166
|
*/
|
|
145
167
|
getPartitionStats(indexName: string): PartitionStatsResult[];
|
|
146
168
|
/**
|
|
@@ -422,7 +444,7 @@ interface Narsil {
|
|
|
422
444
|
* optimisation would cost.
|
|
423
445
|
*
|
|
424
446
|
* @param indexName - The index to describe.
|
|
425
|
-
* @returns One entry per vector field.
|
|
447
|
+
* @returns One entry per vector field, or an empty list while the index is closed.
|
|
426
448
|
*/
|
|
427
449
|
vectorMaintenanceStatus(indexName: string): VectorMaintenanceResult[];
|
|
428
450
|
/**
|
|
@@ -456,4 +478,4 @@ interface Narsil {
|
|
|
456
478
|
shutdown(): Promise<void>;
|
|
457
479
|
}
|
|
458
480
|
|
|
459
|
-
export type { NarsilEventMap as N, Narsil as a };
|
|
481
|
+
export type { IndexLifecycleOperations as I, NarsilEventMap as N, Narsil as a };
|