@delali/narsil 0.3.1-next.89 → 0.3.1-next.91
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/browser/{chunk-JACCR3BJ.mjs → chunk-66KYAOIK.mjs} +1 -1
- package/dist/browser/{chunk-3GZQKGVQ.mjs → chunk-B6XE7KXY.mjs} +11 -3
- package/dist/browser/{chunk-RAHUQOJL.mjs → chunk-NOUZ6RH3.mjs} +2219 -2005
- package/dist/browser/{durability-wiring-VSUBLUDK.mjs → durability-wiring-F4OGQUSU.mjs} +3 -3
- package/dist/browser/{snapshot-5MXBEDXF.mjs → snapshot-5EJ7I7QY.mjs} +12 -6
- package/dist/browser/{write-6SBYTS62.mjs → write-K5V4XQ72.mjs} +2 -2
- package/dist/{capabilities-SJPttcgQ.d.ts → capabilities-CvExBThq.d.ts} +11 -3
- package/dist/{chunk-MWJIAREY.mjs → chunk-3RDS4UHC.mjs} +2 -2
- package/dist/{chunk-QAMUC2BJ.mjs → chunk-3TTYK5A7.mjs} +7 -6
- package/dist/{chunk-URGLSNKR.mjs → chunk-43ORORN6.mjs} +201 -15
- package/dist/{chunk-A3UB2MXL.mjs → chunk-5ER245FI.mjs} +2 -505
- package/dist/{chunk-VY4DXZ5P.mjs → chunk-67Z2V6TC.mjs} +1 -1
- package/dist/{chunk-EMXAYPTQ.mjs → chunk-6VZ3Q73N.mjs} +2265 -3461
- package/dist/{chunk-S4LQDSUL.mjs → chunk-7OQHSDK6.mjs} +3 -3
- package/dist/chunk-7X5JST5L.mjs +114 -0
- package/dist/{chunk-R6BMMQXH.mjs → chunk-A4G7JSYO.mjs} +106 -41
- package/dist/{chunk-DCK4P5BI.mjs → chunk-BJ2YKRNX.mjs} +16 -7
- package/dist/{chunk-J2BPXTD7.mjs → chunk-CO4MRKST.mjs} +1 -1
- package/dist/{chunk-CL4OM7GB.mjs → chunk-EONIHG3V.mjs} +8 -4
- package/dist/chunk-MKWUXWQH.mjs +35 -0
- package/dist/chunk-NVL4ZR3K.mjs +426 -0
- package/dist/{chunk-GCM3JFVA.mjs → chunk-OHP7QR33.mjs} +2 -1
- package/dist/{chunk-YRX6XMOQ.mjs → chunk-R6PR4WYZ.mjs} +1 -0
- package/dist/{chunk-OOSIDHA3.mjs → chunk-RSRVGAIQ.mjs} +1 -1
- package/dist/{chunk-V7YUSKKZ.mjs → chunk-T4DB5YFB.mjs} +7 -3
- package/dist/{chunk-XSZVS4S3.mjs → chunk-UXQE2ROB.mjs} +6 -2
- package/dist/chunk-X5CV2E2B.mjs +1 -0
- package/dist/chunk-XLJ2S2BH.mjs +3572 -0
- package/dist/chunk-ZIJ63TBT.mjs +507 -0
- package/dist/{client-BMK53IR2.d.ts → client-Cc42b42j.d.ts} +27 -3
- package/dist/client.d.ts +9 -8
- package/dist/client.mjs +15 -2
- package/dist/{config-BUR-7eVQ.d.ts → config-BYne-yCI.d.ts} +2 -2
- package/dist/{config-UJx1dyX1.d.ts → config-DyRowvVP.d.ts} +2 -2
- package/dist/{direct-executor-EGESD26S.mjs → direct-executor-CHXVCBN7.mjs} +9 -5
- package/dist/distribution/coordinator/etcd.d.ts +3 -2
- package/dist/distribution/coordinator/etcd.mjs +4 -0
- package/dist/distribution/coordinator/in-memory.d.ts +3 -2
- package/dist/distribution/coordinator/in-memory.mjs +4 -0
- package/dist/distribution/transport/grpc.mjs +2 -2
- package/dist/distribution/transport/in-memory.mjs +1 -1
- package/dist/distribution/transport/tcp.mjs +2 -2
- package/dist/distribution.d.ts +43 -9
- package/dist/distribution.mjs +4590 -4263
- package/dist/{durability-wiring-ZLRQU6FG.mjs → durability-wiring-6AN4QTT3.mjs} +20 -16
- package/dist/{engine-9X6W5naj.d.ts → engine-96_kLtSY.d.ts} +43 -7
- package/dist/{index-vCMu8OeQ.d.ts → index-ONAEaqtx.d.ts} +8 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.ts +44 -25
- package/dist/index.mjs +13 -9
- package/dist/{memory-CV9NAxLY.d.ts → memory-dd3GESdc.d.ts} +3 -3
- package/dist/partial-words.mjs +2 -1
- package/dist/persistence/durability/checkpoint-worker.d.ts +60 -58
- package/dist/persistence/durability/checkpoint-worker.mjs +18 -14
- package/dist/react.d.ts +8 -7
- package/dist/{schema-DtsgmNfU.d.ts → schema-DttzM-ln.d.ts} +12 -0
- package/dist/server.d.ts +11 -10
- package/dist/server.mjs +33 -6
- package/dist/{snapshot-22CUEYYW.mjs → snapshot-JFZVOGZV.mjs} +28 -18
- package/dist/synonyms-CpOAHPa-.d.ts +52 -0
- package/dist/synonyms.d.ts +22 -0
- package/dist/synonyms.mjs +12 -0
- package/dist/{tasks-BGaZJyoY.d.ts → tasks-DA1Ff0G4.d.ts} +4 -1
- package/dist/{thread-ZP3UMIZT.mjs → thread-VTDLLYXC.mjs} +7 -5
- package/dist/vector/search-worker.d.ts +2 -1
- package/dist/workers/entry.mjs +4 -4
- package/dist/{write-PXDKPG2R.mjs → write-OJR3H4BI.mjs} +14 -10
- package/package.json +15 -7
- package/dist/chunk-PR4O7CAP.mjs +0 -18
- package/dist/chunk-X4SEXL4U.mjs +0 -2310
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue, requireValidFieldTypes, VECTOR_PATTERN } from './chunk-
|
|
1
|
+
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue, requireValidFieldTypes, VECTOR_PATTERN } from './chunk-NOUZ6RH3.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-FHFFWLEK.mjs';
|
|
3
3
|
import { decode } from '@msgpack/msgpack';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes } from './chunk-
|
|
2
|
-
import { VERSION, flattenSchema, packChecksummedEnvelope, openChecksummedEnvelope, requireValidFieldTypes, isCompositePartition, crc32, reconstructSchemaFromMetadata, extractVectorFieldsFromSchema, readHeader, HEADER_SIZE, engineVersionParts, writeHeader, partialFieldsOf, getLanguage, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, VECTOR_PATTERN, isQuantizationMode, isStorageMode, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, fnv1a, selectionKeeps, decodeMapWithoutFields, prepareDocumentVectors, messagePackUpperBoundBytes, segmentArraysOf, mergeSegmentContents, resolveIndexAnalysis } from './chunk-
|
|
1
|
+
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes } from './chunk-66KYAOIK.mjs';
|
|
2
|
+
import { VERSION, rulesOfStoredSynonyms, flattenSchema, packChecksummedEnvelope, openChecksummedEnvelope, requireValidFieldTypes, isCompositePartition, crc32, reconstructSchemaFromMetadata, extractVectorFieldsFromSchema, readHeader, HEADER_SIZE, engineVersionParts, writeHeader, partialFieldsOf, getLanguage, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, VECTOR_PATTERN, isQuantizationMode, isStorageMode, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, fnv1a, selectionKeeps, decodeMapWithoutFields, prepareDocumentVectors, messagePackUpperBoundBytes, segmentArraysOf, mergeSegmentContents, resolveIndexAnalysis } from './chunk-NOUZ6RH3.mjs';
|
|
3
3
|
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead, VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-NQW2YXEX.mjs';
|
|
4
4
|
import { compareCodePoints, NarsilError, ErrorCodes, MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-FHFFWLEK.mjs';
|
|
5
5
|
import { decode, encode } from '@msgpack/msgpack';
|
|
@@ -58,6 +58,9 @@ function metadataFromConfig(indexName, config, partitionCount, documentCount) {
|
|
|
58
58
|
if (config.indexUuid !== void 0) {
|
|
59
59
|
metadata.indexUuid = config.indexUuid;
|
|
60
60
|
}
|
|
61
|
+
if (config.synonyms !== void 0) {
|
|
62
|
+
metadata.synonyms = config.synonyms;
|
|
63
|
+
}
|
|
61
64
|
if (config.heldPartitions !== void 0) {
|
|
62
65
|
metadata.heldPartitions = config.heldPartitions;
|
|
63
66
|
}
|
|
@@ -89,7 +92,8 @@ function metadataConfigOf(entry) {
|
|
|
89
92
|
...entry.config.strict !== void 0 ? { strict: entry.config.strict } : {},
|
|
90
93
|
...entry.config.required !== void 0 ? { required: entry.config.required } : {},
|
|
91
94
|
...entry.config.vectorPromotion !== void 0 ? { vectorPromotion: entry.config.vectorPromotion } : {},
|
|
92
|
-
...entry.config.patternValueLimit !== void 0 ? { patternValueLimit: entry.config.patternValueLimit } : {}
|
|
95
|
+
...entry.config.patternValueLimit !== void 0 ? { patternValueLimit: entry.config.patternValueLimit } : {},
|
|
96
|
+
...entry.synonyms !== null ? { synonyms: rulesOfStoredSynonyms(entry.synonyms) } : {}
|
|
93
97
|
};
|
|
94
98
|
}
|
|
95
99
|
function indexMetadataOf(indexName, entry, partitionCount) {
|
|
@@ -364,6 +368,9 @@ function metadataToWire(meta) {
|
|
|
364
368
|
if (meta.heldPartitions !== void 0) {
|
|
365
369
|
wire.held_partitions = meta.heldPartitions;
|
|
366
370
|
}
|
|
371
|
+
if (Array.isArray(meta.synonyms) && meta.synonyms.length > 0) {
|
|
372
|
+
wire.synonyms = meta.synonyms;
|
|
373
|
+
}
|
|
367
374
|
return wire;
|
|
368
375
|
}
|
|
369
376
|
function wireToMetadata(raw) {
|
|
@@ -495,6 +502,7 @@ function wireToMetadata(raw) {
|
|
|
495
502
|
if (Array.isArray(raw.held_partitions) && raw.held_partitions.every(isNonNegativeInteger)) {
|
|
496
503
|
meta.heldPartitions = raw.held_partitions;
|
|
497
504
|
}
|
|
505
|
+
if (raw.synonyms !== void 0 && raw.synonyms !== null) meta.synonyms = raw.synonyms;
|
|
498
506
|
return meta;
|
|
499
507
|
}
|
|
500
508
|
function isNonNegativeInteger(value) {
|