@delali/narsil 0.3.1-next.104 → 0.3.1-next.109
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/browser/{chunk-CWWD2UHP.mjs → chunk-3RXEGUGO.mjs} +2 -2
- package/dist/browser/{chunk-J3QB4LBD.mjs → chunk-EQ7BQ6VZ.mjs} +1 -0
- package/dist/browser/{chunk-PW7GJFPW.mjs → chunk-RYWURYTW.mjs} +3 -2
- package/dist/browser/{chunk-SFXM7PLV.mjs → chunk-S7KNCVPU.mjs} +2 -2
- package/dist/browser/{chunk-5YMT23EX.mjs → chunk-SCBBEQWD.mjs} +14 -13
- package/dist/browser/{chunk-ECSLQ3S5.mjs → chunk-XHRHOH2P.mjs} +5 -5
- package/dist/browser/{chunk-6E4SWUYZ.mjs → chunk-Z2K5AGZL.mjs} +111 -10
- package/dist/browser/{durability-wiring-HTBWDAOX.mjs → durability-wiring-JJGE7MED.mjs} +6 -6
- package/dist/browser/{module-6FVNK7DO.mjs → module-PCKQADMQ.mjs} +20 -16
- package/dist/browser/{restore-queue-CL43WZTZ.mjs → restore-queue-2STSWU2E.mjs} +1 -1
- package/dist/browser/{runtime-JQYPNOK6.mjs → runtime-ARKW5NZX.mjs} +1 -1
- package/dist/browser/{snapshot-NL4GSDUD.mjs → snapshot-3AZDQKNA.mjs} +7 -7
- package/dist/browser/{write-YFOOPLAN.mjs → write-XXLMPT3Y.mjs} +5 -5
- package/dist/{capabilities-DGaz7cb3.d.ts → capabilities-D4MUmjfe.d.ts} +2 -2
- package/dist/{chunk-35KEGAOS.mjs → chunk-4GD43FSW.mjs} +12 -28
- package/dist/chunk-5DPTHLMX.mjs +350 -0
- package/dist/{chunk-RI5VNFAI.mjs → chunk-5LP7OU6B.mjs} +2 -2
- package/dist/{chunk-KSQS77DK.mjs → chunk-5W7ADHK7.mjs} +1 -1
- package/dist/{chunk-TDUBQ546.mjs → chunk-62GK7UUS.mjs} +3 -3
- package/dist/{chunk-RFVUDM5E.mjs → chunk-6OXNHLNZ.mjs} +3 -15
- package/dist/{chunk-RWXFSGKJ.mjs → chunk-A2HWRBQE.mjs} +2 -2
- package/dist/{chunk-3IQZYNW6.mjs → chunk-AWZVJCCW.mjs} +3 -3
- package/dist/{chunk-2MNJ2HX7.mjs → chunk-C55OFKU6.mjs} +2 -2
- package/dist/{chunk-XWJGJ2SE.mjs → chunk-C57FPCTL.mjs} +6 -6
- package/dist/{chunk-PAWVKEVS.mjs → chunk-CKRP7GCS.mjs} +2 -2
- package/dist/{chunk-IGUTV3MX.mjs → chunk-CYXLPFBG.mjs} +8 -8
- package/dist/{chunk-WCNN2PLX.mjs → chunk-FN75BCXC.mjs} +1 -1
- package/dist/{chunk-77SO7G55.mjs → chunk-FV5CP3E2.mjs} +1 -1
- package/dist/{chunk-WU4P5J4G.mjs → chunk-H5465KUZ.mjs} +3 -3
- package/dist/{chunk-6GFVUXUH.mjs → chunk-HL2GAS5N.mjs} +7 -7
- package/dist/{chunk-MZW4V4DS.mjs → chunk-IBJWO5PF.mjs} +1 -1
- package/dist/{chunk-O372FZM4.mjs → chunk-ICZW4J3I.mjs} +23 -22
- package/dist/{chunk-BLDJ5I6I.mjs → chunk-JKOBHB4A.mjs} +113 -10
- package/dist/{chunk-QALAFGF5.mjs → chunk-LWQTFKRS.mjs} +1 -1
- package/dist/{chunk-PQHR5FHC.mjs → chunk-MVWWAHTR.mjs} +2 -2
- package/dist/{chunk-DQ5NJSBZ.mjs → chunk-N75MAOM7.mjs} +2 -2
- package/dist/{chunk-AEF2O7B4.mjs → chunk-NYWUBTMH.mjs} +1 -1
- package/dist/{chunk-VFEALJEA.mjs → chunk-PA5WZWLC.mjs} +2 -2
- package/dist/{chunk-CYHQNM3T.mjs → chunk-RQ7LOBLD.mjs} +1 -1
- package/dist/{chunk-KNRU5CJ4.mjs → chunk-RSSLOFRP.mjs} +6 -6
- package/dist/{chunk-6JUOMMHQ.mjs → chunk-S2CKO6PP.mjs} +1 -0
- package/dist/{chunk-JSSGO4B5.mjs → chunk-SAZB7ZHT.mjs} +1 -1
- package/dist/{chunk-MJIJG4YT.mjs → chunk-SD2EYVU4.mjs} +2 -2
- package/dist/{chunk-LPQOEU5M.mjs → chunk-SOADQINJ.mjs} +45 -9
- package/dist/{chunk-PFQQ3LCQ.mjs → chunk-SYHS56F7.mjs} +6 -6
- package/dist/{chunk-OIN27OQH.mjs → chunk-U6FT7LKG.mjs} +3 -3
- package/dist/{chunk-J2KRH2RJ.mjs → chunk-VIXXQEX6.mjs} +4 -4
- package/dist/{chunk-HMFNFVP7.mjs → chunk-VJS4JFBQ.mjs} +2 -1
- package/dist/{chunk-MKPE3VZF.mjs → chunk-XY6Z7T5W.mjs} +2 -2
- package/dist/{chunk-5W2ODPPO.mjs → chunk-YP23IAV5.mjs} +177 -8
- package/dist/{chunk-47PZE6CJ.mjs → chunk-ZBZRBM2Z.mjs} +3 -3
- package/dist/chunk-ZXZ26WSO.mjs +14 -0
- package/dist/{client-DI-xIXgR.d.ts → client-Ba9yP-Rr.d.ts} +2 -2
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -0
- package/dist/{config-DL_bDDD8.d.ts → config-C-xXz8bC.d.ts} +1 -1
- package/dist/{config-DWxtDsJ6.d.ts → config-Dc_8-byz.d.ts} +7 -4
- package/dist/direct-executor-QH2M6AK2.mjs +25 -0
- package/dist/distribution/coordinator/etcd.d.ts +1 -1
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +1 -1
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +7 -7
- package/dist/distribution.mjs +678 -278
- package/dist/{durability-wiring-LD4GWPWD.mjs → durability-wiring-4HWX7OVP.mjs} +26 -25
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-D_SYDsId.d.ts → engine-CMZ5XSLy.d.ts} +1 -1
- package/dist/{events-C7_dboUr.d.ts → events-dnvgprIl.d.ts} +1 -0
- package/dist/{index-Bkdt8nDw.d.ts → index-Cl5qQauj.d.ts} +6 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +19 -18
- package/dist/{module-QFWZ5OBF.mjs → module-IYILOTU3.mjs} +25 -21
- package/dist/partial-words.mjs +6 -6
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +22 -21
- package/dist/react.d.ts +6 -6
- package/dist/react.mjs +1 -0
- package/dist/{rerank-WVFFZV76.mjs → rerank-EHJVXEDP.mjs} +7 -7
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{restore-queue-7QIKM6PY.mjs → restore-queue-BONSQWCI.mjs} +1 -1
- package/dist/{runtime-AVUUCJWQ.mjs → runtime-LEX2F7OW.mjs} +5 -5
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +32 -18
- package/dist/{snapshot-JYTT36WI.mjs → snapshot-DWDLN5YW.mjs} +28 -27
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-BhjQZ8Qf.d.ts → tasks-B4B2cMK5.d.ts} +1 -1
- package/dist/{thread-AHLISTRZ.mjs → thread-I32PUURR.mjs} +16 -14
- package/dist/vector/search-worker.d.ts +2 -0
- package/dist/vector/search-worker.mjs +5 -5
- package/dist/workers/entry.mjs +7 -6
- package/dist/{write-GPFM2EIX.mjs → write-AOFSHACR.mjs} +21 -20
- package/package.json +7 -7
- package/dist/chunk-B7BSQZ27.mjs +0 -206
- package/dist/direct-executor-5NX2ZIAG.mjs +0 -24
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-
|
|
3
|
-
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-
|
|
4
|
-
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-
|
|
1
|
+
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-A2HWRBQE.mjs';
|
|
2
|
+
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-H5465KUZ.mjs';
|
|
3
|
+
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-RSSLOFRP.mjs';
|
|
4
|
+
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-CKRP7GCS.mjs';
|
|
5
5
|
import './chunk-37CD3OKS.mjs';
|
|
6
|
-
import { createDurableDirectory } from './chunk-
|
|
6
|
+
import { createDurableDirectory } from './chunk-PA5WZWLC.mjs';
|
|
7
7
|
import { spawnNodeWorker } from './chunk-C7SLA6CM.mjs';
|
|
8
8
|
import { getFs } from './chunk-HLPRHOSO.mjs';
|
|
9
|
-
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-CYXLPFBG.mjs';
|
|
10
|
+
import './chunk-VIXXQEX6.mjs';
|
|
11
11
|
import './chunk-P36MUFEJ.mjs';
|
|
12
12
|
import './chunk-RPIE4QCL.mjs';
|
|
13
|
-
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import { resolveWorkerEntry } from './chunk-
|
|
13
|
+
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-ICZW4J3I.mjs';
|
|
14
|
+
import './chunk-HL2GAS5N.mjs';
|
|
15
|
+
import './chunk-XY6Z7T5W.mjs';
|
|
16
|
+
import { resolveWorkerEntry } from './chunk-RQ7LOBLD.mjs';
|
|
17
17
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
18
|
-
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-
|
|
19
|
-
import { fnv1a } from './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
18
|
+
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-4GD43FSW.mjs';
|
|
19
|
+
import { fnv1a } from './chunk-C57FPCTL.mjs';
|
|
20
|
+
import './chunk-LWQTFKRS.mjs';
|
|
21
|
+
import './chunk-SOADQINJ.mjs';
|
|
22
22
|
import './chunk-HJSN7UYG.mjs';
|
|
23
23
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-LXWDQLTW.mjs';
|
|
24
24
|
import './chunk-TGP5M5R7.mjs';
|
|
25
25
|
import './chunk-U2BKYEC7.mjs';
|
|
26
26
|
import './chunk-KOKM4PQN.mjs';
|
|
27
27
|
import './chunk-QSK35UC2.mjs';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
28
|
+
import './chunk-MVWWAHTR.mjs';
|
|
29
|
+
import './chunk-C55OFKU6.mjs';
|
|
30
30
|
import './chunk-WQBCBKY3.mjs';
|
|
31
|
-
import './chunk-
|
|
32
|
-
import { encodeDocument, requireValidFieldTypes } from './chunk-
|
|
31
|
+
import './chunk-62GK7UUS.mjs';
|
|
32
|
+
import { encodeDocument, requireValidFieldTypes } from './chunk-AWZVJCCW.mjs';
|
|
33
33
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
34
34
|
import './chunk-E74YLAIG.mjs';
|
|
35
|
-
import { MIN_M } from './chunk-
|
|
35
|
+
import { MIN_M } from './chunk-VJS4JFBQ.mjs';
|
|
36
36
|
import './chunk-GES7U2PM.mjs';
|
|
37
|
-
import './chunk-
|
|
38
|
-
import './chunk-
|
|
37
|
+
import './chunk-FV5CP3E2.mjs';
|
|
38
|
+
import './chunk-5LP7OU6B.mjs';
|
|
39
39
|
import './chunk-X5CV2E2B.mjs';
|
|
40
40
|
import './chunk-7X5JST5L.mjs';
|
|
41
|
-
import './chunk-
|
|
41
|
+
import './chunk-NYWUBTMH.mjs';
|
|
42
42
|
import './chunk-R6A773WK.mjs';
|
|
43
43
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
44
44
|
import './chunk-CQUMNIIG.mjs';
|
|
45
|
-
import './chunk-
|
|
45
|
+
import './chunk-5W7ADHK7.mjs';
|
|
46
|
+
import './chunk-ZXZ26WSO.mjs';
|
|
46
47
|
import './chunk-RFBLQLLZ.mjs';
|
|
47
48
|
import './chunk-L5ORED7V.mjs';
|
|
48
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
49
|
+
import { NarsilError, ErrorCodes } from './chunk-S2CKO6PP.mjs';
|
|
49
50
|
import { decode } from '@msgpack/msgpack';
|
|
50
51
|
|
|
51
52
|
// src/persistence/durability/sha256.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-IBJWO5PF.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from '../chunk-S2CKO6PP.mjs';
|
|
3
3
|
|
|
4
4
|
// src/embeddings/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-
|
|
2
|
+
import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-dnvgprIl.js';
|
|
3
3
|
import { A as AnyDocument, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-4W_7tk1f.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -59,6 +59,7 @@ declare const ErrorCodes: {
|
|
|
59
59
|
readonly QUERY_PARTIAL_FAILURE: "QUERY_PARTIAL_FAILURE";
|
|
60
60
|
readonly QUERY_NODE_TIMEOUT: "QUERY_NODE_TIMEOUT";
|
|
61
61
|
readonly QUERY_NO_ACTIVE_REPLICA: "QUERY_NO_ACTIVE_REPLICA";
|
|
62
|
+
readonly SEARCH_CONTEXT_MISSING: "SEARCH_CONTEXT_MISSING";
|
|
62
63
|
readonly CLUSTER_OPERATION_UNSUPPORTED: "CLUSTER_OPERATION_UNSUPPORTED";
|
|
63
64
|
readonly CLUSTER_WRITE_BLOCKED: "CLUSTER_WRITE_BLOCKED";
|
|
64
65
|
readonly ALLOCATION_NO_DATA_NODES: "ALLOCATION_NO_DATA_NODES";
|
|
@@ -33,7 +33,12 @@ interface NodeCapacity {
|
|
|
33
33
|
interface NodeMemoryReport {
|
|
34
34
|
/** The whole process holds this many bytes of resident memory, including vectors and segments kept outside the heap. */
|
|
35
35
|
processBytes: number;
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The process may hold this many bytes. Where a container sets a memory limit, this figure is that limit. Without one,
|
|
38
|
+
* a node on Linux reports its own resident memory plus the memory that the host reports as available, up to the
|
|
39
|
+
* host's total memory, so the figure falls whenever other processes on the host take memory. A node on any other
|
|
40
|
+
* system reports the host's total memory.
|
|
41
|
+
*/
|
|
37
42
|
processLimitBytes: number;
|
|
38
43
|
/**
|
|
39
44
|
* The main thread's old generation uses this many bytes. The old generation is the V8 heap without the young
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
2
|
-
export { isSimdAvailable } from './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-SCBBEQWD.mjs';
|
|
2
|
+
export { isSimdAvailable } from './browser/chunk-RYWURYTW.mjs';
|
|
3
3
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
4
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-
|
|
4
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-EQ7BQ6VZ.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ 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
|
-
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-
|
|
10
|
-
import { N as NarsilConfig } from './config-
|
|
11
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-
|
|
12
|
-
import { N as Narsil } from './engine-
|
|
13
|
-
export { A as AdapterRegistrationOperations, B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-
|
|
9
|
+
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-dnvgprIl.js';
|
|
10
|
+
import { N as NarsilConfig } from './config-C-xXz8bC.js';
|
|
11
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-C-xXz8bC.js';
|
|
12
|
+
import { N as Narsil } from './engine-CMZ5XSLy.js';
|
|
13
|
+
export { A as AdapterRegistrationOperations, B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-CMZ5XSLy.js';
|
|
14
14
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
15
15
|
|
|
16
16
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-ICZW4J3I.mjs';
|
|
2
|
+
import './chunk-HL2GAS5N.mjs';
|
|
3
|
+
import './chunk-XY6Z7T5W.mjs';
|
|
4
|
+
import './chunk-RQ7LOBLD.mjs';
|
|
5
5
|
import './chunk-AV4IJKD2.mjs';
|
|
6
|
-
export { registerSynonyms } from './chunk-
|
|
7
|
-
export { registerPartialWordSearch, registerPatternSearch } from './chunk-
|
|
8
|
-
export { getLanguage, registerLanguage } from './chunk-
|
|
9
|
-
import './chunk-
|
|
6
|
+
export { registerSynonyms } from './chunk-4GD43FSW.mjs';
|
|
7
|
+
export { registerPartialWordSearch, registerPatternSearch } from './chunk-C57FPCTL.mjs';
|
|
8
|
+
export { getLanguage, registerLanguage } from './chunk-LWQTFKRS.mjs';
|
|
9
|
+
import './chunk-SOADQINJ.mjs';
|
|
10
10
|
import './chunk-HJSN7UYG.mjs';
|
|
11
11
|
import './chunk-LXWDQLTW.mjs';
|
|
12
12
|
import './chunk-TGP5M5R7.mjs';
|
|
13
13
|
import './chunk-U2BKYEC7.mjs';
|
|
14
14
|
export { isSimdAvailable } from './chunk-KOKM4PQN.mjs';
|
|
15
15
|
import './chunk-QSK35UC2.mjs';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import './chunk-MVWWAHTR.mjs';
|
|
17
|
+
import './chunk-C55OFKU6.mjs';
|
|
18
18
|
import './chunk-WQBCBKY3.mjs';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-62GK7UUS.mjs';
|
|
20
|
+
import './chunk-AWZVJCCW.mjs';
|
|
21
21
|
import './chunk-U476IXKQ.mjs';
|
|
22
22
|
import './chunk-E74YLAIG.mjs';
|
|
23
|
-
import './chunk-
|
|
23
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
24
24
|
import './chunk-GES7U2PM.mjs';
|
|
25
|
-
import './chunk-
|
|
26
|
-
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-
|
|
25
|
+
import './chunk-FV5CP3E2.mjs';
|
|
26
|
+
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-5LP7OU6B.mjs';
|
|
27
27
|
import './chunk-X5CV2E2B.mjs';
|
|
28
28
|
import './chunk-7X5JST5L.mjs';
|
|
29
|
-
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-
|
|
29
|
+
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-NYWUBTMH.mjs';
|
|
30
30
|
import './chunk-R6A773WK.mjs';
|
|
31
31
|
import './chunk-YTJCGKM4.mjs';
|
|
32
32
|
import './chunk-CQUMNIIG.mjs';
|
|
33
|
-
import './chunk-
|
|
33
|
+
import './chunk-5W7ADHK7.mjs';
|
|
34
|
+
import './chunk-ZXZ26WSO.mjs';
|
|
34
35
|
import './chunk-RFBLQLLZ.mjs';
|
|
35
36
|
import './chunk-L5ORED7V.mjs';
|
|
36
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-
|
|
37
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-S2CKO6PP.mjs';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { VECTOR_WORKER_COPIES_ALLOWED, DEFAULT_PROMOTION_THRESHOLD, DEFAULT_FILTER_THRESHOLD, noBuildHistory, recordCheckpoint, planCheckpoint, deserialize, assignStorePartitions, liveSize, ordinalFilterForSubsets, handOverBuildTurns, threadsHoldCurrentLayout, filterForOptions, OSQ4_MIN_DIMENSION, emptyFieldBeforeRestore, ESTIMATED_MS_PER_TOMBSTONE, graphNeedsRebuild, ESTIMATED_MS_PER_VECTOR_REBUILD, releaseReplacedVectors, yieldBuildTurn, WORKER_COPY_MIN_VECTORS, allLiveDocIds, recalibrateFromStore, signatureOf, adoptGraph, BUILD_RETRY_MAX_DELAY_MS, BUILD_RETRY_FIRST_DELAY_MS, fieldHandlesOf, liveOrdinals, RECALIBRATION_CHUNK_VECTORS, BUILD_CHUNK_SIZE, DRIFT_CHECK_GROWTH_FACTOR, DISK_ADOPTION_YIELD_INTERVAL, adoptLoadedCalibration, RECALIBRATION_DRIFT_RATIO } from './chunk-
|
|
2
|
-
import { isDead, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors } from './chunk-
|
|
3
|
-
import { createVectorStore } from './chunk-
|
|
4
|
-
export { openSharedVectorField } from './chunk-
|
|
5
|
-
import { osqBitsOf, createOsqQuantizer, STORE_ORDINAL_LAYOUT_GENERATION, ordinalFilterValues, STORE_UNPLACED_COUNT, STORE_LIVE_COUNT, STORE_REMOVED_COUNT, createOrdinalFilter, addToOrdinalFilter, nativeScoresOf, toScore, ordinalFilterHas, magnitude, nativeStoreScratchBytes, toDistance, euclideanDistance, dotProduct, cosineSimilarityWithMagnitudes, createHNSWIndex, topLayerInParts, sharedMemoryAvailable, requireWholeNeighbourLists, shuffleInPlace, createCentroidSums, centroidOfCentroidSums, meanOfCentroidSums, countOfCentroidSums, squaredLengthsOfCentroidSums, releaseLocksHeldBy } from './chunk-
|
|
6
|
-
export { releaseLocksHeldBy } from './chunk-
|
|
1
|
+
import { VECTOR_WORKER_COPIES_ALLOWED, DEFAULT_PROMOTION_THRESHOLD, DEFAULT_FILTER_THRESHOLD, noBuildHistory, recordCheckpoint, planCheckpoint, deserialize, assignStorePartitions, liveSize, ordinalFilterForSubsets, handOverBuildTurns, threadsHoldCurrentLayout, filterForOptions, OSQ4_MIN_DIMENSION, emptyFieldBeforeRestore, ESTIMATED_MS_PER_TOMBSTONE, graphNeedsRebuild, ESTIMATED_MS_PER_VECTOR_REBUILD, releaseReplacedVectors, yieldBuildTurn, WORKER_COPY_MIN_VECTORS, allLiveDocIds, recalibrateFromStore, signatureOf, adoptGraph, BUILD_RETRY_MAX_DELAY_MS, BUILD_RETRY_FIRST_DELAY_MS, fieldHandlesOf, liveOrdinals, RECALIBRATION_CHUNK_VECTORS, BUILD_CHUNK_SIZE, DRIFT_CHECK_GROWTH_FACTOR, DISK_ADOPTION_YIELD_INTERVAL, adoptLoadedCalibration, RECALIBRATION_DRIFT_RATIO } from './chunk-ZBZRBM2Z.mjs';
|
|
2
|
+
import { isDead, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors } from './chunk-CKRP7GCS.mjs';
|
|
3
|
+
import { createVectorStore } from './chunk-N75MAOM7.mjs';
|
|
4
|
+
export { openSharedVectorField } from './chunk-N75MAOM7.mjs';
|
|
5
|
+
import { osqBitsOf, createOsqQuantizer, STORE_ORDINAL_LAYOUT_GENERATION, ordinalFilterValues, STORE_UNPLACED_COUNT, STORE_LIVE_COUNT, STORE_REMOVED_COUNT, createOrdinalFilter, addToOrdinalFilter, nativeScoresOf, toScore, ordinalFilterHas, magnitude, nativeStoreScratchBytes, toDistance, euclideanDistance, dotProduct, cosineSimilarityWithMagnitudes, createHNSWIndex, topLayerInParts, sharedMemoryAvailable, requireWholeNeighbourLists, shuffleInPlace, createCentroidSums, centroidOfCentroidSums, meanOfCentroidSums, countOfCentroidSums, squaredLengthsOfCentroidSums, releaseLocksHeldBy } from './chunk-JKOBHB4A.mjs';
|
|
6
|
+
export { releaseLocksHeldBy } from './chunk-JKOBHB4A.mjs';
|
|
7
7
|
import { noteFallback } from './chunk-DJHHF2L5.mjs';
|
|
8
8
|
import './chunk-37CD3OKS.mjs';
|
|
9
9
|
import { spawnNodeWorker } from './chunk-C7SLA6CM.mjs';
|
|
10
|
-
import { resolveWorkerCount, resolveWorkerEntry, workerResourceLimits } from './chunk-
|
|
10
|
+
import { resolveWorkerCount, resolveWorkerEntry, workerResourceLimits } from './chunk-RQ7LOBLD.mjs';
|
|
11
11
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
12
12
|
import './chunk-LXWDQLTW.mjs';
|
|
13
13
|
import './chunk-KOKM4PQN.mjs';
|
|
14
14
|
import { MAX_RENUMBERED_SEARCH_ATTEMPTS, DISK_STORAGE_BLOCK_BYTES, UNPLACED_FLAG_CHUNK_ORDINALS, GRAPH_BUILD_CHUNKS_IN_FLIGHT_PER_WORKER, GRAPH_BUILD_DISPATCH_CHUNK, VECTOR_SEARCH_TIMEOUT_MS, VECTOR_SEARCH_LOAD_TIMEOUT_MS, VECTOR_SCRATCH_SLOTS, VECTOR_INSERT_TIMEOUT_MS } from './chunk-QSK35UC2.mjs';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-MVWWAHTR.mjs';
|
|
16
16
|
import './chunk-U476IXKQ.mjs';
|
|
17
17
|
import './chunk-E74YLAIG.mjs';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
19
19
|
import './chunk-R6A773WK.mjs';
|
|
20
20
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
21
21
|
import { noteThreadSlotLive, noteThreadSlotGone } from './chunk-RFBLQLLZ.mjs';
|
|
22
|
-
import { NarsilError, ErrorCodes, isNarsilError } from './chunk-
|
|
22
|
+
import { NarsilError, ErrorCodes, isNarsilError } from './chunk-S2CKO6PP.mjs';
|
|
23
23
|
|
|
24
24
|
// src/core/heap.ts
|
|
25
25
|
function createMaxHeap(compare) {
|
|
@@ -699,16 +699,20 @@ function nextHandle(state) {
|
|
|
699
699
|
return `${state.indexName}/${state.fieldName}#${handleCounter}`;
|
|
700
700
|
}
|
|
701
701
|
async function dropHandle(state, handle) {
|
|
702
|
-
const host = state.workerCopies.host;
|
|
703
|
-
if (host !== void 0) {
|
|
704
|
-
await host.drop(state.indexName, state.fieldName, handle).catch(() => void 0);
|
|
705
|
-
return;
|
|
706
|
-
}
|
|
707
702
|
const pool = state.workerCopyPool;
|
|
708
703
|
if (pool !== null) {
|
|
709
704
|
await pool.drop(handle).catch(() => void 0);
|
|
710
|
-
|
|
705
|
+
return;
|
|
711
706
|
}
|
|
707
|
+
const host = state.workerCopies.host;
|
|
708
|
+
if (host !== void 0) await host.drop(state.indexName, state.fieldName, handle).catch(() => void 0);
|
|
709
|
+
}
|
|
710
|
+
function letGoOfUnusedPool(state) {
|
|
711
|
+
if (state.workerCopyPool === null || state.sharedHandles.size > 0 || state.workerCopyHandle !== null) {
|
|
712
|
+
return Promise.resolve();
|
|
713
|
+
}
|
|
714
|
+
state.workerCopyPool = null;
|
|
715
|
+
return releaseVectorSearchPool().catch(() => void 0);
|
|
712
716
|
}
|
|
713
717
|
function dropSharedGraph(state, graph) {
|
|
714
718
|
const shared = state.sharedHandles.get(graph);
|
|
@@ -731,9 +735,7 @@ function invalidateWorkerCopies(state) {
|
|
|
731
735
|
state.workerCopyMode = null;
|
|
732
736
|
void dropHandle(state, handle);
|
|
733
737
|
}
|
|
734
|
-
|
|
735
|
-
state.workerCopyPool = null;
|
|
736
|
-
}
|
|
738
|
+
void letGoOfUnusedPool(state);
|
|
737
739
|
}
|
|
738
740
|
async function withdrawWorkerCopies(state) {
|
|
739
741
|
state.revision += 1;
|
|
@@ -745,7 +747,7 @@ async function withdrawWorkerCopies(state) {
|
|
|
745
747
|
state.workerCopyRevision = -1;
|
|
746
748
|
state.workerCopyMode = null;
|
|
747
749
|
await Promise.all([...handles].map((handle) => dropHandle(state, handle)));
|
|
748
|
-
|
|
750
|
+
await letGoOfUnusedPool(state);
|
|
749
751
|
}
|
|
750
752
|
async function holdWorkerCopies(state) {
|
|
751
753
|
state.workerCopiesHeld = true;
|
|
@@ -1449,12 +1451,14 @@ function bufferEveryVectorOutsideTheGraph(state) {
|
|
|
1449
1451
|
}
|
|
1450
1452
|
function insertNodesOfLaterGraph(state, graph, later, ordinals) {
|
|
1451
1453
|
for (const part of later.parts) requireWholeNeighbourLists(part);
|
|
1454
|
+
let placed = 0;
|
|
1452
1455
|
for (let number = 0; number < ordinals.length; number++) {
|
|
1453
1456
|
const ordinal = ordinals[number];
|
|
1454
1457
|
if (ordinal === NO_LIVE_VECTOR_AT_POSITION || topLayerInParts(later, number) < 0) continue;
|
|
1455
1458
|
const docId = state.store.docIdForOrdinal(ordinal);
|
|
1456
|
-
if (docId !== void 0 && !graph.has(docId)
|
|
1459
|
+
if (docId !== void 0 && !graph.has(docId) && graph.insertOrdinal(ordinal)) placed += 1;
|
|
1457
1460
|
}
|
|
1461
|
+
if (placed > 0) graph.connectUnreached();
|
|
1458
1462
|
}
|
|
1459
1463
|
function restoreGraph(state, payload, ordinalOfNumber, tombstoned, calibrationLoaded) {
|
|
1460
1464
|
const first = payload?.graphs[0]?.parts[0];
|
package/dist/partial-words.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { partialWordSearchModule } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { partialWordSearchModule } from './chunk-62GK7UUS.mjs';
|
|
2
|
+
import './chunk-AWZVJCCW.mjs';
|
|
3
3
|
import './chunk-U476IXKQ.mjs';
|
|
4
4
|
import './chunk-E74YLAIG.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
6
6
|
import './chunk-GES7U2PM.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-FV5CP3E2.mjs';
|
|
8
|
+
import './chunk-NYWUBTMH.mjs';
|
|
9
9
|
import './chunk-R6A773WK.mjs';
|
|
10
10
|
import './chunk-YTJCGKM4.mjs';
|
|
11
11
|
import './chunk-L5ORED7V.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-S2CKO6PP.mjs';
|
|
13
13
|
|
|
14
14
|
// src/partial-words/index.ts
|
|
15
15
|
var partialWordSearch = partialWordSearchModule;
|
package/dist/pattern.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { patternSearchModule } from './chunk-
|
|
1
|
+
import { patternSearchModule } from './chunk-C55OFKU6.mjs';
|
|
2
2
|
import './chunk-WQBCBKY3.mjs';
|
|
3
3
|
import './chunk-GES7U2PM.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-FV5CP3E2.mjs';
|
|
5
5
|
import './chunk-YTJCGKM4.mjs';
|
|
6
6
|
import './chunk-L5ORED7V.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-S2CKO6PP.mjs';
|
|
8
8
|
|
|
9
9
|
// src/pattern/index.ts
|
|
10
10
|
var patternSearch = patternSearchModule;
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { createDurableDirectory } from '../../chunk-
|
|
1
|
+
import { createDurableDirectory } from '../../chunk-PA5WZWLC.mjs';
|
|
2
2
|
import '../../chunk-C7SLA6CM.mjs';
|
|
3
3
|
import '../../chunk-HLPRHOSO.mjs';
|
|
4
|
-
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
4
|
+
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-CYXLPFBG.mjs';
|
|
5
|
+
import '../../chunk-VIXXQEX6.mjs';
|
|
6
6
|
import '../../chunk-P36MUFEJ.mjs';
|
|
7
7
|
import '../../chunk-RPIE4QCL.mjs';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-ICZW4J3I.mjs';
|
|
9
|
+
import '../../chunk-HL2GAS5N.mjs';
|
|
10
|
+
import '../../chunk-XY6Z7T5W.mjs';
|
|
11
|
+
import '../../chunk-RQ7LOBLD.mjs';
|
|
12
12
|
import '../../chunk-AV4IJKD2.mjs';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-4GD43FSW.mjs';
|
|
14
|
+
import '../../chunk-C57FPCTL.mjs';
|
|
15
|
+
import '../../chunk-LWQTFKRS.mjs';
|
|
16
|
+
import '../../chunk-SOADQINJ.mjs';
|
|
17
17
|
import '../../chunk-HJSN7UYG.mjs';
|
|
18
18
|
import '../../chunk-LXWDQLTW.mjs';
|
|
19
19
|
import '../../chunk-TGP5M5R7.mjs';
|
|
20
20
|
import '../../chunk-U2BKYEC7.mjs';
|
|
21
21
|
import '../../chunk-KOKM4PQN.mjs';
|
|
22
22
|
import '../../chunk-QSK35UC2.mjs';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-MVWWAHTR.mjs';
|
|
24
|
+
import '../../chunk-C55OFKU6.mjs';
|
|
25
25
|
import '../../chunk-WQBCBKY3.mjs';
|
|
26
|
-
import '../../chunk-
|
|
27
|
-
import '../../chunk-
|
|
26
|
+
import '../../chunk-62GK7UUS.mjs';
|
|
27
|
+
import '../../chunk-AWZVJCCW.mjs';
|
|
28
28
|
import '../../chunk-U476IXKQ.mjs';
|
|
29
29
|
import '../../chunk-E74YLAIG.mjs';
|
|
30
|
-
import '../../chunk-
|
|
30
|
+
import '../../chunk-VJS4JFBQ.mjs';
|
|
31
31
|
import '../../chunk-GES7U2PM.mjs';
|
|
32
|
-
import '../../chunk-
|
|
33
|
-
import '../../chunk-
|
|
32
|
+
import '../../chunk-FV5CP3E2.mjs';
|
|
33
|
+
import '../../chunk-5LP7OU6B.mjs';
|
|
34
34
|
import '../../chunk-X5CV2E2B.mjs';
|
|
35
35
|
import '../../chunk-7X5JST5L.mjs';
|
|
36
|
-
import '../../chunk-
|
|
36
|
+
import '../../chunk-NYWUBTMH.mjs';
|
|
37
37
|
import '../../chunk-R6A773WK.mjs';
|
|
38
38
|
import '../../chunk-YTJCGKM4.mjs';
|
|
39
39
|
import '../../chunk-CQUMNIIG.mjs';
|
|
40
|
-
import '../../chunk-
|
|
40
|
+
import '../../chunk-5W7ADHK7.mjs';
|
|
41
|
+
import '../../chunk-ZXZ26WSO.mjs';
|
|
41
42
|
import '../../chunk-RFBLQLLZ.mjs';
|
|
42
43
|
import '../../chunk-L5ORED7V.mjs';
|
|
43
|
-
import '../../chunk-
|
|
44
|
+
import '../../chunk-S2CKO6PP.mjs';
|
|
44
45
|
|
|
45
46
|
// src/persistence/durability/rebuild.ts
|
|
46
47
|
async function rebuildSegmentsFromDurable(root, metadata, targets, compactionThreshold, prior, capturedPartitions = []) {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as NarsilError, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, Q as QueryParams, P as PreflightResult, e as QueryResult, h as SuggestParams, j as SuggestResult } from './events-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-
|
|
3
|
-
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-
|
|
1
|
+
import { N as NarsilError, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, Q as QueryParams, P as PreflightResult, e as QueryResult, h as SuggestParams, j as SuggestResult } from './events-dnvgprIl.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-dnvgprIl.js';
|
|
3
|
+
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-B4B2cMK5.js';
|
|
4
|
+
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-B4B2cMK5.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as Narsil } from './engine-
|
|
7
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
6
|
+
import { N as Narsil } from './engine-CMZ5XSLy.js';
|
|
7
|
+
import { N as NarsilClient, I as ImportSource } from './client-Ba9yP-Rr.js';
|
|
8
8
|
import { A as AnyDocument } from './schema-4W_7tk1f.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
10
|
import './adapters-BQFQ4PRz.js';
|
package/dist/react.mjs
CHANGED
|
@@ -51,6 +51,7 @@ var ErrorCodes = {
|
|
|
51
51
|
QUERY_PARTIAL_FAILURE: "QUERY_PARTIAL_FAILURE",
|
|
52
52
|
QUERY_NODE_TIMEOUT: "QUERY_NODE_TIMEOUT",
|
|
53
53
|
QUERY_NO_ACTIVE_REPLICA: "QUERY_NO_ACTIVE_REPLICA",
|
|
54
|
+
SEARCH_CONTEXT_MISSING: "SEARCH_CONTEXT_MISSING",
|
|
54
55
|
CLUSTER_OPERATION_UNSUPPORTED: "CLUSTER_OPERATION_UNSUPPORTED",
|
|
55
56
|
CLUSTER_WRITE_BLOCKED: "CLUSTER_WRITE_BLOCKED",
|
|
56
57
|
ALLOCATION_NO_DATA_NODES: "ALLOCATION_NO_DATA_NODES",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { runRerankedQuery, rerankTextOf } from './chunk-
|
|
1
|
+
import { runRerankedQuery, rerankTextOf } from './chunk-SD2EYVU4.mjs';
|
|
2
2
|
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import { rerankOnHost } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { rerankOnHost } from './chunk-SAZB7ZHT.mjs';
|
|
4
|
+
import './chunk-FN75BCXC.mjs';
|
|
5
5
|
import './chunk-HJSN7UYG.mjs';
|
|
6
6
|
import './chunk-LXWDQLTW.mjs';
|
|
7
7
|
import './chunk-E74YLAIG.mjs';
|
|
8
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
8
|
+
import { NarsilError, ErrorCodes } from './chunk-S2CKO6PP.mjs';
|
|
9
9
|
|
|
10
10
|
// src/distribution/cluster-node/reads/rerank.ts
|
|
11
11
|
async function rerankClusterQuery(deps, indexName, params, firstStage, readDocuments, host) {
|
|
@@ -27,14 +27,14 @@ async function rerankClusterQuery(deps, indexName, params, firstStage, readDocum
|
|
|
27
27
|
fusesRankings: (request) => request.vector !== void 0 && (request.term !== void 0 || request.mode === "hybrid"),
|
|
28
28
|
firstStage,
|
|
29
29
|
async texts(docIds, fields) {
|
|
30
|
-
const documents = await readDocuments(docIds);
|
|
30
|
+
const documents = await readDocuments(docIds, false);
|
|
31
31
|
return docIds.map((docId) => {
|
|
32
32
|
const document = documents.get(docId);
|
|
33
33
|
return document === void 0 ? "" : rerankTextOf(fields.map((field) => host.getNestedValue(document, field)));
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
async storedPins(docIds) {
|
|
37
|
-
return new Set((await readDocuments(docIds)).keys());
|
|
37
|
+
return new Set((await readDocuments(docIds, false)).keys());
|
|
38
38
|
},
|
|
39
39
|
score: (adapter, query, documents) => rerankOnHost(core, adapter, query, documents),
|
|
40
40
|
async fillDocuments(hits, groups, projection) {
|
|
@@ -44,7 +44,7 @@ async function rerankClusterQuery(deps, indexName, params, firstStage, readDocum
|
|
|
44
44
|
for (const hit of grouped) hit.document = {};
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const documents = await readDocuments([...hits.map((hit) => hit.id), ...grouped.map((hit) => hit.id)]);
|
|
47
|
+
const documents = await readDocuments([...hits.map((hit) => hit.id), ...grouped.map((hit) => hit.id)], true);
|
|
48
48
|
const read = (docId) => {
|
|
49
49
|
const document = documents.get(docId);
|
|
50
50
|
return document === void 0 ? {} : host.applyProjection(document, projection);
|
package/dist/rerankers/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { ErrorCodes, NarsilError } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-IBJWO5PF.mjs';
|
|
2
|
+
import { ErrorCodes, NarsilError } from '../chunk-S2CKO6PP.mjs';
|
|
3
3
|
|
|
4
4
|
// src/rerankers/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -18,7 +18,7 @@ function restoreDepsOf(core, host) {
|
|
|
18
18
|
function queueRestore(core, host, restoresInFlight, indexName, data) {
|
|
19
19
|
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20
20
|
const restored = previous.then(async () => {
|
|
21
|
-
const { restoreFromSnapshot } = await import('./snapshot-
|
|
21
|
+
const { restoreFromSnapshot } = await import('./snapshot-DWDLN5YW.mjs');
|
|
22
22
|
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host));
|
|
23
23
|
});
|
|
24
24
|
const settled = restored.then(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { runRerankedQuery, rerankTextOf } from './chunk-
|
|
1
|
+
import { runRerankedQuery, rerankTextOf } from './chunk-SD2EYVU4.mjs';
|
|
2
2
|
export { withRerankQueryText } from './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import { rerankOnHost } from './chunk-
|
|
4
|
-
export { rerankOnHost } from './chunk-
|
|
5
|
-
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-
|
|
3
|
+
import { rerankOnHost } from './chunk-SAZB7ZHT.mjs';
|
|
4
|
+
export { rerankOnHost } from './chunk-SAZB7ZHT.mjs';
|
|
5
|
+
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-FN75BCXC.mjs';
|
|
6
6
|
import { MIN_RERANK_TIMEOUT_MS, MAX_RERANK_TIMEOUT_MS, MIN_RERANK_WINDOW, MAX_RERANK_WINDOW, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_RERANK_TIMEOUT_MS } from './chunk-HJSN7UYG.mjs';
|
|
7
7
|
import './chunk-LXWDQLTW.mjs';
|
|
8
8
|
import { HYBRID_RESCORE_WINDOW } from './chunk-E74YLAIG.mjs';
|
|
9
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
9
|
+
import { NarsilError, ErrorCodes } from './chunk-S2CKO6PP.mjs';
|
|
10
10
|
|
|
11
11
|
// src/engine/query/hybrid-depth.ts
|
|
12
12
|
function countOfUnion(text, vectorScored) {
|
package/dist/server.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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 './events-
|
|
2
|
-
import { c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
import { N as Narsil } from './engine-
|
|
5
|
-
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-
|
|
6
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-
|
|
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 './events-dnvgprIl.js';
|
|
2
|
+
import { c as ServerOptions, N as NarsilServer } from './capabilities-D4MUmjfe.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-D4MUmjfe.js';
|
|
4
|
+
import { N as Narsil } from './engine-CMZ5XSLy.js';
|
|
5
|
+
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-B4B2cMK5.js';
|
|
6
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-B4B2cMK5.js';
|
|
7
7
|
import './schema-4W_7tk1f.js';
|
|
8
8
|
import './adapters-BQFQ4PRz.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './config-
|
|
11
|
-
import './config-
|
|
12
|
-
import './index-
|
|
10
|
+
import './config-Dc_8-byz.js';
|
|
11
|
+
import './config-C-xXz8bC.js';
|
|
12
|
+
import './index-Cl5qQauj.js';
|
|
13
13
|
import './types-DvncmvuQ.js';
|
|
14
14
|
|
|
15
15
|
/**
|