n8n-nodes-tembory 1.0.46 → 1.0.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.
|
@@ -1441,7 +1441,12 @@ const applyOperationalPreset = (advanced = {}) => {
|
|
|
1441
1441
|
payloadFormat: 'auditJson',
|
|
1442
1442
|
},
|
|
1443
1443
|
};
|
|
1444
|
-
|
|
1444
|
+
const resolved = { ...(presets[preset === 'lab' ? 'diagnostic' : preset] || {}), ...advanced };
|
|
1445
|
+
if (resolved.useVectorMemory === false) {
|
|
1446
|
+
resolved.includeRelations = false;
|
|
1447
|
+
resolved.includeEntityTimeline = false;
|
|
1448
|
+
}
|
|
1449
|
+
return resolved;
|
|
1445
1450
|
};
|
|
1446
1451
|
const flattenAdvancedGroups = (groups = {}) => {
|
|
1447
1452
|
const flattened = {};
|
|
@@ -3122,8 +3127,6 @@ class Mem0Memory {
|
|
|
3122
3127
|
body.app_id = String(adv.appId);
|
|
3123
3128
|
if (adv.runId)
|
|
3124
3129
|
body.run_id = String(adv.runId);
|
|
3125
|
-
if (adv.persistBackendMemories === false)
|
|
3126
|
-
return;
|
|
3127
3130
|
await saveThreadState(this, key, threadId, project, {
|
|
3128
3131
|
kind: 'tembory.thread_state.v1',
|
|
3129
3132
|
threadId,
|
|
@@ -3138,6 +3141,8 @@ class Mem0Memory {
|
|
|
3138
3141
|
operationalState: operationalStateForTurn,
|
|
3139
3142
|
activeSummary: store.activeSummary[key] || '',
|
|
3140
3143
|
});
|
|
3144
|
+
if (adv.persistBackendMemories === false)
|
|
3145
|
+
return;
|
|
3141
3146
|
if (adv.useVectorMemory === false)
|
|
3142
3147
|
return;
|
|
3143
3148
|
const connectedEmbedding = await getConnectedEmbedding(this, itemIndex);
|
|
@@ -3372,7 +3377,7 @@ class Mem0Memory {
|
|
|
3372
3377
|
const key = userKeyFrom(threadId, adv, project);
|
|
3373
3378
|
const queryParam = this.getNodeParameter('query', itemIndex, '');
|
|
3374
3379
|
const query = stripThreadTestPrefix(asSearchQuery(queryParam) || asSearchQuery(inputValues.query) || asSearchQuery(inputValues.input) || asSearchQuery(inputValues.chatInput));
|
|
3375
|
-
const remoteThreadState =
|
|
3380
|
+
const remoteThreadState = await loadThreadState(this, key, threadId, project);
|
|
3376
3381
|
mergeRemoteThreadState(store, key, remoteThreadState);
|
|
3377
3382
|
let connectedLanguageModel;
|
|
3378
3383
|
let connectedEmbedding;
|
package/package.json
CHANGED