@delali/narsil 0.2.4-next.45 → 0.2.4-next.47

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/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- export { VERSION, createNarsil } from './chunk-WASNWIEK.mjs';
1
+ export { VERSION, createNarsil } from './chunk-UZTT2BKQ.mjs';
2
2
  import './chunk-JQUL2T6I.mjs';
3
3
  import './chunk-XWICBGYT.mjs';
4
- export { clearNormalizationCache, configureNormalizationCache, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerStopWords, registerTokenizer, resetNormalizationCache } from './chunk-XNCJFU2E.mjs';
4
+ export { clearNormalizationCache, configureNormalizationCache, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerStopWords, registerTokenizer, resetNormalizationCache } from './chunk-EV45L35L.mjs';
5
5
  import './chunk-TGP5M5R7.mjs';
6
- import './chunk-OBXS7OZM.mjs';
7
- export { isSimdAvailable } from './chunk-WDL632CN.mjs';
6
+ import './chunk-4COAUBLJ.mjs';
7
+ export { isSimdAvailable } from './chunk-DFZDV5FV.mjs';
8
8
  import './chunk-KMMJMDUA.mjs';
9
9
  import './chunk-U2BKYEC7.mjs';
10
10
  import './chunk-BFIH7OV5.mjs';
@@ -1,10 +1,10 @@
1
- import { createDurableDirectory, writeSegmentedCheckpoint } from '../../chunk-WASNWIEK.mjs';
1
+ import { createDurableDirectory, writeSegmentedCheckpoint } from '../../chunk-UZTT2BKQ.mjs';
2
2
  import '../../chunk-JQUL2T6I.mjs';
3
3
  import '../../chunk-XWICBGYT.mjs';
4
- import '../../chunk-XNCJFU2E.mjs';
4
+ import '../../chunk-EV45L35L.mjs';
5
5
  import '../../chunk-TGP5M5R7.mjs';
6
- import '../../chunk-OBXS7OZM.mjs';
7
- import '../../chunk-WDL632CN.mjs';
6
+ import '../../chunk-4COAUBLJ.mjs';
7
+ import '../../chunk-DFZDV5FV.mjs';
8
8
  import '../../chunk-KMMJMDUA.mjs';
9
9
  import '../../chunk-U2BKYEC7.mjs';
10
10
  import '../../chunk-BFIH7OV5.mjs';
@@ -1,4 +1,4 @@
1
- import { createVectorStore, createHNSWIndex } from '../chunk-WDL632CN.mjs';
1
+ import { createVectorStore, createHNSWIndex } from '../chunk-DFZDV5FV.mjs';
2
2
  import '../chunk-BFIH7OV5.mjs';
3
3
 
4
4
  // src/vector/hnsw-build-worker.ts
@@ -1,5 +1,5 @@
1
- import { createScalarQuantizer, deriveSq8Constants, arenaQuantizedDistance, quantizeVectorInto, quantizedMagnitude, scalarQuantizedDistance } from '../chunk-OBXS7OZM.mjs';
2
- import { searchOrdinals, createVectorStore, createHNSWIndex, createSharedArenaSimd, importAdjacency, arenaFloat32Distance, ABSENT_DOCUMENT_RANK } from '../chunk-WDL632CN.mjs';
1
+ import { createScalarQuantizer, deriveSq8Constants, arenaQuantizedDistance, quantizeVectorInto, quantizedMagnitude, scalarQuantizedDistance } from '../chunk-4COAUBLJ.mjs';
2
+ import { searchOrdinals, createVectorStore, createHNSWIndex, createSharedArenaSimd, importAdjacency, createHNSWWorkspace, arenaFloat32Distance, ABSENT_DOCUMENT_RANK } from '../chunk-DFZDV5FV.mjs';
3
3
  import '../chunk-BFIH7OV5.mjs';
4
4
 
5
5
  // src/vector/shared-generation/worker-view.ts
@@ -115,7 +115,8 @@ function openSharedWorkerCopy(snapshot, scratchSlot) {
115
115
  visited: new Uint32Array(capacity),
116
116
  visitStamp: 0,
117
117
  entryPointOrd: snapshot.graph.entryPointOrd,
118
- topLayer: snapshot.graph.topLayer
118
+ topLayer: snapshot.graph.topLayer,
119
+ workspace: createHNSWWorkspace()
119
120
  };
120
121
  return { searchState, rankByOrdinal: snapshot.rankByOrdinal };
121
122
  }
@@ -55,7 +55,7 @@ async function setup() {
55
55
  } catch {
56
56
  parentPort = null;
57
57
  }
58
- const { createDirectExecutor } = await import('../direct-executor-IMXNRS7O.mjs');
58
+ const { createDirectExecutor } = await import('../direct-executor-EOTFGXTO.mjs');
59
59
  const handleAction = createActionHandler(createDirectExecutor());
60
60
  if (parentPort) {
61
61
  const port = parentPort;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delali/narsil",
3
- "version": "0.2.4-next.45",
3
+ "version": "0.2.4-next.47",
4
4
  "type": "module",
5
5
  "description": "A distributed full-text search engine with cross-language portable binary format.",
6
6
  "author": "Delali (https://sondelali.com)",