mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #23826] issue: search_memories returns all results regardless of query string #74683
Reference in New Issue
Block a user
Originally created by @JeslynMcKenzie on GitHub (Apr 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23826
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04 (Docker Container)
Browser (if applicable)
Microsoft Edge
Confirmation
README.md.Expected Behavior
NOTE: I tried posting on another account accidentally and it didn't show up in the issue list? Reposting on this account. You can delete the other as duplicate if it shows up!
When a model calls search_memories with a specified query, it will only return results relevant to that query.
Actual Behavior
When a model calls search_memories with a specified query, it is returning all memory results related to the user.
Steps to Reproduce
Logs & Screenshots
Additional Information
I'm happy to provide any information I may have missed. I didn't attach the Docker logs or the Console logs because they weren't outputting anything relevant but if you want me to do so anyways just ask! I'm not sure if my verbosity in docker is set to extra low because it honestly didn't output anything but chunk related logs.
Oh! I did confirm this just pulls in the active users memories. It doesn't pull in other users memories.
Edit: I also am not sure if the steps are completely correct since I can only follow steps 16 and 17 myself. The rest have already been completed and I recalled based on memory. I did observe the issue in two separate models though, Qwen 3.5 4B and Gemma 4 31B.
The inputs look correct too so I'm not sure if maybe I'm missing something or not! Maybe I need to index something or make sure an index job is running? If this isn't a true bug and I'm doing something wrong let me know! I did research quite a bit and everything says this function should only bring back relevant articles and the fact it's pulling in all memories is a bug (AI's words alongside mine!).
@danielh-official commented on GitHub (Apr 17, 2026):
I tested on my end. I built out my local by cloning the repo and running
docker compose up. Model is llama3.2:latest.I added these memories:
I then prompted: "search_memories Who created Mario?"
The answer was "Mario was created by Shigeru Miyamoto."
However, here's the JSON output:
I assume the problem is that we want to JSON to be filtered along with the answer, so the output should actually be:
@tjbck commented on GitHub (Apr 17, 2026):
Addressed in dev to utilize RELEVANCE_THRESHOLD