@delali/narsil 0.3.1-next.131 → 0.3.1-next.141
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/analysis-change-HQUT2Z3I.mjs +43 -0
- package/dist/analysis-change-entry-TZTG4AZB.mjs +1 -0
- package/dist/browser/analysis-change-JPV775LR.mjs +900 -0
- package/dist/browser/analysis-change-entry-7HR4LWL3.mjs +1 -0
- package/dist/browser/{chunk-UDGB2MWT.mjs → chunk-35B42UFM.mjs} +4 -0
- package/dist/browser/chunk-3ZBJYAS4.mjs +19 -0
- package/dist/browser/{chunk-2Y3CO4EQ.mjs → chunk-5DB2VDGI.mjs} +1149 -1853
- package/dist/browser/chunk-6RHTAVZX.mjs +656 -0
- package/dist/browser/chunk-CCOAOO73.mjs +86 -0
- package/dist/browser/{chunk-AIIJDWMG.mjs → chunk-D33A5VMU.mjs} +16 -16
- package/dist/browser/{chunk-VBBLTD7O.mjs → chunk-HKX2G6WH.mjs} +1520 -2159
- package/dist/browser/{chunk-NSCSR6MA.mjs → chunk-KTOK275N.mjs} +606 -830
- package/dist/browser/{chunk-D7WQF6DV.mjs → chunk-LVY2LI35.mjs} +2 -2
- package/dist/browser/chunk-MVM33ZUL.mjs +993 -0
- package/dist/browser/chunk-MWUK3DA5.mjs +2634 -0
- package/dist/browser/{chunk-VEGHFP2P.mjs → chunk-MZI3TEOW.mjs} +4 -2
- package/dist/browser/chunk-OIZS5KIX.mjs +6 -0
- package/dist/browser/chunk-R4WUDZQV.mjs +176 -0
- package/dist/browser/{chunk-M5UAAXGU.mjs → chunk-TCLEOZ4P.mjs} +3 -3
- package/dist/browser/chunk-VFYMPCOV.mjs +212 -0
- package/dist/browser/chunk-WCFCHIBB.mjs +177 -0
- package/dist/browser/chunk-XNWPP5NS.mjs +21 -0
- package/dist/browser/chunk-ZEV26AQ6.mjs +270 -0
- package/dist/browser/cold-module-MJMKNUYJ.mjs +745 -0
- package/dist/browser/{durability-wiring-FNZSRH4N.mjs → durability-wiring-SNOWIT6Z.mjs} +370 -95
- package/dist/browser/import-TLB2A5LJ.mjs +9 -0
- package/dist/browser/module-BUFNZMEU.mjs +12 -0
- package/dist/browser/{module-4HIMOQM5.mjs → module-BVP4TKZU.mjs} +397 -109
- package/dist/browser/{phrase-module-WESYVU7K.mjs → phrase-module-HGVBO24W.mjs} +1 -1
- package/dist/{restore-queue-JAMNRC6T.mjs → browser/restore-queue-ONYNYUDE.mjs} +8 -2
- package/dist/browser/{runtime-3X7ZJ5T3.mjs → runtime-VEUH674B.mjs} +2 -2
- package/dist/browser/{snapshot-V7VF6BN6.mjs → snapshot-QXBKHJAG.mjs} +135 -183
- package/dist/browser/{write-YIC2MKRY.mjs → write-WHFBDWQS.mjs} +64 -90
- package/dist/{capabilities-B6WxrWxt.d.ts → capabilities-BCdUwK_L.d.ts} +10 -3
- package/dist/chunk-46NZOPHS.mjs +21 -0
- package/dist/{chunk-JT3YZGCE.mjs → chunk-5WYVUPGD.mjs} +3 -188
- package/dist/chunk-6SNBQESJ.mjs +214 -0
- package/dist/{chunk-2C3WXBQS.mjs → chunk-74XB2SXI.mjs} +1 -1
- package/dist/chunk-7AUASRE7.mjs +653 -0
- package/dist/{chunk-NMXRXFGZ.mjs → chunk-AST3SHFA.mjs} +27 -25
- package/dist/chunk-BOJZGUS6.mjs +177 -0
- package/dist/{chunk-T4OFG4IQ.mjs → chunk-BRUUBXCB.mjs} +92 -17
- package/dist/{chunk-5LX6MOIB.mjs → chunk-C3YDYX6C.mjs} +1 -1
- package/dist/chunk-CZQ33DLW.mjs +78 -0
- package/dist/{chunk-4GDLFDPZ.mjs → chunk-DD2673TX.mjs} +3 -2
- package/dist/{chunk-EUCX5K74.mjs → chunk-DQNKVOJ2.mjs} +65 -65
- package/dist/{chunk-RNSC4NFI.mjs → chunk-EEBCDP36.mjs} +3 -1
- package/dist/chunk-FOCV4CBZ.mjs +87 -0
- package/dist/{chunk-HCGJKDZV.mjs → chunk-GLZHNSGB.mjs} +1 -1
- package/dist/chunk-GWOS5DYC.mjs +2637 -0
- package/dist/{chunk-PATMDIMN.mjs → chunk-HJJWY6PT.mjs} +1 -1
- package/dist/{chunk-CZ7ISLXA.mjs → chunk-HNHCNTVG.mjs} +4 -0
- package/dist/{chunk-Y2U5VVWX.mjs → chunk-ICW45TTU.mjs} +1 -1
- package/dist/{chunk-TGHNXN7W.mjs → chunk-IO5F7ZBE.mjs} +261 -948
- package/dist/{chunk-P36MUFEJ.mjs → chunk-JDDXV6UF.mjs} +2 -1
- package/dist/{chunk-7OIQ2SIO.mjs → chunk-KEIYVZUX.mjs} +5 -5
- package/dist/{chunk-PU6SKH7O.mjs → chunk-KGOXHLLZ.mjs} +7 -3
- package/dist/{chunk-WVRDRLIC.mjs → chunk-KZL72VTC.mjs} +70 -18
- package/dist/chunk-L76W3IZJ.mjs +193 -0
- package/dist/{chunk-2JWNJSNE.mjs → chunk-LA4WNDHL.mjs} +88 -801
- package/dist/{chunk-ZR4VM4A6.mjs → chunk-N37VMC62.mjs} +1 -18
- package/dist/{chunk-JJ6EUMXB.mjs → chunk-NJJCPFXN.mjs} +2 -2
- package/dist/chunk-NN33CZRE.mjs +86 -0
- package/dist/{chunk-2WBY4Y4M.mjs → chunk-NOT5QOHU.mjs} +1 -1
- package/dist/{chunk-D5TFRB5G.mjs → chunk-NPNK57CA.mjs} +1 -1
- package/dist/chunk-NRUXBYPH.mjs +121 -0
- package/dist/{chunk-6SSVIW7Y.mjs → chunk-O4LJQI4G.mjs} +31 -5
- package/dist/{chunk-UJWGQIXU.mjs → chunk-QHPYS427.mjs} +1 -0
- package/dist/{chunk-F6AAXI7T.mjs → chunk-RHKRTYGO.mjs} +13 -4
- package/dist/{chunk-2SEL6SBS.mjs → chunk-RKAVHNRW.mjs} +2 -2
- package/dist/{chunk-RCMNL7RI.mjs → chunk-SBMAWTRG.mjs} +41 -4
- package/dist/chunk-SRJBFG2T.mjs +881 -0
- package/dist/{chunk-X5CNUKD5.mjs → chunk-TNBIK2LQ.mjs} +1663 -1652
- package/dist/{chunk-NNO7CO3A.mjs → chunk-UIKN2OTQ.mjs} +1 -1
- package/dist/chunk-UUZCQQG2.mjs +209 -0
- package/dist/{chunk-6M6SDH3S.mjs → chunk-VEFN6X6Q.mjs} +8 -8
- package/dist/chunk-VJEGOELZ.mjs +177 -0
- package/dist/chunk-W2COJ5AH.mjs +148 -0
- package/dist/{chunk-RWESFSJI.mjs → chunk-WJGO5PGV.mjs} +317 -174
- package/dist/{chunk-7X5JST5L.mjs → chunk-WNBRW4Q2.mjs} +16 -2
- package/dist/{chunk-SZGRYEIC.mjs → chunk-XS2VM7UE.mjs} +3 -3
- package/dist/{chunk-Y4BVTQ53.mjs → chunk-XZ3SRNDJ.mjs} +25 -64
- package/dist/{chunk-K77FJXKS.mjs → chunk-YHUTF6EA.mjs} +474 -93
- package/dist/{chunk-OGLV4I3L.mjs → chunk-YLNSJQLX.mjs} +12 -7
- package/dist/{chunk-SOHMMNCH.mjs → chunk-Z4HFMYNX.mjs} +32 -27
- package/dist/{chunk-5W7AEVTH.mjs → chunk-ZMBFWQXN.mjs} +2 -2
- package/dist/{chunk-2MKX2SCO.mjs → chunk-ZPWS2SKJ.mjs} +297 -274
- package/dist/{chunk-7XY6VD7B.mjs → chunk-ZSWHPKGM.mjs} +1 -1
- package/dist/{client-gNAfaHcE.d.ts → client-B12YFALP.d.ts} +18 -3
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +11 -1
- package/dist/cold-module-4X7WJCFM.mjs +783 -0
- package/dist/{config-D1cDv3sE.d.ts → config-BhZxIeb1.d.ts} +10 -1
- package/dist/{config-CmYJO34X.d.ts → config-CIG5yDyg.d.ts} +2 -2
- package/dist/{direct-executor-HQ4QVDX7.mjs → direct-executor-7XOQ7VQP.mjs} +14 -14
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +24 -8
- package/dist/distribution.mjs +982 -211
- package/dist/{durability-wiring-S7OX2MAI.mjs → durability-wiring-324D2DDD.mjs} +362 -94
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-m_Ddr1bz.d.ts → engine-CtzbHOmG.d.ts} +64 -7
- package/dist/import-OOBUW3RR.mjs +44 -0
- package/dist/{index-HYnqS1SE.d.ts → index-DsEurhSl.d.ts} +1 -1
- package/dist/index.browser.mjs +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +22 -22
- package/dist/{long-query-thread-BSL25PD6.mjs → long-query-thread-4SW7RWDE.mjs} +15 -15
- package/dist/{module-2E4XYSGT.mjs → module-DXSJ5LT2.mjs} +378 -87
- package/dist/module-IYPLWHGC.mjs +48 -0
- package/dist/paged-partition-archive-HFP45PLU.mjs +269 -0
- package/dist/partial-words.mjs +5 -5
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +16 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +28 -26
- package/dist/{phrase-module-JERF2IDG.mjs → phrase-module-5QHBD2VJ.mjs} +1 -1
- package/dist/react.d.ts +9 -9
- package/dist/react.mjs +4 -0
- package/dist/{rerank-DMMT4FZA.mjs → rerank-KTLC3E6N.mjs} +5 -5
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{browser/restore-queue-GEZ54CA5.mjs → restore-queue-FEYAC4SB.mjs} +8 -2
- package/dist/{runtime-7MLQ7J64.mjs → runtime-DYV75DCB.mjs} +6 -6
- package/dist/{schema-BTXbHCqA.d.ts → schema-B-Runv0n.d.ts} +7 -0
- package/dist/server.d.ts +12 -10
- package/dist/server.mjs +54 -21
- package/dist/{snapshot-DOQLGGEX.mjs → snapshot-CGM65VCD.mjs} +101 -197
- package/dist/synonyms.mjs +6 -4
- package/dist/{tasks-Co8HfRD7.d.ts → tasks-CjRJRGTb.d.ts} +26 -8
- package/dist/{thread-SKO7CN3R.mjs → thread-KGNAIKPD.mjs} +14 -14
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +6 -5
- package/dist/workers/entry.mjs +8 -8
- package/dist/{write-ZKR7SNRT.mjs → write-2DZPEQL2.mjs} +82 -107
- package/openapi.json +114 -6
- package/package.json +12 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-NOT5QOHU.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from '../chunk-HNHCNTVG.mjs';
|
|
3
3
|
|
|
4
4
|
// src/embeddings/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -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, I as InsertOptions, W as WriteOptions, a as IndexConfig, P as PartitionConfig } from './schema-
|
|
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-
|
|
2
|
+
import { B as BM25Params, A as AnyDocument, I as InsertOptions, W as WriteOptions, a as IndexConfig, P as PartitionConfig } from './schema-B-Runv0n.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-BhZxIeb1.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -33,6 +33,62 @@ interface AdapterRegistrationOperations {
|
|
|
33
33
|
registerRerankAdapter(name: string, adapter: RerankAdapter): void;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* The analysis settings that {@link AnalysisOperations.changeAnalysis} changes
|
|
38
|
+
* on a live index. A key that you leave out keeps its current value.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
interface AnalysisChange {
|
|
43
|
+
/** This is the name of a registered language. */
|
|
44
|
+
language?: string;
|
|
45
|
+
/**
|
|
46
|
+
* This is a name that {@link registerTokenizer} bound. Pass `null` to return
|
|
47
|
+
* to the tokeniser of the language.
|
|
48
|
+
*/
|
|
49
|
+
tokenizer?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* This is a name that {@link registerStopWords} bound, or a list of words.
|
|
52
|
+
* Pass `null` to return to the stop words of the language.
|
|
53
|
+
*/
|
|
54
|
+
stopWords?: string | readonly string[] | ReadonlySet<string> | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Changes how an index turns text into terms while the index keeps answering
|
|
58
|
+
* searches.
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
interface AnalysisOperations {
|
|
63
|
+
/**
|
|
64
|
+
* Gives you an index that matches text under new settings, while the index
|
|
65
|
+
* keeps answering searches and accepting writes.
|
|
66
|
+
*
|
|
67
|
+
* The engine builds the new terms beside the old ones. Searches keep matching
|
|
68
|
+
* under the old settings during that time, while every write that the engine
|
|
69
|
+
* accepts reaches the new terms. Each search matches under one set of
|
|
70
|
+
* settings, either the old or the new, and the rebuild leaves vectors alone.
|
|
71
|
+
* The promise resolves once a durable checkpoint holds the new terms, or once
|
|
72
|
+
* the switch happens on an engine without durability. After a restart at any
|
|
73
|
+
* point, the engine goes on to finish the change.
|
|
74
|
+
*
|
|
75
|
+
* @param indexName - The index to change.
|
|
76
|
+
* @param change - The settings to change. A change to the values that the
|
|
77
|
+
* index already holds completes with no rebuild.
|
|
78
|
+
* @throws A `NarsilError` with `LANGUAGE_NOT_SUPPORTED` for an unregistered
|
|
79
|
+
* language, with `CONFIG_INVALID` for an unregistered name, a tokeniser
|
|
80
|
+
* instance, a stop word function, or a synonym word that breaks the synonym
|
|
81
|
+
* rules under the new settings, with `ANALYSIS_REBUILD_MEMORY_EXCEEDED` when a
|
|
82
|
+
* second copy of the terms does not fit in memory, with
|
|
83
|
+
* `ANALYSIS_CHANGE_REPLACED` when a later change or a restore replaces this
|
|
84
|
+
* one, with `ANALYSIS_CHANGE_NOT_READY` when the previous change has no
|
|
85
|
+
* durable checkpoint yet, with `PERSISTENCE_SAVE_FAILED` when the new terms
|
|
86
|
+
* answer searches before a durable checkpoint holds them, and with
|
|
87
|
+
* `PARTITION_REBALANCING_BACKPRESSURE` during a rebalance.
|
|
88
|
+
*/
|
|
89
|
+
changeAnalysis(indexName: string, change: AnalysisChange): Promise<void>;
|
|
90
|
+
}
|
|
91
|
+
|
|
36
92
|
/**
|
|
37
93
|
* Changes the BM25 setting of a live index, which
|
|
38
94
|
* {@link IndexConfig.bm25} sets when the index is created.
|
|
@@ -239,14 +295,15 @@ interface DocumentWriteOperations {
|
|
|
239
295
|
*
|
|
240
296
|
* One instance holds every index you create, so an application usually keeps a
|
|
241
297
|
* single engine for its lifetime and reaches each index by name. Build one
|
|
242
|
-
* with {@link createNarsil}. Its write, open and close, synonym, BM25,
|
|
243
|
-
* adapter registration methods come from {@link DocumentWriteOperations},
|
|
298
|
+
* with {@link createNarsil}. Its write, open and close, synonym, analysis, BM25,
|
|
299
|
+
* and adapter registration methods come from {@link DocumentWriteOperations},
|
|
244
300
|
* {@link IndexLifecycleOperations}, {@link SynonymOperations},
|
|
245
|
-
* {@link
|
|
301
|
+
* {@link AnalysisOperations}, {@link BM25Operations}, and
|
|
302
|
+
* {@link AdapterRegistrationOperations}.
|
|
246
303
|
*
|
|
247
304
|
* @public
|
|
248
305
|
*/
|
|
249
|
-
interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, SynonymOperations, BM25Operations, AdapterRegistrationOperations {
|
|
306
|
+
interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, SynonymOperations, AnalysisOperations, BM25Operations, AdapterRegistrationOperations {
|
|
250
307
|
/**
|
|
251
308
|
* Creates an index you can insert documents into and query.
|
|
252
309
|
*
|
|
@@ -604,4 +661,4 @@ interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, Syno
|
|
|
604
661
|
shutdown(): Promise<void>;
|
|
605
662
|
}
|
|
606
663
|
|
|
607
|
-
export type {
|
|
664
|
+
export type { AnalysisChange as A, BM25Operations as B, DocumentWriteOperations as D, IndexLifecycleOperations as I, Narsil as N, SynonymOperations as S, AdapterRegistrationOperations as a, AnalysisOperations as b, ByteSource as c };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-6SNBQESJ.mjs';
|
|
2
|
+
import './chunk-BOJZGUS6.mjs';
|
|
3
|
+
import './chunk-CZQ33DLW.mjs';
|
|
4
|
+
import './chunk-L76W3IZJ.mjs';
|
|
5
|
+
import './chunk-IO5F7ZBE.mjs';
|
|
6
|
+
import './chunk-VEFN6X6Q.mjs';
|
|
7
|
+
import './chunk-5WYVUPGD.mjs';
|
|
8
|
+
import './chunk-HJSN7UYG.mjs';
|
|
9
|
+
import './chunk-UIKN2OTQ.mjs';
|
|
10
|
+
import './chunk-AV4IJKD2.mjs';
|
|
11
|
+
import './chunk-EEBCDP36.mjs';
|
|
12
|
+
import './chunk-WJGO5PGV.mjs';
|
|
13
|
+
import './chunk-ZPWS2SKJ.mjs';
|
|
14
|
+
import './chunk-N37VMC62.mjs';
|
|
15
|
+
import './chunk-ZATRDAYU.mjs';
|
|
16
|
+
import './chunk-EBIHRL7B.mjs';
|
|
17
|
+
import './chunk-KOKM4PQN.mjs';
|
|
18
|
+
import './chunk-QSK35UC2.mjs';
|
|
19
|
+
import './chunk-74XB2SXI.mjs';
|
|
20
|
+
import './chunk-RKAVHNRW.mjs';
|
|
21
|
+
import './chunk-WQBCBKY3.mjs';
|
|
22
|
+
import './chunk-JUKYYXSP.mjs';
|
|
23
|
+
import './chunk-DQNKVOJ2.mjs';
|
|
24
|
+
import './chunk-KGOXHLLZ.mjs';
|
|
25
|
+
import './chunk-U476IXKQ.mjs';
|
|
26
|
+
import './chunk-FQBFZAWG.mjs';
|
|
27
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
28
|
+
import './chunk-GES7U2PM.mjs';
|
|
29
|
+
import './chunk-ZSWHPKGM.mjs';
|
|
30
|
+
import './chunk-O4LJQI4G.mjs';
|
|
31
|
+
import './chunk-X5CV2E2B.mjs';
|
|
32
|
+
import './chunk-WNBRW4Q2.mjs';
|
|
33
|
+
import './chunk-TGP5M5R7.mjs';
|
|
34
|
+
import './chunk-U2BKYEC7.mjs';
|
|
35
|
+
import './chunk-NPNK57CA.mjs';
|
|
36
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
37
|
+
import './chunk-R6A773WK.mjs';
|
|
38
|
+
import './chunk-YTJCGKM4.mjs';
|
|
39
|
+
import './chunk-QHPYS427.mjs';
|
|
40
|
+
import './chunk-GLZHNSGB.mjs';
|
|
41
|
+
import './chunk-22YPZVMG.mjs';
|
|
42
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
43
|
+
import './chunk-L5ORED7V.mjs';
|
|
44
|
+
import './chunk-HNHCNTVG.mjs';
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
2
|
-
import './browser/chunk-26A5JFT2.mjs';
|
|
3
|
-
export { isSimdAvailable } from './browser/chunk-AIIJDWMG.mjs';
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-5DB2VDGI.mjs';
|
|
4
2
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
5
|
-
import './browser/chunk-
|
|
6
|
-
export {
|
|
3
|
+
import './browser/chunk-26A5JFT2.mjs';
|
|
4
|
+
export { isSimdAvailable } from './browser/chunk-D33A5VMU.mjs';
|
|
5
|
+
import './browser/chunk-MZI3TEOW.mjs';
|
|
6
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-35B42UFM.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +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, 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-
|
|
1
|
+
import { b as StopWordOverride, C as CustomTokenizer } from './schema-B-Runv0n.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-B-Runv0n.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
|
-
import { e as NarsilConfig } from './config-
|
|
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-
|
|
11
|
-
import { N as Narsil } from './engine-
|
|
12
|
-
export {
|
|
9
|
+
import { e as NarsilConfig } from './config-BhZxIeb1.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-BhZxIeb1.js';
|
|
11
|
+
import { N as Narsil } from './engine-CtzbHOmG.js';
|
|
12
|
+
export { a as AdapterRegistrationOperations, A as AnalysisChange, b as AnalysisOperations, B as BM25Operations, c as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-CtzbHOmG.js';
|
|
13
13
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-IO5F7ZBE.mjs';
|
|
2
|
+
import './chunk-VEFN6X6Q.mjs';
|
|
3
|
+
import './chunk-5WYVUPGD.mjs';
|
|
4
|
+
import './chunk-HJSN7UYG.mjs';
|
|
5
|
+
import './chunk-UIKN2OTQ.mjs';
|
|
5
6
|
import './chunk-AV4IJKD2.mjs';
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
7
|
+
import './chunk-EEBCDP36.mjs';
|
|
8
|
+
export { registerSynonyms } from './chunk-WJGO5PGV.mjs';
|
|
9
|
+
export { registerPartialWordSearch, registerPatternSearch } from './chunk-ZPWS2SKJ.mjs';
|
|
10
|
+
import './chunk-N37VMC62.mjs';
|
|
9
11
|
import './chunk-ZATRDAYU.mjs';
|
|
10
12
|
import './chunk-EBIHRL7B.mjs';
|
|
11
|
-
import './chunk-HJSN7UYG.mjs';
|
|
12
|
-
import './chunk-RNSC4NFI.mjs';
|
|
13
|
-
import './chunk-TGP5M5R7.mjs';
|
|
14
|
-
import './chunk-U2BKYEC7.mjs';
|
|
15
13
|
export { isSimdAvailable } from './chunk-KOKM4PQN.mjs';
|
|
16
14
|
import './chunk-QSK35UC2.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
15
|
+
import './chunk-74XB2SXI.mjs';
|
|
16
|
+
import './chunk-RKAVHNRW.mjs';
|
|
19
17
|
import './chunk-WQBCBKY3.mjs';
|
|
20
18
|
import './chunk-JUKYYXSP.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
19
|
+
import './chunk-DQNKVOJ2.mjs';
|
|
20
|
+
import './chunk-KGOXHLLZ.mjs';
|
|
23
21
|
import './chunk-U476IXKQ.mjs';
|
|
24
22
|
import './chunk-FQBFZAWG.mjs';
|
|
25
23
|
import './chunk-VJS4JFBQ.mjs';
|
|
26
24
|
import './chunk-GES7U2PM.mjs';
|
|
27
|
-
import './chunk-
|
|
28
|
-
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-
|
|
25
|
+
import './chunk-ZSWHPKGM.mjs';
|
|
26
|
+
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-O4LJQI4G.mjs';
|
|
29
27
|
import './chunk-X5CV2E2B.mjs';
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
export { getLanguage, registerLanguage } from './chunk-WNBRW4Q2.mjs';
|
|
29
|
+
import './chunk-TGP5M5R7.mjs';
|
|
30
|
+
import './chunk-U2BKYEC7.mjs';
|
|
31
|
+
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-NPNK57CA.mjs';
|
|
32
32
|
import './chunk-4UMZ7KQL.mjs';
|
|
33
33
|
import './chunk-R6A773WK.mjs';
|
|
34
34
|
import './chunk-YTJCGKM4.mjs';
|
|
35
|
-
import './chunk-
|
|
36
|
-
import './chunk-
|
|
35
|
+
import './chunk-QHPYS427.mjs';
|
|
36
|
+
import './chunk-GLZHNSGB.mjs';
|
|
37
37
|
import './chunk-22YPZVMG.mjs';
|
|
38
38
|
import './chunk-RFBLQLLZ.mjs';
|
|
39
39
|
import './chunk-L5ORED7V.mjs';
|
|
40
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-
|
|
40
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-HNHCNTVG.mjs';
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-5W7AEVTH.mjs';
|
|
3
|
-
import './chunk-RCMNL7RI.mjs';
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-YLNSJQLX.mjs';
|
|
4
2
|
import './chunk-KZ3NX2P7.mjs';
|
|
5
|
-
import './chunk-
|
|
3
|
+
import { answerRequest } from './chunk-ZMBFWQXN.mjs';
|
|
4
|
+
import './chunk-SBMAWTRG.mjs';
|
|
5
|
+
import './chunk-DD2673TX.mjs';
|
|
6
6
|
import './chunk-IWVEG5CX.mjs';
|
|
7
7
|
import './chunk-DJHHF2L5.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-VEFN6X6Q.mjs';
|
|
9
|
+
import './chunk-HJSN7UYG.mjs';
|
|
10
|
+
import './chunk-EEBCDP36.mjs';
|
|
11
|
+
import './chunk-ZPWS2SKJ.mjs';
|
|
10
12
|
import './chunk-ZATRDAYU.mjs';
|
|
11
13
|
import './chunk-EBIHRL7B.mjs';
|
|
12
|
-
import './chunk-HJSN7UYG.mjs';
|
|
13
|
-
import './chunk-RNSC4NFI.mjs';
|
|
14
14
|
import './chunk-QSK35UC2.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-74XB2SXI.mjs';
|
|
16
|
+
import './chunk-RKAVHNRW.mjs';
|
|
17
17
|
import './chunk-WQBCBKY3.mjs';
|
|
18
18
|
import './chunk-JUKYYXSP.mjs';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-DQNKVOJ2.mjs';
|
|
20
|
+
import './chunk-KGOXHLLZ.mjs';
|
|
21
21
|
import './chunk-U476IXKQ.mjs';
|
|
22
22
|
import './chunk-FQBFZAWG.mjs';
|
|
23
23
|
import './chunk-VJS4JFBQ.mjs';
|
|
24
24
|
import './chunk-GES7U2PM.mjs';
|
|
25
|
-
import './chunk-
|
|
25
|
+
import './chunk-ZSWHPKGM.mjs';
|
|
26
26
|
import './chunk-X5CV2E2B.mjs';
|
|
27
|
-
import './chunk-
|
|
27
|
+
import './chunk-NPNK57CA.mjs';
|
|
28
28
|
import './chunk-4UMZ7KQL.mjs';
|
|
29
29
|
import './chunk-R6A773WK.mjs';
|
|
30
30
|
import './chunk-YTJCGKM4.mjs';
|
|
31
31
|
import './chunk-RIIUZJQ3.mjs';
|
|
32
32
|
import './chunk-22YPZVMG.mjs';
|
|
33
33
|
import './chunk-L5ORED7V.mjs';
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-HNHCNTVG.mjs';
|
|
35
35
|
|
|
36
36
|
// src/server/request-threads/long-query-thread.ts
|
|
37
37
|
var serving = null;
|