@delali/narsil 0.3.1-next.130 → 0.3.1-next.131
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/{capabilities-Bl8G9taj.d.ts → capabilities-B6WxrWxt.d.ts} +3 -10
- package/dist/{chunk-YBWSV5DV.mjs → chunk-5W7AEVTH.mjs} +1 -1
- package/dist/{chunk-QQTXT65X.mjs → chunk-OGLV4I3L.mjs} +1 -1
- package/dist/{chunk-XABMCBHA.mjs → chunk-RCMNL7RI.mjs} +644 -96
- package/dist/{client-Cx-TiqPE.d.ts → client-gNAfaHcE.d.ts} +3 -3
- package/dist/client.d.ts +7 -8
- package/dist/{config-CzB9YvF_.d.ts → config-CmYJO34X.d.ts} +3 -3
- package/dist/{events-DErop1LM.d.ts → config-D1cDv3sE.d.ts} +420 -2
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution.d.ts +7 -8
- package/dist/{engine-B_W9sdZK.d.ts → engine-m_Ddr1bz.d.ts} +2 -2
- package/dist/{index-CKI1fDEl.d.ts → index-HYnqS1SE.d.ts} +2 -2
- package/dist/index.d.ts +6 -7
- package/dist/{long-query-thread-WVSMIBYP.mjs → long-query-thread-BSL25PD6.mjs} +3 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +1 -1
- package/dist/react.d.ts +11 -8
- package/dist/{schema-CS-clLun.d.ts → schema-BTXbHCqA.d.ts} +4 -1
- package/dist/server.d.ts +198 -11
- package/dist/server.mjs +18 -7
- package/dist/tasks-Co8HfRD7.d.ts +704 -0
- package/dist/{thread-DNK5XWXG.mjs → thread-SKO7CN3R.mjs} +2 -2
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/workers/entry.mjs +4 -4
- package/openapi.json +5215 -0
- package/package.json +16 -8
- package/dist/config-hOWGBeC6.d.ts +0 -414
- package/dist/tasks-BfF-VRhm.d.ts +0 -302
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PartitionConfig, B as BM25Params, A as AnyDocument,
|
|
2
|
-
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams,
|
|
1
|
+
import { P as PartitionConfig, B as BM25Params, A as AnyDocument, I as InsertOptions, W as WriteOptions } from './schema-BTXbHCqA.js';
|
|
2
|
+
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, f as ListResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, Q as QueryParams, m as QueryResult, j as PreflightResult, g as SuggestParams, h as SuggestResult } from './config-D1cDv3sE.js';
|
|
3
3
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
+
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-Co8HfRD7.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This is the `fetch` implementation the client sends every request through.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './
|
|
2
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
3
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-
|
|
4
|
-
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-
|
|
5
|
-
import './schema-CS-clLun.js';
|
|
1
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './config-D1cDv3sE.js';
|
|
2
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-B6WxrWxt.js';
|
|
3
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-Co8HfRD7.js';
|
|
4
|
+
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-gNAfaHcE.js';
|
|
6
5
|
import './adapters-BQFQ4PRz.js';
|
|
6
|
+
import './schema-BTXbHCqA.js';
|
|
7
7
|
import './synonyms-CpOAHPa-.js';
|
|
8
|
-
import './config-
|
|
9
|
-
import './
|
|
10
|
-
import './index-CKI1fDEl.js';
|
|
8
|
+
import './config-CmYJO34X.js';
|
|
9
|
+
import './index-HYnqS1SE.js';
|
|
11
10
|
import './types-DvncmvuQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-
|
|
1
|
+
import { e as NarsilConfig } from './config-D1cDv3sE.js';
|
|
2
|
+
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-HYnqS1SE.js';
|
|
3
3
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -437,4 +437,4 @@ interface ClusterNodeInfo {
|
|
|
437
437
|
status: string;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
export type { ClusterNamespace as C, IndexHealth as I, NodeReadiness as N, PartitionReplicationFigure as P, ReplicaLagFigure as R, VectorRebuildWaitFigure as V,
|
|
440
|
+
export type { ClusterNamespace as C, IndexHealth as I, NodeReadiness as N, PartitionReplicationFigure as P, ReplicaLagFigure as R, VectorRebuildWaitFigure as V, ClusterNodeInfo as a, CreateIndexOptions as b, ClusterNodeConfig as c, ClusterControllerConfig as d, ClusterHealth as e, ClusterHealthStatus as f, ClusterMemoryConfig as g, ClusterMetrics as h, ClusterQueryConfig as i, CommitPointFigure as j, CoordinatorRequestFigure as k, ReplicationConfig as l };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
+
import { A as AnyDocument, S as SchemaDefinition, B as BM25Params, e as ScoringMode, a as IndexConfig } from './schema-BTXbHCqA.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Every code a {@link NarsilError} carries, grouped by the part of the engine
|
|
@@ -364,7 +365,9 @@ interface HighlightMatch {
|
|
|
364
365
|
* field, whatever the snippet contains.
|
|
365
366
|
*/
|
|
366
367
|
positions: Array<{
|
|
368
|
+
/** The match starts at this offset. */
|
|
367
369
|
start: number;
|
|
370
|
+
/** The match ends at this offset. */
|
|
368
371
|
end: number;
|
|
369
372
|
}>;
|
|
370
373
|
}
|
|
@@ -862,7 +865,9 @@ type GeoPolygonFilter = {
|
|
|
862
865
|
* antimeridian or span more than half the globe.
|
|
863
866
|
*/
|
|
864
867
|
points: Array<{
|
|
868
|
+
/** The corner has this latitude, in degrees. */
|
|
865
869
|
lat: number;
|
|
870
|
+
/** The corner has this longitude, in degrees. */
|
|
866
871
|
lon: number;
|
|
867
872
|
}>;
|
|
868
873
|
/** The engine matches the points inside the polygon while this is true, which is the default, and the points outside it while this is false. */
|
|
@@ -1313,7 +1318,9 @@ interface QueryParams {
|
|
|
1313
1318
|
highlight?: HighlightConfig;
|
|
1314
1319
|
/** These documents take fixed positions, ahead of the ranking. */
|
|
1315
1320
|
pinned?: Array<{
|
|
1321
|
+
/** The engine places the document with this id. */
|
|
1316
1322
|
docId: string;
|
|
1323
|
+
/** The document takes this place in the results, counting from zero. */
|
|
1317
1324
|
position: number;
|
|
1318
1325
|
}>;
|
|
1319
1326
|
/** This picks which engine answers the query. Keyword search runs by default. */
|
|
@@ -1380,7 +1387,9 @@ interface FacetConfig {
|
|
|
1380
1387
|
sort?: 'asc' | 'desc';
|
|
1381
1388
|
/** The engine counts a numeric field's matches into these ranges, with one count for each range. A cluster search counts up to 1,000 ranges on a field and throws `CONFIG_INVALID` for more. */
|
|
1382
1389
|
ranges?: Array<{
|
|
1390
|
+
/** The range starts at this value. */
|
|
1383
1391
|
from: number;
|
|
1392
|
+
/** The range ends at this value. */
|
|
1384
1393
|
to: number;
|
|
1385
1394
|
}>;
|
|
1386
1395
|
};
|
|
@@ -1452,6 +1461,170 @@ interface HighlightConfig {
|
|
|
1452
1461
|
maxSnippetLength?: number;
|
|
1453
1462
|
}
|
|
1454
1463
|
|
|
1464
|
+
/**
|
|
1465
|
+
* Hooks that the engine calls alongside its own work, so that an application
|
|
1466
|
+
* can add validation, auditing, enrichment, or metrics without forking the
|
|
1467
|
+
* engine.
|
|
1468
|
+
*
|
|
1469
|
+
* Every hook is optional. A `before` hook fires first and rejects the
|
|
1470
|
+
* operation by throwing, while an `after` hook fires once the operation
|
|
1471
|
+
* succeeds. Where a `before` hook on a write throws a {@link NarsilError}, the
|
|
1472
|
+
* engine passes that error to the caller unchanged. It turns any other error
|
|
1473
|
+
* into `DOC_VALIDATION_FAILED` with the same message, for a single write and
|
|
1474
|
+
* for each entry of a batch alike. The engine awaits a hook that returns a
|
|
1475
|
+
* promise, so slow work in one hook slows every write or search that it
|
|
1476
|
+
* covers.
|
|
1477
|
+
*
|
|
1478
|
+
* @public
|
|
1479
|
+
*/
|
|
1480
|
+
interface NarsilPlugin {
|
|
1481
|
+
/** This name identifies the plugin in errors and in event payloads. */
|
|
1482
|
+
name: string;
|
|
1483
|
+
/** Fires before the engine indexes a document. Throw to reject the write. */
|
|
1484
|
+
beforeInsert?(ctx: InsertContext): void | Promise<void>;
|
|
1485
|
+
/** Fires once the engine has indexed a document. */
|
|
1486
|
+
afterInsert?(ctx: InsertContext): void | Promise<void>;
|
|
1487
|
+
/** Fires before the engine removes a document. Throw to reject the removal. */
|
|
1488
|
+
beforeRemove?(ctx: RemoveContext): void | Promise<void>;
|
|
1489
|
+
/** Fires once the engine has removed a document. */
|
|
1490
|
+
afterRemove?(ctx: RemoveContext): void | Promise<void>;
|
|
1491
|
+
/** Fires before the engine replaces a document. Throw to reject the update. */
|
|
1492
|
+
beforeUpdate?(ctx: UpdateContext): void | Promise<void>;
|
|
1493
|
+
/** Fires once the engine has replaced a document. */
|
|
1494
|
+
afterUpdate?(ctx: UpdateContext): void | Promise<void>;
|
|
1495
|
+
/**
|
|
1496
|
+
* Fires before every search, and before every preflight. Throw to reject the
|
|
1497
|
+
* query. It fires before the engine embeds a `vector.text` query, so a hook
|
|
1498
|
+
* that counts or refuses work stops the call to the embedding provider, and
|
|
1499
|
+
* `ctx.params.vector` still holds the text that the caller passed.
|
|
1500
|
+
* {@link Narsil.suggest} scans the term dictionary and searches no document,
|
|
1501
|
+
* so it fires no hook.
|
|
1502
|
+
*/
|
|
1503
|
+
beforeSearch?(ctx: SearchContext): void | Promise<void>;
|
|
1504
|
+
/**
|
|
1505
|
+
* Fires once a search returns. The context holds a copy of the results, so a
|
|
1506
|
+
* change that you make here leaves the caller's own result untouched. Where
|
|
1507
|
+
* this hook throws, the engine logs a warning and answers the query all the
|
|
1508
|
+
* same, because the search is already over.
|
|
1509
|
+
*/
|
|
1510
|
+
afterSearch?(ctx: SearchContext): void | Promise<void>;
|
|
1511
|
+
/**
|
|
1512
|
+
* Fires once the engine creates an index, and a `restore` fires it too,
|
|
1513
|
+
* because a restore recreates the index that it replaces. Where this hook
|
|
1514
|
+
* throws, the engine logs a warning and keeps the index, because the hook
|
|
1515
|
+
* fires after the index exists.
|
|
1516
|
+
*/
|
|
1517
|
+
onIndexCreate?(ctx: IndexContext): void | Promise<void>;
|
|
1518
|
+
/**
|
|
1519
|
+
* Fires once the engine drops an index, and a `restore` fires it too,
|
|
1520
|
+
* because a restore drops the index that it replaces. Where this hook
|
|
1521
|
+
* throws, the engine logs a warning, because the hook fires after the index
|
|
1522
|
+
* is gone.
|
|
1523
|
+
*/
|
|
1524
|
+
onIndexDrop?(ctx: IndexContext): void | Promise<void>;
|
|
1525
|
+
/**
|
|
1526
|
+
* Fires once {@link Narsil.rebalance} moves an index onto a new partition
|
|
1527
|
+
* count, which is the only way that the count changes. An index opens with
|
|
1528
|
+
* the count that `partitions.maxPartitions` sets, because the engine adds no
|
|
1529
|
+
* partition on its own. Subscribe to the `partitionWatermark` event to learn
|
|
1530
|
+
* when an index fills its capacity.
|
|
1531
|
+
*/
|
|
1532
|
+
onPartitionSplit?(ctx: PartitionContext): void | Promise<void>;
|
|
1533
|
+
/** Fires once the engine loads worker copies of its indexes. */
|
|
1534
|
+
onWorkerPromote?(ctx: WorkerContext): void | Promise<void>;
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* What a plugin receives around an insert.
|
|
1538
|
+
*
|
|
1539
|
+
* @public
|
|
1540
|
+
*/
|
|
1541
|
+
interface InsertContext {
|
|
1542
|
+
/** The engine writes the document to this index. */
|
|
1543
|
+
indexName: string;
|
|
1544
|
+
/** The document is stored under this id, which the engine resolves before the `before` hook runs. */
|
|
1545
|
+
docId: string;
|
|
1546
|
+
/** This is the document itself, and the engine indexes whatever a `before` hook leaves here. */
|
|
1547
|
+
document: AnyDocument;
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* What a plugin receives around a removal.
|
|
1551
|
+
*
|
|
1552
|
+
* @public
|
|
1553
|
+
*/
|
|
1554
|
+
interface RemoveContext {
|
|
1555
|
+
/** The engine removes the document from this index. */
|
|
1556
|
+
indexName: string;
|
|
1557
|
+
/** The engine removes this document. */
|
|
1558
|
+
docId: string;
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* What a plugin receives around an update.
|
|
1562
|
+
*
|
|
1563
|
+
* @public
|
|
1564
|
+
*/
|
|
1565
|
+
interface UpdateContext {
|
|
1566
|
+
/** The document belongs to this index. */
|
|
1567
|
+
indexName: string;
|
|
1568
|
+
/** The engine replaces this document. */
|
|
1569
|
+
docId: string;
|
|
1570
|
+
/** The index holds this document before the update. */
|
|
1571
|
+
oldDocument: AnyDocument;
|
|
1572
|
+
/** This document replaces it, and the engine indexes whatever a `before` hook leaves here. */
|
|
1573
|
+
newDocument: AnyDocument;
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* What a plugin receives around a search.
|
|
1577
|
+
*
|
|
1578
|
+
* @public
|
|
1579
|
+
*/
|
|
1580
|
+
interface SearchContext {
|
|
1581
|
+
/** The search runs against this index. */
|
|
1582
|
+
indexName: string;
|
|
1583
|
+
/** These are the parameters the query runs with, and a `before` hook that changes them rewrites the search. */
|
|
1584
|
+
params: QueryParams;
|
|
1585
|
+
/**
|
|
1586
|
+
* These are the results, which an `after` hook alone receives. A preflight
|
|
1587
|
+
* fires `beforeSearch` and stops there, because it answers with a count and
|
|
1588
|
+
* no hits. Read this field inside an `afterSearch` hook alone.
|
|
1589
|
+
*/
|
|
1590
|
+
results?: QueryResult;
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* What a plugin receives when the engine creates or drops an index.
|
|
1594
|
+
*
|
|
1595
|
+
* @public
|
|
1596
|
+
*/
|
|
1597
|
+
interface IndexContext {
|
|
1598
|
+
/** The engine creates or drops this index. */
|
|
1599
|
+
indexName: string;
|
|
1600
|
+
/** The index holds this configuration. */
|
|
1601
|
+
config: IndexConfig;
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* What a plugin receives when a rebalance changes an index's partition count.
|
|
1605
|
+
*
|
|
1606
|
+
* @public
|
|
1607
|
+
*/
|
|
1608
|
+
interface PartitionContext {
|
|
1609
|
+
/** The rebalance moved this index. */
|
|
1610
|
+
indexName: string;
|
|
1611
|
+
/** The index held this many partitions before the rebalance. */
|
|
1612
|
+
oldPartitionCount: number;
|
|
1613
|
+
/** The index holds this many partitions now. */
|
|
1614
|
+
newPartitionCount: number;
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* What a plugin receives when the engine moves onto worker threads.
|
|
1618
|
+
*
|
|
1619
|
+
* @public
|
|
1620
|
+
*/
|
|
1621
|
+
interface WorkerContext {
|
|
1622
|
+
/** The pool holds this many workers. */
|
|
1623
|
+
workerCount: number;
|
|
1624
|
+
/** The engine promoted for this reason, such as the threshold that the index crossed. */
|
|
1625
|
+
reason: string;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1455
1628
|
/**
|
|
1456
1629
|
* Snapshot of V8 heap usage as reported by `process.memoryUsage()`, with the
|
|
1457
1630
|
* limit the heap may grow to. All values are bytes. `null` in environments
|
|
@@ -1759,4 +1932,249 @@ type NarsilEventHandlers = {
|
|
|
1759
1932
|
[K in keyof NarsilEventMap]?: (payload: NarsilEventMap[K]) => void;
|
|
1760
1933
|
};
|
|
1761
1934
|
|
|
1762
|
-
|
|
1935
|
+
/**
|
|
1936
|
+
* Everything {@link createNarsil} accepts when it builds an engine.
|
|
1937
|
+
*
|
|
1938
|
+
* Every field is optional, and an engine created without any of them keeps
|
|
1939
|
+
* its indexes in memory alone. Add persistence to survive a restart, add
|
|
1940
|
+
* invalidation to share a store with another process, and add durability to
|
|
1941
|
+
* recover the writes made since the last snapshot.
|
|
1942
|
+
*
|
|
1943
|
+
* @public
|
|
1944
|
+
*/
|
|
1945
|
+
interface NarsilConfig {
|
|
1946
|
+
/** This adapter writes partitions somewhere they outlive the process. */
|
|
1947
|
+
persistence?: PersistenceAdapter;
|
|
1948
|
+
/** This channel carries partition changes to other instances sharing the store. */
|
|
1949
|
+
invalidation?: InvalidationAdapter;
|
|
1950
|
+
/** These hooks observe or reject writes, searches, and lifecycle changes. */
|
|
1951
|
+
plugins?: NarsilPlugin[];
|
|
1952
|
+
/** This supplies the id for a document inserted without one. The engine generates a UUID v7 by default. */
|
|
1953
|
+
idGenerator?: () => string;
|
|
1954
|
+
/** These settings control when an index gains worker copies, how many threads they share, and when an idle index gives them up. */
|
|
1955
|
+
workers?: WorkerConfig;
|
|
1956
|
+
/** Every index uses this adapter unless its own config names another. */
|
|
1957
|
+
embedding?: EmbeddingAdapter;
|
|
1958
|
+
/** Named adapters; names persist in index metadata so recovery can rebind. */
|
|
1959
|
+
embeddingAdapters?: Record<string, EmbeddingAdapter>;
|
|
1960
|
+
/**
|
|
1961
|
+
* These rerank adapters are registered under their keys, so that a query
|
|
1962
|
+
* can give a key in `rerank.adapter`. The engine throws
|
|
1963
|
+
* `RERANK_CONFIG_INVALID` for an empty key and for an entry without a
|
|
1964
|
+
* `rerank` function.
|
|
1965
|
+
*/
|
|
1966
|
+
rerankAdapters?: Record<string, RerankAdapter>;
|
|
1967
|
+
/**
|
|
1968
|
+
* The engine waits this many milliseconds for a rerank adapter to score one
|
|
1969
|
+
* query, and 30,000 by default. It then cancels the call through the
|
|
1970
|
+
* adapter's abort signal and throws `RERANK_FAILED`. Set a whole number of
|
|
1971
|
+
* at least 1; {@link createNarsil} throws `CONFIG_INVALID` for any other
|
|
1972
|
+
* value.
|
|
1973
|
+
*/
|
|
1974
|
+
rerankTimeout?: number;
|
|
1975
|
+
/**
|
|
1976
|
+
* A query may rerank at most this many of its top hits, which caps the
|
|
1977
|
+
* documents that one query sends to a model. Set a whole number from 1 to
|
|
1978
|
+
* 1,000, or leave it out for 100; {@link createNarsil} throws
|
|
1979
|
+
* `CONFIG_INVALID` for any other value.
|
|
1980
|
+
*/
|
|
1981
|
+
maxRerankWindow?: number;
|
|
1982
|
+
/** These settings recover the writes made since the last snapshot. */
|
|
1983
|
+
durability?: DurabilityConfig;
|
|
1984
|
+
/** These settings control what the engine does when an index's stored analysis differs from its language module. */
|
|
1985
|
+
analysis?: AnalysisConfig;
|
|
1986
|
+
/** These limits close indexes while keeping their durable files ready to reopen. */
|
|
1987
|
+
lifecycle?: IndexLifecycleConfig;
|
|
1988
|
+
/**
|
|
1989
|
+
* These listeners receive events from the moment that the engine starts.
|
|
1990
|
+
* The engine registers each one before it recovers any index, so a listener
|
|
1991
|
+
* here receives the `layoutUpgrade` events of that recovery, which come
|
|
1992
|
+
* before {@link createNarsil} returns the engine. For a name outside
|
|
1993
|
+
* {@link NarsilEventMap}, or an entry that is not a function,
|
|
1994
|
+
* {@link createNarsil} throws `CONFIG_INVALID`.
|
|
1995
|
+
*/
|
|
1996
|
+
events?: NarsilEventHandlers;
|
|
1997
|
+
/**
|
|
1998
|
+
* This is the most work that the engine may do on the pattern tests and
|
|
1999
|
+
* phrases of one search, counted over every partition that it searches. For
|
|
2000
|
+
* a phrase, the engine adds one unit for each posting of its starting word
|
|
2001
|
+
* that it visits, and one for each position that it compares. For a pattern
|
|
2002
|
+
* test, it adds one unit for each run of three code points that it looks up in a pattern
|
|
2003
|
+
* index, one for each entry that it reads from a pattern index, and one for
|
|
2004
|
+
* each step of its matcher. For a text whose case fold is shorter than three
|
|
2005
|
+
* code points, it counts each document that it checks as an entry that it
|
|
2006
|
+
* reads. It counts an `in` or `nin` test as one `eq` test for each distinct
|
|
2007
|
+
* value in its list. For an `eq` test with a `tolerance`, it also adds one
|
|
2008
|
+
* unit for each cell that it fills in the table of edit distances between
|
|
2009
|
+
* the text and a value. It also counts the preparation of that test once for
|
|
2010
|
+
* a search, however many worker copies prepare it. Once the count passes the
|
|
2011
|
+
* cap, the engine throws `SEARCH_WORK_CAP_EXCEEDED`. The cap
|
|
2012
|
+
* defaults to 25,000,000 units. For any value other than a whole number from
|
|
2013
|
+
* 1 to `Number.MAX_SAFE_INTEGER`, {@link createNarsil} throws
|
|
2014
|
+
* `CONFIG_INVALID`.
|
|
2015
|
+
*/
|
|
2016
|
+
patternWorkCap?: number;
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Limits on the indexes one engine keeps open in memory.
|
|
2020
|
+
*
|
|
2021
|
+
* @public
|
|
2022
|
+
*/
|
|
2023
|
+
interface IndexLifecycleConfig {
|
|
2024
|
+
/** An index closes after this many milliseconds without activity. */
|
|
2025
|
+
idleTimeoutMs?: number;
|
|
2026
|
+
/** The engine keeps at most this many indexes open at once. */
|
|
2027
|
+
maxOpenIndexes?: number;
|
|
2028
|
+
/** Open indexes may use at most this many estimated bytes in total. */
|
|
2029
|
+
maxOpenBytes?: number;
|
|
2030
|
+
/** At most this many callers may wait behind one index reopen. */
|
|
2031
|
+
maxReopenWaiters?: number;
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Describes an index whose stored terms came from an older analysis than the
|
|
2035
|
+
* one its language module carries today.
|
|
2036
|
+
*
|
|
2037
|
+
* The engine hands this to {@link AnalysisConfig.onStaleAnalysis} together
|
|
2038
|
+
* with the rebuild that fixes it, so you decide when the work runs.
|
|
2039
|
+
*
|
|
2040
|
+
* @public
|
|
2041
|
+
*/
|
|
2042
|
+
interface StaleAnalysis {
|
|
2043
|
+
/** This index holds terms that are out of date. */
|
|
2044
|
+
indexName: string;
|
|
2045
|
+
/** The index was built with this language module. */
|
|
2046
|
+
language: string;
|
|
2047
|
+
/** The index recorded this revision when it was written, and `null` for an index written before revisions existed. */
|
|
2048
|
+
storedRevision: string | null;
|
|
2049
|
+
/** The language module carries this revision now. */
|
|
2050
|
+
currentRevision: string;
|
|
2051
|
+
/** The rebuild reindexes this many documents. */
|
|
2052
|
+
documentCount: number;
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* What the engine does when an index's stored terms no longer match the
|
|
2056
|
+
* analysis its language module produces.
|
|
2057
|
+
*
|
|
2058
|
+
* A stale index answers text queries from terms an older analysis wrote, and
|
|
2059
|
+
* every such result reports `analysisStale`. Rebuilding fixes it, and this
|
|
2060
|
+
* setting controls whether the engine starts that work itself.
|
|
2061
|
+
*
|
|
2062
|
+
* @public
|
|
2063
|
+
*/
|
|
2064
|
+
interface AnalysisConfig {
|
|
2065
|
+
/** `auto` rebuilds a stale index in the background, and `manual` leaves it to you. The engine rebuilds automatically by default. */
|
|
2066
|
+
rebuild?: 'auto' | 'manual';
|
|
2067
|
+
/**
|
|
2068
|
+
* Called once for each stale index the engine finds.
|
|
2069
|
+
*
|
|
2070
|
+
* @param index - The index that is stale, and how far behind it is.
|
|
2071
|
+
* @param rebuild - Starts the rebuild and resolves once every partition
|
|
2072
|
+
* carries current terms. Under `manual` nothing rebuilds until you call it.
|
|
2073
|
+
*/
|
|
2074
|
+
onStaleAnalysis?(index: StaleAnalysis, rebuild: () => Promise<void>): void | Promise<void>;
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Write-ahead logging and checkpointing, which recover the writes made since
|
|
2078
|
+
* the last snapshot.
|
|
2079
|
+
*
|
|
2080
|
+
* The `wal` tier logs every mutation before applying it, so a crash costs
|
|
2081
|
+
* nothing once the log replays. The `snapshot` tier writes whole partitions on
|
|
2082
|
+
* an interval, which is cheaper to run and loses whatever arrived after the
|
|
2083
|
+
* last write.
|
|
2084
|
+
*
|
|
2085
|
+
* @public
|
|
2086
|
+
*/
|
|
2087
|
+
interface DurabilityConfig {
|
|
2088
|
+
/** `wal` logs every mutation, and `snapshot` writes whole partitions on an interval. */
|
|
2089
|
+
tier?: 'wal' | 'snapshot';
|
|
2090
|
+
/** The engine writes the log and its checkpoints into this directory. */
|
|
2091
|
+
directory?: string;
|
|
2092
|
+
/** `sync` flushes before a write resolves, and `async` flushes on the interval below. */
|
|
2093
|
+
mode?: 'sync' | 'async';
|
|
2094
|
+
/** In `async` mode the engine flushes this many milliseconds apart. */
|
|
2095
|
+
flushIntervalMs?: number;
|
|
2096
|
+
/** The log rolls over to a new segment once it reaches this size. */
|
|
2097
|
+
segmentMaxBytes?: number;
|
|
2098
|
+
/** The engine checkpoints this many milliseconds apart, which shortens the replay a restart has to do. */
|
|
2099
|
+
checkpointIntervalMs?: number;
|
|
2100
|
+
/** This many mutations trigger a checkpoint before the interval elapses. */
|
|
2101
|
+
checkpointMutationThreshold?: number;
|
|
2102
|
+
/**
|
|
2103
|
+
* The engine merges a partition's checkpoint segments once that partition
|
|
2104
|
+
* holds more than this many of them, 12 by default. The value is a whole
|
|
2105
|
+
* number of segments.
|
|
2106
|
+
*/
|
|
2107
|
+
compactionThreshold?: number;
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Which queries the main copy of an index answers once the index holds worker
|
|
2111
|
+
* copies. Under `lone`, the main copy answers a query the engine receives
|
|
2112
|
+
* while no copy holds one, on an index of at most 50,000 documents. Once
|
|
2113
|
+
* every copy is busy, it also answers one query per turn of the event loop.
|
|
2114
|
+
* Under `none`, every query on an index that holds copies goes to one of
|
|
2115
|
+
* them, while the main copy still answers a query on an index whose copies
|
|
2116
|
+
* are loading.
|
|
2117
|
+
*
|
|
2118
|
+
* @public
|
|
2119
|
+
*/
|
|
2120
|
+
type MainCopyQueries = 'lone' | 'none';
|
|
2121
|
+
/**
|
|
2122
|
+
* How the engine holds worker copies of its indexes, and how many threads
|
|
2123
|
+
* they may use.
|
|
2124
|
+
*
|
|
2125
|
+
* A small index answers fastest on the main thread. Once an index holds as
|
|
2126
|
+
* many documents as the copy threshold, the engine loads a copy of it onto
|
|
2127
|
+
* every worker thread, and each query then runs whole on the copy with the
|
|
2128
|
+
* fewest queries in flight. The same switch governs the vector search pool.
|
|
2129
|
+
*
|
|
2130
|
+
* @public
|
|
2131
|
+
*/
|
|
2132
|
+
interface WorkerConfig {
|
|
2133
|
+
/**
|
|
2134
|
+
* Whether the engine may hold worker copies and a vector search pool. It is
|
|
2135
|
+
* on everywhere but a browser page. Set it to false to hold the process to
|
|
2136
|
+
* one thread, which leaves both pools absent. Where a bundler folds
|
|
2137
|
+
* `@delali/narsil` into an application bundle, the engine finds no worker
|
|
2138
|
+
* entry: left unset, it answers on one thread and prints one warning, and
|
|
2139
|
+
* set to true, `createNarsil` throws `CONFIG_INVALID`.
|
|
2140
|
+
*/
|
|
2141
|
+
enabled?: boolean;
|
|
2142
|
+
/**
|
|
2143
|
+
* The keyword copies and the vector search pool share this many threads
|
|
2144
|
+
* between them, half each, in an embedded engine, so a budget of 4 gives 2
|
|
2145
|
+
* keyword copies and 2 vector search workers. The HTTP server holds a copy
|
|
2146
|
+
* on every one of them and receives requests there. The engine takes the
|
|
2147
|
+
* host's cores minus one by default, between 2 and 8. It caps a value that
|
|
2148
|
+
* you set at 31, which is how many scratch slots the shared vector arena
|
|
2149
|
+
* reserves.
|
|
2150
|
+
*/
|
|
2151
|
+
count?: number;
|
|
2152
|
+
/** An index gains worker copies once it holds this many documents, 1,000 by default. */
|
|
2153
|
+
promotionThreshold?: number;
|
|
2154
|
+
/**
|
|
2155
|
+
* The engine drops an index's copies after this many milliseconds without a
|
|
2156
|
+
* read or a write, five minutes by default, and loads them again on the
|
|
2157
|
+
* next request while the main copy answers it. It may not exceed
|
|
2158
|
+
* `lifecycle.idleTimeoutMs`, and where it is unset the copies take the
|
|
2159
|
+
* smaller of five minutes and that interval.
|
|
2160
|
+
*/
|
|
2161
|
+
idleTimeoutMs?: number;
|
|
2162
|
+
/**
|
|
2163
|
+
* Which queries the main copy answers, `lone` by default. Set `none` where
|
|
2164
|
+
* the main thread also serves the host's own work, such as HTTP requests,
|
|
2165
|
+
* because a query answered on the main copy then delays every other request
|
|
2166
|
+
* waiting on that thread. A server created with `createServer` sets `none` on
|
|
2167
|
+
* an engine that leaves this unset.
|
|
2168
|
+
*/
|
|
2169
|
+
mainCopyQueries?: MainCopyQueries;
|
|
2170
|
+
/**
|
|
2171
|
+
* Each worker imports this module on start-up, which is how a worker reaches
|
|
2172
|
+
* a custom tokeniser or language. Give an absolute path or a URL, such as
|
|
2173
|
+
* `new URL('./bootstrap.js', import.meta.url).href`, because a worker
|
|
2174
|
+
* resolves a relative specifier against Narsil's own directory. A relative
|
|
2175
|
+
* value raises `CONFIG_INVALID`.
|
|
2176
|
+
*/
|
|
2177
|
+
bootstrapModule?: string;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
export { type PresenceFilter as $, type AnalysisConfig as A, type BatchResult as B, type ClientErrorCode as C, type DocumentImportResult as D, type ErrorCode as E, type FacetConfig as F, type GroupResult as G, type HeldCheckpointReport as H, type IndexInfo as I, type HighlightMatch as J, type Hit as K, type ListParams as L, type MemoryStats as M, NarsilError as N, type HybridConfig as O, type PartitionStatsResult as P, type QueryParams as Q, type IndexContext as R, type ServerErrorCode as S, type IndexLifecycleConfig as T, type InsertContext as U, type VectorMaintenanceResult as V, type ListedDocument as W, type MainCopyQueries as X, type NarsilEventHandlers as Y, type NarsilPlugin as Z, type PartitionContext as _, ClientErrorCodes as a, type ProcessMemoryReport as a0, type QueryCoverage as a1, type RemoveContext as a2, type RerankConfig as a3, type ScoreComponents as a4, type SearchContext as a5, type SearchMode as a6, type SortField as a7, type SortSpec as a8, type StaleAnalysis as a9, type StringFilter as aa, type TermMatchPolicy as ab, type UpdateContext as ac, type VectorQueryConfig as ad, type WorkerConfig as ae, type WorkerContext as af, type WorkerCopyReport as ag, ErrorCodes as b, type NarsilErrorCode as c, ServerErrorCodes as d, type NarsilConfig as e, type ListResult as f, type SuggestParams as g, type SuggestResult as h, isNarsilError as i, type PreflightResult as j, type IndexStats as k, type NarsilEventMap as l, type QueryResult as m, type GroupConfig as n, type ArrayFilter as o, type ComparisonFilter as p, type DocumentProjection as q, type DurabilityConfig as r, type FacetResult as s, type FieldFilter as t, type FilterExpression as u, type GeoFilter as v, type GeoPolygonFilter as w, type GeoRadiusFilter as x, type GroupReducer as y, type HighlightConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClusterCoordinator } from '../../index-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-HYnqS1SE.js';
|
|
2
|
+
import '../../schema-BTXbHCqA.js';
|
|
3
3
|
import '../../adapters-BQFQ4PRz.js';
|
|
4
4
|
import '../../synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClusterCoordinator } from '../../index-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-HYnqS1SE.js';
|
|
2
|
+
import '../../schema-BTXbHCqA.js';
|
|
3
3
|
import '../../adapters-BQFQ4PRz.js';
|
|
4
4
|
import '../../synonyms-CpOAHPa-.js';
|
|
5
5
|
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b as CreateIndexOptions, C as ClusterNamespace, c as ClusterNodeConfig } from './config-CmYJO34X.js';
|
|
2
|
+
export { d as ClusterControllerConfig, e as ClusterHealth, f as ClusterHealthStatus, g as ClusterMemoryConfig, h as ClusterMetrics, a as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-CmYJO34X.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
4
|
-
import { B as BatchResult, L as ListParams,
|
|
5
|
-
import { B as BM25Params,
|
|
6
|
-
import { b as NodeCapacity, N as NodeRole } from './index-
|
|
7
|
-
export {
|
|
4
|
+
import { B as BatchResult, L as ListParams, f as ListResult, g as SuggestParams, h as SuggestResult, Q as QueryParams, j as PreflightResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, M as MemoryStats, l as NarsilEventMap, m as QueryResult } from './config-D1cDv3sE.js';
|
|
5
|
+
import { B as BM25Params, a as IndexConfig, A as AnyDocument, I as InsertOptions } from './schema-BTXbHCqA.js';
|
|
6
|
+
import { b as NodeCapacity, N as NodeRole } from './index-HYnqS1SE.js';
|
|
7
|
+
export { d as AllocationConstraints, e as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexMetadataEvent, f as IndexMetadataWatch, g as IndexPartitionBytes, h as NodeEvent, c as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-HYnqS1SE.js';
|
|
8
8
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
9
|
-
import { N as Narsil } from './engine-
|
|
9
|
+
import { N as Narsil } from './engine-m_Ddr1bz.js';
|
|
10
10
|
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
11
|
-
import './config-hOWGBeC6.js';
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* The cluster splits an index into this many partitions when
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { B as BM25Params, A as AnyDocument,
|
|
3
|
-
import { B as BatchResult, I as IndexInfo, k as IndexStats,
|
|
2
|
+
import { B as BM25Params, A as AnyDocument, I as InsertOptions, W as WriteOptions, a as IndexConfig, P as PartitionConfig } from './schema-BTXbHCqA.js';
|
|
3
|
+
import { B as BatchResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, L as ListParams, f as ListResult, Q as QueryParams, m as QueryResult, j as PreflightResult, g as SuggestParams, h as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, l as NarsilEventMap } from './config-D1cDv3sE.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchemaDefinition } from './schema-
|
|
1
|
+
import { S as SchemaDefinition } from './schema-BTXbHCqA.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Tells watchers that the stored metadata of an index changed.
|
|
@@ -516,4 +516,4 @@ interface ClusterCoordinator extends IndexMetadataWatch {
|
|
|
516
516
|
shutdown(): Promise<void>;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
export type { AllocationTable as A, ClusterCoordinator as C, IndexMetadataEvent as I, NodeRole as N, PartitionAssignment as P, RegistrationLease as R, SchemaEvent as S, UnassignedReason as U, NodeRegistration as a, NodeCapacity as b,
|
|
519
|
+
export type { AllocationTable as A, ClusterCoordinator as C, IndexMetadataEvent as I, NodeRole as N, PartitionAssignment as P, RegistrationLease as R, SchemaEvent as S, UnassignedReason as U, NodeRegistration as a, NodeCapacity as b, NodeMemoryReport as c, AllocationConstraints as d, AllocationEvent as e, IndexMetadataWatch as f, IndexPartitionBytes as g, NodeEvent as h, PartitionState as i };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { b as StopWordOverride, C as CustomTokenizer } from './schema-
|
|
2
|
-
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig,
|
|
1
|
+
import { b as StopWordOverride, C as CustomTokenizer } from './schema-BTXbHCqA.js';
|
|
2
|
+
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, d as FieldOptionChain, F as FieldType, a as IndexConfig, I as InsertOptions, P as PartitionConfig, S as SchemaDefinition, e as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, f as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-BTXbHCqA.js';
|
|
3
3
|
import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
|
|
4
4
|
import { P as PatternSearch } from './pattern-Cledccbl.js';
|
|
5
5
|
import { S as SynonymSearch } from './synonyms-CpOAHPa-.js';
|
|
6
6
|
export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
8
8
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-B_W9sdZK.js';
|
|
9
|
+
import { e as NarsilConfig } from './config-D1cDv3sE.js';
|
|
10
|
+
export { A as AnalysisConfig, o as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, p as ComparisonFilter, D as DocumentImportResult, q as DocumentProjection, r as DurabilityConfig, E as ErrorCode, b as ErrorCodes, F as FacetConfig, s as FacetResult, t as FieldFilter, u as FilterExpression, v as GeoFilter, w as GeoPolygonFilter, x as GeoRadiusFilter, n as GroupConfig, y as GroupReducer, G as GroupResult, H as HeldCheckpointReport, z as HighlightConfig, J as HighlightMatch, K as Hit, O as HybridConfig, R as IndexContext, I as IndexInfo, T as IndexLifecycleConfig, k as IndexStats, U as InsertContext, L as ListParams, f as ListResult, W as ListedDocument, X as MainCopyQueries, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, Y as NarsilEventHandlers, l as NarsilEventMap, Z as NarsilPlugin, _ as PartitionContext, P as PartitionStatsResult, j as PreflightResult, $ as PresenceFilter, a0 as ProcessMemoryReport, a1 as QueryCoverage, Q as QueryParams, m as QueryResult, a2 as RemoveContext, a3 as RerankConfig, a4 as ScoreComponents, a5 as SearchContext, a6 as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, a7 as SortField, a8 as SortSpec, a9 as StaleAnalysis, aa as StringFilter, g as SuggestParams, h as SuggestResult, ab as TermMatchPolicy, ac as UpdateContext, V as VectorMaintenanceResult, ad as VectorQueryConfig, ae as WorkerConfig, af as WorkerContext, ag as WorkerCopyReport, i as isNarsilError } from './config-D1cDv3sE.js';
|
|
11
|
+
import { N as Narsil } from './engine-m_Ddr1bz.js';
|
|
12
|
+
export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-m_Ddr1bz.js';
|
|
14
13
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-OGLV4I3L.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-5W7AEVTH.mjs';
|
|
3
|
+
import './chunk-RCMNL7RI.mjs';
|
|
4
4
|
import './chunk-KZ3NX2P7.mjs';
|
|
5
5
|
import './chunk-4GDLFDPZ.mjs';
|
|
6
6
|
import './chunk-IWVEG5CX.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BM25FieldParams, P as PartitionConfig, e as ScoringMode, V as VectorIndexConfig } from '../../schema-
|
|
1
|
+
import { c as BM25FieldParams, P as PartitionConfig, e as ScoringMode, V as VectorIndexConfig } from '../../schema-BTXbHCqA.js';
|
|
2
2
|
import '../../adapters-BQFQ4PRz.js';
|
|
3
3
|
import '../../synonyms-CpOAHPa-.js';
|
|
4
4
|
|