@edihasaj/recall 2.0.20 → 2.0.22
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/{chunk-GPVWGXYT.js → chunk-55L2KDQE.js} +7 -7
- package/dist/{chunk-HIPM255H.js → chunk-5XIMY5B6.js} +9 -9
- package/dist/{chunk-ILTW2NT7.js → chunk-AEYHCV5C.js} +13 -13
- package/dist/{chunk-4K4XRRUF.js → chunk-B3Y3473H.js} +3 -3
- package/dist/{chunk-ZINFGUPT.js → chunk-BDLPFPQ7.js} +2 -2
- package/dist/{chunk-ZINFGUPT.js.map → chunk-BDLPFPQ7.js.map} +1 -1
- package/dist/{chunk-YI4LU255.js → chunk-E2LPE3NE.js} +42 -9
- package/dist/chunk-E2LPE3NE.js.map +1 -0
- package/dist/{chunk-BHRWB3ZL.js → chunk-E6532GTG.js} +2 -2
- package/dist/{chunk-RQZX3NK6.js → chunk-GJNSMGG3.js} +2 -2
- package/dist/{chunk-JQ6BGAKY.js → chunk-HYTMHT2T.js} +10 -10
- package/dist/{chunk-F4ZDS7LX.js → chunk-MSONNUK7.js} +3 -3
- package/dist/{chunk-IWXOFLQB.js → chunk-NELIM5IE.js} +3 -3
- package/dist/{chunk-IG3RJVW6.js → chunk-PI4VEC7V.js} +5 -5
- package/dist/{chunk-SM67AYMR.js → chunk-QPFSU57E.js} +2 -2
- package/dist/{chunk-2J7P4JCA.js → chunk-RJ6LXKXJ.js} +7 -7
- package/dist/{chunk-7R6DIYIN.js → chunk-T3HE4QJW.js} +5 -5
- package/dist/{chunk-TBV3UXKA.js → chunk-T76BHBJD.js} +2 -2
- package/dist/{chunk-3PJX2JM3.js → chunk-VUP3OKAX.js} +2 -2
- package/dist/{chunk-MWQSZN2U.js → chunk-X2SVAAFV.js} +9 -9
- package/dist/{cleanup-LHRMTVP4.js → cleanup-55OGHQDD.js} +11 -11
- package/dist/cli.js +36 -36
- package/dist/{codex-trust-56LQPLU6.js → codex-trust-REI3BIGY.js} +4 -4
- package/dist/daemon.js +18 -18
- package/dist/dispatcher-WDO675ZZ.js +22 -0
- package/dist/{embeddings-6U7GLCQ2.js → embeddings-JP3QJXH3.js} +5 -5
- package/dist/ingest-223V4GBH.js +20 -0
- package/dist/{keychain-W7OWYCIH.js → keychain-6KYNSQNM.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-EGPCVVXH.js → memory-value-2JMNGF6K.js} +11 -11
- package/dist/{provenance-PY3IQN6X.js → provenance-7HFGC5YG.js} +9 -9
- package/dist/quality-NOUPZBPR.js +25 -0
- package/dist/retrieval-NOHQIQIJ.js +15 -0
- package/dist/{store-BABUV4HS.js → store-ZZ3D7T6Q.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-KVH7S4S2.js → tasks-YXZSJ4VS.js} +11 -11
- package/dist/{usage-YYFVJZXK.js → usage-QGFPQ47H.js} +4 -4
- package/package.json +3 -3
- package/dist/chunk-YI4LU255.js.map +0 -1
- package/dist/dispatcher-CCDHNCAT.js +0 -22
- package/dist/ingest-KCMUKLWD.js +0 -20
- package/dist/quality-H3G6Y5L7.js +0 -25
- package/dist/retrieval-AMDGSFUP.js +0 -15
- /package/dist/{chunk-GPVWGXYT.js.map → chunk-55L2KDQE.js.map} +0 -0
- /package/dist/{chunk-HIPM255H.js.map → chunk-5XIMY5B6.js.map} +0 -0
- /package/dist/{chunk-ILTW2NT7.js.map → chunk-AEYHCV5C.js.map} +0 -0
- /package/dist/{chunk-4K4XRRUF.js.map → chunk-B3Y3473H.js.map} +0 -0
- /package/dist/{chunk-BHRWB3ZL.js.map → chunk-E6532GTG.js.map} +0 -0
- /package/dist/{chunk-RQZX3NK6.js.map → chunk-GJNSMGG3.js.map} +0 -0
- /package/dist/{chunk-JQ6BGAKY.js.map → chunk-HYTMHT2T.js.map} +0 -0
- /package/dist/{chunk-F4ZDS7LX.js.map → chunk-MSONNUK7.js.map} +0 -0
- /package/dist/{chunk-IWXOFLQB.js.map → chunk-NELIM5IE.js.map} +0 -0
- /package/dist/{chunk-IG3RJVW6.js.map → chunk-PI4VEC7V.js.map} +0 -0
- /package/dist/{chunk-SM67AYMR.js.map → chunk-QPFSU57E.js.map} +0 -0
- /package/dist/{chunk-2J7P4JCA.js.map → chunk-RJ6LXKXJ.js.map} +0 -0
- /package/dist/{chunk-7R6DIYIN.js.map → chunk-T3HE4QJW.js.map} +0 -0
- /package/dist/{chunk-TBV3UXKA.js.map → chunk-T76BHBJD.js.map} +0 -0
- /package/dist/{chunk-3PJX2JM3.js.map → chunk-VUP3OKAX.js.map} +0 -0
- /package/dist/{chunk-MWQSZN2U.js.map → chunk-X2SVAAFV.js.map} +0 -0
- /package/dist/{cleanup-LHRMTVP4.js.map → cleanup-55OGHQDD.js.map} +0 -0
- /package/dist/{codex-trust-56LQPLU6.js.map → codex-trust-REI3BIGY.js.map} +0 -0
- /package/dist/{dispatcher-CCDHNCAT.js.map → dispatcher-WDO675ZZ.js.map} +0 -0
- /package/dist/{embeddings-6U7GLCQ2.js.map → embeddings-JP3QJXH3.js.map} +0 -0
- /package/dist/{ingest-KCMUKLWD.js.map → ingest-223V4GBH.js.map} +0 -0
- /package/dist/{keychain-W7OWYCIH.js.map → keychain-6KYNSQNM.js.map} +0 -0
- /package/dist/{memory-value-EGPCVVXH.js.map → memory-value-2JMNGF6K.js.map} +0 -0
- /package/dist/{provenance-PY3IQN6X.js.map → provenance-7HFGC5YG.js.map} +0 -0
- /package/dist/{quality-H3G6Y5L7.js.map → quality-NOUPZBPR.js.map} +0 -0
- /package/dist/{retrieval-AMDGSFUP.js.map → retrieval-NOHQIQIJ.js.map} +0 -0
- /package/dist/{store-BABUV4HS.js.map → store-ZZ3D7T6Q.js.map} +0 -0
- /package/dist/{tasks-KVH7S4S2.js.map → tasks-YXZSJ4VS.js.map} +0 -0
- /package/dist/{usage-YYFVJZXK.js.map → usage-QGFPQ47H.js.map} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
desc
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B3Y3473H.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOwn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QPFSU57E.js";
|
|
7
7
|
import {
|
|
8
8
|
CONFIDENCE,
|
|
9
9
|
PROMOTION,
|
|
10
10
|
normalizeNote,
|
|
11
11
|
queueMemoryEmbeddingSync,
|
|
12
12
|
rowToMemory
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E2LPE3NE.js";
|
|
14
14
|
import {
|
|
15
15
|
isPlausibleEntityName,
|
|
16
16
|
linkMemoryToEntity,
|
|
17
17
|
upsertEntity,
|
|
18
18
|
upsertRelation
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MSONNUK7.js";
|
|
20
20
|
import {
|
|
21
21
|
and,
|
|
22
22
|
auditTrail,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
like,
|
|
28
28
|
memories,
|
|
29
29
|
sql
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-T76BHBJD.js";
|
|
31
31
|
import {
|
|
32
32
|
init_define_RECALL_BUILD_INFO
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BDLPFPQ7.js";
|
|
34
34
|
|
|
35
35
|
// src/graph/ingest.ts
|
|
36
36
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1072,4 +1072,4 @@ export {
|
|
|
1072
1072
|
rollbackMemory,
|
|
1073
1073
|
formatAuditTrail
|
|
1074
1074
|
};
|
|
1075
|
-
//# sourceMappingURL=chunk-
|
|
1075
|
+
//# sourceMappingURL=chunk-55L2KDQE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
graphQuery
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PI4VEC7V.js";
|
|
4
4
|
import {
|
|
5
5
|
captureCorrectionFallback,
|
|
6
6
|
compileContext,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
scanAndStore,
|
|
27
27
|
sessionEndFallback,
|
|
28
28
|
signalOutcomeFallback
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HYTMHT2T.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_LEASE_SECONDS,
|
|
32
32
|
TaskClaimConflictError,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
processReviewFeedback,
|
|
43
43
|
releaseTask,
|
|
44
44
|
submitTask
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-X2SVAAFV.js";
|
|
46
46
|
import {
|
|
47
47
|
recordCompletionUseValueEventsSemantic
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RJ6LXKXJ.js";
|
|
49
49
|
import {
|
|
50
50
|
confirmMemory,
|
|
51
51
|
demoteGlobalMemory,
|
|
@@ -58,20 +58,20 @@ import {
|
|
|
58
58
|
recordAudit,
|
|
59
59
|
rejectMemory,
|
|
60
60
|
rollbackMemory
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-55L2KDQE.js";
|
|
62
62
|
import {
|
|
63
63
|
loadEmbeddingConfigFromEnv,
|
|
64
64
|
tagActivitySource
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-E2LPE3NE.js";
|
|
66
66
|
import {
|
|
67
67
|
getEntity,
|
|
68
68
|
listEntities,
|
|
69
69
|
listMemoryIdsForEntity,
|
|
70
70
|
neighborsOf
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-MSONNUK7.js";
|
|
72
72
|
import {
|
|
73
73
|
init_define_RECALL_BUILD_INFO
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-BDLPFPQ7.js";
|
|
75
75
|
|
|
76
76
|
// src/mcp/factory.ts
|
|
77
77
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1561,4 +1561,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
1561
1561
|
export {
|
|
1562
1562
|
createRecallMcpServer
|
|
1563
1563
|
};
|
|
1564
|
-
//# sourceMappingURL=chunk-
|
|
1564
|
+
//# sourceMappingURL=chunk-5XIMY5B6.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
hasCommand,
|
|
4
4
|
resolveCodexHomes,
|
|
5
5
|
resolveUserHomeDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NELIM5IE.js";
|
|
7
7
|
import {
|
|
8
8
|
RECALL_DB_USER_VERSION,
|
|
9
9
|
captureCorrectionFallback,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveLocalRepoPath,
|
|
22
22
|
signalOutcomeFallback,
|
|
23
23
|
startSessionLifecycle
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HYTMHT2T.js";
|
|
25
25
|
import {
|
|
26
26
|
detectCorrections,
|
|
27
27
|
isAutomatedCodexThread,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isWorkspaceRootAlias,
|
|
31
31
|
peekTasks,
|
|
32
32
|
redactSensitiveText
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-X2SVAAFV.js";
|
|
34
34
|
import {
|
|
35
35
|
detectAndRecordRetrievalMissesSemantic,
|
|
36
36
|
listInjectedMemoryIdsForSession,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
pathMatchesMemory,
|
|
39
39
|
recordCompletionUseValueEventsSemantic,
|
|
40
40
|
toolCallTouchesMemory
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RJ6LXKXJ.js";
|
|
42
42
|
import {
|
|
43
43
|
textMatches
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VUP3OKAX.js";
|
|
45
45
|
import {
|
|
46
46
|
appendEvidence,
|
|
47
47
|
createMemory,
|
|
@@ -50,24 +50,24 @@ import {
|
|
|
50
50
|
queryMemories,
|
|
51
51
|
recordAudit,
|
|
52
52
|
rejectMemory
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-55L2KDQE.js";
|
|
54
54
|
import {
|
|
55
55
|
desc
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-B3Y3473H.js";
|
|
57
57
|
import {
|
|
58
58
|
defineOwn,
|
|
59
59
|
deleteOwn
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-QPFSU57E.js";
|
|
61
61
|
import {
|
|
62
62
|
atomicWriteUtf8File,
|
|
63
63
|
getEmbeddingModelInfo,
|
|
64
64
|
readUtf8FileIfExists,
|
|
65
65
|
tagActivitySource
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-E2LPE3NE.js";
|
|
67
67
|
import {
|
|
68
68
|
init_keychain,
|
|
69
69
|
keychain_exports
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-GJNSMGG3.js";
|
|
71
71
|
import {
|
|
72
72
|
activityEvents,
|
|
73
73
|
and,
|
|
@@ -81,11 +81,11 @@ import {
|
|
|
81
81
|
memoryValueEvents,
|
|
82
82
|
ne,
|
|
83
83
|
sql
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-T76BHBJD.js";
|
|
85
85
|
import {
|
|
86
86
|
__toCommonJS,
|
|
87
87
|
init_define_RECALL_BUILD_INFO
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BDLPFPQ7.js";
|
|
89
89
|
|
|
90
90
|
// src/adapters/markdown.ts
|
|
91
91
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -4515,4 +4515,4 @@ export {
|
|
|
4515
4515
|
getDoctorReport,
|
|
4516
4516
|
formatDoctorReport
|
|
4517
4517
|
};
|
|
4518
|
-
//# sourceMappingURL=chunk-
|
|
4518
|
+
//# sourceMappingURL=chunk-AEYHCV5C.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sql
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T76BHBJD.js";
|
|
4
4
|
import {
|
|
5
5
|
init_define_RECALL_BUILD_INFO
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BDLPFPQ7.js";
|
|
7
7
|
|
|
8
8
|
// node_modules/drizzle-orm/sql/expressions/select.js
|
|
9
9
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
asc,
|
|
19
19
|
desc
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-B3Y3473H.js.map
|
|
@@ -28,7 +28,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
28
28
|
var define_RECALL_BUILD_INFO_default;
|
|
29
29
|
var init_define_RECALL_BUILD_INFO = __esm({
|
|
30
30
|
"<define:__RECALL_BUILD_INFO__>"() {
|
|
31
|
-
define_RECALL_BUILD_INFO_default = { sha: "
|
|
31
|
+
define_RECALL_BUILD_INFO_default = { sha: "4c1be8080818d48b7e41ef23535fed06fbbf2383", built_at: "2026-12-02T07:42:55.921Z", dependencies: { "@huggingface/transformers": "4.3.1", "onnxruntime-node": "1.30.0", "better-sqlite3": "11.10.0", "sqlite-vec": "0.1.9", "@photostructure/sqlite-vec": "2.0.1" } };
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
init_define_RECALL_BUILD_INFO,
|
|
40
40
|
define_RECALL_BUILD_INFO_default
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-BDLPFPQ7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["<define:__RECALL_BUILD_INFO__>"],"sourcesContent":["{\"sha\":\"
|
|
1
|
+
{"version":3,"sources":["<define:__RECALL_BUILD_INFO__>"],"sourcesContent":["{\"sha\":\"4c1be8080818d48b7e41ef23535fed06fbbf2383\",\"built_at\":\"2026-12-02T07:42:55.921Z\",\"dependencies\":{\"@huggingface/transformers\":\"4.3.1\",\"onnxruntime-node\":\"1.30.0\",\"better-sqlite3\":\"11.10.0\",\"sqlite-vec\":\"0.1.9\",\"@photostructure/sqlite-vec\":\"2.0.1\"}}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,yCAAC,KAAM,4CAA2C,UAAW,4BAA2B,cAAe,EAAC,6BAA4B,SAAQ,oBAAmB,UAAS,kBAAiB,WAAU,cAAa,SAAQ,8BAA6B,QAAO,EAAC;AAAA;AAAA;","names":[]}
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
getProviderConfig,
|
|
3
3
|
hasProviderConfigured,
|
|
4
4
|
init_keychain
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GJNSMGG3.js";
|
|
6
6
|
import {
|
|
7
7
|
eq,
|
|
8
8
|
inArray,
|
|
9
9
|
llmUsage,
|
|
10
10
|
memories,
|
|
11
11
|
memoryEmbeddings
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T76BHBJD.js";
|
|
13
13
|
import {
|
|
14
14
|
init_define_RECALL_BUILD_INFO
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BDLPFPQ7.js";
|
|
16
16
|
|
|
17
17
|
// src/embeddings/embeddings.ts
|
|
18
18
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -599,6 +599,32 @@ function configureTransformersCache() {
|
|
|
599
599
|
return cacheDir;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
+
// src/embeddings/onnx-session.ts
|
|
603
|
+
init_define_RECALL_BUILD_INFO();
|
|
604
|
+
import { availableParallelism } from "os";
|
|
605
|
+
var DEFAULT_ONNX_THREADS = 1;
|
|
606
|
+
function onnxIntraOpThreads(env2 = process.env, cores = availableParallelism()) {
|
|
607
|
+
const available = Math.max(1, Math.floor(cores) || 1);
|
|
608
|
+
const raw = env2.RECALL_ONNX_THREADS?.trim();
|
|
609
|
+
if (raw && /^\d+$/.test(raw)) {
|
|
610
|
+
const requested = Number.parseInt(raw, 10);
|
|
611
|
+
if (requested >= 1) return Math.min(requested, available);
|
|
612
|
+
}
|
|
613
|
+
return Math.min(DEFAULT_ONNX_THREADS, available);
|
|
614
|
+
}
|
|
615
|
+
function onnxSessionOptions(env2 = process.env, cores = availableParallelism()) {
|
|
616
|
+
return {
|
|
617
|
+
intraOpNumThreads: onnxIntraOpThreads(env2, cores),
|
|
618
|
+
interOpNumThreads: 1,
|
|
619
|
+
extra: {
|
|
620
|
+
session: {
|
|
621
|
+
intra_op: { allow_spinning: "0" },
|
|
622
|
+
inter_op: { allow_spinning: "0" }
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
602
628
|
// src/embeddings/providers/all-minilm-l6-v2.ts
|
|
603
629
|
var MINILM_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
604
630
|
var MINILM_DIMENSIONS = 384;
|
|
@@ -624,7 +650,8 @@ async function getExtractor(config) {
|
|
|
624
650
|
});
|
|
625
651
|
extractorPromise ??= pipeline("feature-extraction", getModel(config), {
|
|
626
652
|
cache_dir: cacheDir,
|
|
627
|
-
dtype: "q8"
|
|
653
|
+
dtype: "q8",
|
|
654
|
+
session_options: onnxSessionOptions()
|
|
628
655
|
});
|
|
629
656
|
return extractorPromise;
|
|
630
657
|
}
|
|
@@ -705,7 +732,8 @@ async function getExtractor2(config) {
|
|
|
705
732
|
});
|
|
706
733
|
extractorPromise2 ??= pipeline2("feature-extraction", getModel2(config), {
|
|
707
734
|
cache_dir: cacheDir,
|
|
708
|
-
dtype: "q8"
|
|
735
|
+
dtype: "q8",
|
|
736
|
+
session_options: onnxSessionOptions()
|
|
709
737
|
});
|
|
710
738
|
return extractorPromise2;
|
|
711
739
|
}
|
|
@@ -794,7 +822,8 @@ async function getExtractor3(config) {
|
|
|
794
822
|
});
|
|
795
823
|
extractorPromise3 ??= pipeline3("feature-extraction", getModel3(config), {
|
|
796
824
|
cache_dir: cacheDir,
|
|
797
|
-
dtype: "q8"
|
|
825
|
+
dtype: "q8",
|
|
826
|
+
session_options: onnxSessionOptions()
|
|
798
827
|
});
|
|
799
828
|
return extractorPromise3;
|
|
800
829
|
}
|
|
@@ -884,7 +913,8 @@ async function getExtractor4(config) {
|
|
|
884
913
|
});
|
|
885
914
|
extractorPromise4 ??= pipeline4("feature-extraction", getModel4(config), {
|
|
886
915
|
cache_dir: cacheDir,
|
|
887
|
-
dtype: "q8"
|
|
916
|
+
dtype: "q8",
|
|
917
|
+
session_options: onnxSessionOptions()
|
|
888
918
|
});
|
|
889
919
|
return extractorPromise4;
|
|
890
920
|
}
|
|
@@ -2144,7 +2174,10 @@ function maxLength() {
|
|
|
2144
2174
|
}
|
|
2145
2175
|
async function loadReranker(model) {
|
|
2146
2176
|
configureTransformersCache();
|
|
2147
|
-
const options = {
|
|
2177
|
+
const options = {
|
|
2178
|
+
dtype: "q8",
|
|
2179
|
+
session_options: onnxSessionOptions()
|
|
2180
|
+
};
|
|
2148
2181
|
if (!isAbsolute(model)) {
|
|
2149
2182
|
const cacheDir = join4(getEmbeddingCacheRoot(), "rerank", ...model.split("/"));
|
|
2150
2183
|
mkdirSync4(cacheDir, { recursive: true });
|
|
@@ -2839,4 +2872,4 @@ export {
|
|
|
2839
2872
|
findSemanticDuplicates,
|
|
2840
2873
|
findSimilarRejectedExemplar
|
|
2841
2874
|
};
|
|
2842
|
-
//# sourceMappingURL=chunk-
|
|
2875
|
+
//# sourceMappingURL=chunk-E2LPE3NE.js.map
|