@edihasaj/recall 1.0.5 → 1.0.7
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-YHNNSDCJ.js → chunk-2EEWN7HN.js} +8 -9
- package/dist/{chunk-YHNNSDCJ.js.map → chunk-2EEWN7HN.js.map} +1 -1
- package/dist/{chunk-MZWZKD5S.js → chunk-4JWHYIA3.js} +3 -3
- package/dist/{chunk-57YMI65K.js → chunk-5ZEPZ5QW.js} +7 -7
- package/dist/{chunk-Q45VSX2J.js → chunk-DCXFGCSH.js} +2 -2
- package/dist/{chunk-NKOF7N43.js → chunk-EMOJDSNY.js} +6 -6
- package/dist/{chunk-GJKKJYFT.js → chunk-GA2KT2ML.js} +3 -3
- package/dist/{chunk-4PK3YODK.js → chunk-IG4BUAF4.js} +2 -2
- package/dist/{chunk-4LE3UXSJ.js → chunk-M2M4ESTG.js} +3 -3
- package/dist/{chunk-U6FQSWUL.js → chunk-W6MMJHLE.js} +21 -5
- package/dist/chunk-W6MMJHLE.js.map +1 -0
- package/dist/{cleanup-35DR4UG4.js → cleanup-O4OZQGOW.js} +4 -4
- package/dist/cli.js +18 -18
- package/dist/daemon.js +9 -9
- package/dist/{dispatcher-ZFATT7XU.js → dispatcher-UG2PPDT5.js} +4 -4
- package/dist/{embeddings-ER6YQSRM.js → embeddings-53BVUPE5.js} +2 -2
- package/dist/{ingest-S2KB2EY6.js → ingest-BRBJJ5OL.js} +3 -3
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-NM24LKJY.js → memory-value-ARQAZW5U.js} +4 -4
- package/dist/{quality-74KRD5CP.js → quality-CAZATB4M.js} +5 -5
- package/dist/{retrieval-E5LOMDYJ.js → retrieval-2RVT5VOF.js} +4 -4
- package/dist/{tasks-ETMSGUUE.js → tasks-XNROA7VL.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-U6FQSWUL.js.map +0 -1
- /package/dist/{chunk-MZWZKD5S.js.map → chunk-4JWHYIA3.js.map} +0 -0
- /package/dist/{chunk-57YMI65K.js.map → chunk-5ZEPZ5QW.js.map} +0 -0
- /package/dist/{chunk-Q45VSX2J.js.map → chunk-DCXFGCSH.js.map} +0 -0
- /package/dist/{chunk-NKOF7N43.js.map → chunk-EMOJDSNY.js.map} +0 -0
- /package/dist/{chunk-GJKKJYFT.js.map → chunk-GA2KT2ML.js.map} +0 -0
- /package/dist/{chunk-4PK3YODK.js.map → chunk-IG4BUAF4.js.map} +0 -0
- /package/dist/{chunk-4LE3UXSJ.js.map → chunk-M2M4ESTG.js.map} +0 -0
- /package/dist/{cleanup-35DR4UG4.js.map → cleanup-O4OZQGOW.js.map} +0 -0
- /package/dist/{dispatcher-ZFATT7XU.js.map → dispatcher-UG2PPDT5.js.map} +0 -0
- /package/dist/{embeddings-ER6YQSRM.js.map → embeddings-53BVUPE5.js.map} +0 -0
- /package/dist/{ingest-S2KB2EY6.js.map → ingest-BRBJJ5OL.js.map} +0 -0
- /package/dist/{memory-value-NM24LKJY.js.map → memory-value-ARQAZW5U.js.map} +0 -0
- /package/dist/{quality-74KRD5CP.js.map → quality-CAZATB4M.js.map} +0 -0
- /package/dist/{retrieval-E5LOMDYJ.js.map → retrieval-2RVT5VOF.js.map} +0 -0
- /package/dist/{tasks-ETMSGUUE.js.map → tasks-XNROA7VL.js.map} +0 -0
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
recordAudit,
|
|
7
7
|
redactSensitiveValue,
|
|
8
8
|
seedScannedConfidence
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M2M4ESTG.js";
|
|
10
10
|
import {
|
|
11
11
|
recordInjectionValueEvents,
|
|
12
12
|
recordMemoryInjections,
|
|
13
13
|
recordOutcomeValueEvent,
|
|
14
14
|
resolveMemoryInjectionOutcome
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GA2KT2ML.js";
|
|
16
16
|
import {
|
|
17
17
|
textMatchScore
|
|
18
18
|
} from "./chunk-FHEH6QDU.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
recordFeedback,
|
|
35
35
|
rejectMemory,
|
|
36
36
|
statusFromConfidence
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IG4BUAF4.js";
|
|
38
38
|
import {
|
|
39
39
|
CONFIDENCE,
|
|
40
40
|
RetrievalEvalCase,
|
|
@@ -47,12 +47,13 @@ import {
|
|
|
47
47
|
getSynonyms,
|
|
48
48
|
hybridSearch,
|
|
49
49
|
loadEmbeddingConfigFromEnv,
|
|
50
|
+
processInResponsiveBatches,
|
|
50
51
|
projectEmbeddingToIndex,
|
|
51
52
|
queueMemoryEmbeddingSync,
|
|
52
53
|
readUtf8FileIfExists,
|
|
53
54
|
resolveProvider,
|
|
54
55
|
tagActivitySource
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-W6MMJHLE.js";
|
|
56
57
|
import {
|
|
57
58
|
Column,
|
|
58
59
|
Columns,
|
|
@@ -4743,16 +4744,14 @@ async function bootstrapHistoryEmbeddings(db, config, options = {}) {
|
|
|
4743
4744
|
for (const row of rows) {
|
|
4744
4745
|
syncHistoryFtsIndex(db, row.id);
|
|
4745
4746
|
}
|
|
4746
|
-
const BATCH_SIZE = 100;
|
|
4747
4747
|
let total = 0;
|
|
4748
|
-
|
|
4749
|
-
const batch = pending.slice(i, i + BATCH_SIZE);
|
|
4748
|
+
await processInResponsiveBatches(pending, async (batch) => {
|
|
4750
4749
|
const embeddings = await generateEmbeddings(batch.map((row) => row.text), config, "document");
|
|
4751
4750
|
for (let j = 0; j < batch.length; j++) {
|
|
4752
4751
|
storeHistoryEmbedding(db, batch[j].id, batch[j].text, embeddings[j], config);
|
|
4753
4752
|
total++;
|
|
4754
4753
|
}
|
|
4755
|
-
}
|
|
4754
|
+
});
|
|
4756
4755
|
rebuildHistoryFtsIndex(db, options);
|
|
4757
4756
|
rebuildHistoryVecIndex(db, config, options);
|
|
4758
4757
|
return total;
|
|
@@ -6627,4 +6626,4 @@ export {
|
|
|
6627
6626
|
pruneMemories,
|
|
6628
6627
|
formatPruneReport
|
|
6629
6628
|
};
|
|
6630
|
-
//# sourceMappingURL=chunk-
|
|
6629
|
+
//# sourceMappingURL=chunk-2EEWN7HN.js.map
|