mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #10839] Chats only put most recent personalization memory into the context #16048
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cehardin1974 on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10839
Bug Report
Installation Method
docker
Environment
Open WebUI Version: v0.5.16
Operating System: Ubuntu Server 24.10
Browser (if applicable): Chrome 130
Confirmation:
Expected Behavior:
I have many entries in Personlization, the ollama context should include all of them
Actual Behavior:
[Describe what actually happened.]
Description
Only the most recently added or edited memory is put in the context.
I verified this by looking at the browser's network logs
Bug Summary:
Only the most recently added or edited memory is put in the context.
Reproduction Details
Steps to Reproduce:
Create 2 or more Personlization memories.
Start a new chat with a model.
Look at the browser's network logs and find the "completions" call.
Look at the request payload under messages[0] for the "system" message and see the memory in the context.
Note that only the most recently saved or edited memory shows up, even though 2 or more have been mae,
Logs and Screenshots
Browser Console Logs:
submitPrompt hello
Chat.svelte:183 saveSessionSelectedModels ['llama3.2:latest'] ["llama3.2:latest"]
MessageInput.svelte:344 destroy
RichTextInput.svelte:128
RichTextInput.svelte:163 [tiptap warn]: Duplicate extension names found: ['codeBlock']. This can lead to issues.
resolve @ index.js:1158
un @ index.js:1144
createExtensionManager @ index.js:4470
_g @ index.js:4302
(anonymous) @ RichTextInput.svelte:163
await in (anonymous)
J @ utils.js:41
(anonymous) @ Component.js:47
_t @ scheduler.js:99
Promise.then
ut @ scheduler.js:20
ht @ Component.js:81
(anonymous) @ Component.js:139
de @ Chat.svelte:1264
Zt @ Chat.svelte:2060
await in Zt
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
X @ Placeholder.svelte:207
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
mt @ MessageInput.svelte:831
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
keydown @ RichTextInput.svelte:286
(anonymous) @ index.js:3092
someProp @ index.js:5484
da @ index.js:3090
t.dom.addEventListener.t.input.eventHandlers. @ index.js:3059Understand this warningAI
Chat.svelte:1388 modelId llama3.2:latest
Chat.svelte:1428 1. [2024-10-26]. User has the name Chad Hardin.
+layout.svelte:100 usage {models: Array(1)}models: ['llama3.2:latest']Prototype: Object
+layout.svelte:100 usage {models: Array(1)}
+layout.svelte:100 usage {models: Array(1)}
+layout.svelte:100 usage {models: Array(1)}
+layout.svelte:100 usage {models: Array(1)}
+layout.svelte:100 usage {models: Array(1)}
+layout.svelte:100 usage {models: Array(1)}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}chat_id: "6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e"data: data: {content: 'Hello'}type: "chat:completion"Prototype: Objectmessage_id: "28643d3a-a9bb-4df4-a932-0d6b2f6d16db"Prototype: Object
Chat.svelte:1210 {content: 'Hello'}
Chat.svelte:1621 {status: true, task_id: '9a408834-5fc9-4183-bb8d-f2d34d935d44'}status: truetask_id: "9a408834-5fc9-4183-bb8d-f2d34d935d44"Prototype: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto()
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: 'Hello!'}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: 'Hello! It'}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you,"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hard"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin."}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you with"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you with or"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you with or would"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you with or would you"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is there something I can help you with or would you like"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is ther…omething I can help you with or would you like to"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is ther…ing I can help you with or would you like to chat"}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {content: "Hello! It's nice to meet you, Chad Hardin. Is ther…ng I can help you with or would you like to chat?"}
+layout.svelte:100 usage {models: Array(1)}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {id: 'llama3.2:latest-5f7dcd4e-0733-48c6-9677-eb0f83fdb877', created: 1740610590, model: 'llama3.2:latest', choices: Array(1), object: 'chat.completion.chunk', …}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:1210 {done: true, content: "Hello! It's nice to meet you, Chad Hardin. Is ther…ng I can help you with or would you like to chat?", title: 'New Chat'}
+layout.svelte:100 usage {models: Array(0)}
MessageInput.svelte:721 what can i do today
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Chat.svelte:233 {chat_id: '6755e6aa-b2d8-4da8-b8e2-79e2702c3c3e', message_id: '28643d3a-a9bb-4df4-a932-0d6b2f6d16db', data: {…}}
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
Additional Information
Maybe only the most recent memory is pulled from the vector database?