refactor: remove Neo4j-based conversation memory feature
Drop the memory pipeline, API fields, settings UI, and embed toggles so chat no longer depends on Neo4j graph storage for episodic recall.
This commit is contained in:
+1
-12
@@ -19043,7 +19043,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"preferences": {
|
||||
"description": "Per-user UI/feature preferences (memory toggle, future knobs).\nStored as JSON (jsonb on Postgres, TEXT on SQLite) via the\ndriver.Valuer / sql.Scanner methods on UserPreferences.",
|
||||
"description": "Per-user UI/feature preferences.\nStored as JSON (jsonb on Postgres, TEXT on SQLite) via the\ndriver.Valuer / sql.Scanner methods on UserPreferences.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/github_com_Tencent_WeKnora_internal_types.UserPreferences"
|
||||
@@ -19113,10 +19113,6 @@
|
||||
"github_com_Tencent_WeKnora_internal_types.UserPreferences": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable_memory": {
|
||||
"description": "EnableMemory mirrors the \"开启记忆功能\" switch in General Settings.\nnil = preference never set (treat as feature default = false)\n*false / *true = user explicitly set the toggle.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"last_active_tenant_id": {
|
||||
"description": "LastActiveTenantID remembers the last workspace the user actively\nswitched into, so a fresh login (new device, cleared browser, new\nrefresh token) lands them back in that workspace instead of always\nbouncing to their home workspace. Login / RefreshToken validate that\nthe workspace still exists and the user still has an active membership\n(or CanAccessAllTenants) before honouring this preference; an\ninvalid pointer is best-effort cleared and the user falls back to\nhome.\n\nnil = no preference (use user.TenantID, i.e. home)\n*0 = \"clear preference\" sentinel for the partial-update endpoint\n (UpdateUserPreferences turns this into nil). Otherwise treat\n a stored *0 the same as nil.\n*N = preferred workspace id.",
|
||||
"type": "integer"
|
||||
@@ -21553,9 +21549,6 @@
|
||||
"internal_handler.updateMyPreferencesRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable_memory": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"last_active_tenant_id": {
|
||||
"description": "LastActiveTenantID lets the SPA persist \"after a fresh login,\ndrop me back into this workspace\" across devices. Send a positive\nworkspace id to set / replace, or 0 to clear. Membership is validated\nat next login, not here. Nil = field omitted from the PATCH and\nstays untouched.",
|
||||
"type": "integer"
|
||||
@@ -21615,10 +21608,6 @@
|
||||
"description": "Whether to disable auto title generation",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable_memory": {
|
||||
"description": "EnableMemory is the per-request override for the memory feature.\nPointer + omitempty so the request can distinguish three states:\n nil = client did not specify; backend falls back to the calling\n user's persisted preference (user.preferences.enable_memory),\n defaulting to false if that's also unset. This is the path\n used by the normal logged-in chat UI now that the toggle is\n stored server-side per user.\n *true / *false = explicit override. Embedded mode forces *false so a\n user's personal memory setting doesn't leak into a widget\n context; older clients that still send a literal bool also\n land here (back-compat).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"images": {
|
||||
"description": "Attached images for multimodal chat",
|
||||
"type": "array",
|
||||
|
||||
Reference in New Issue
Block a user