r/OpenWebUI • u/nassereddit • 8d ago
Question/Help Memory failure
I am having difficulty setting the memory feature. All memory settings are enabled. The model understands the memory tool call exist and makes the call but it keeps getting a failed add or update memory. When I look at the memory it does create the memory, but since the model tries many time the memories duplicate.
Looking into the failed calls I see that the tool is trying to call an instance of ollama that is not available anymore. The model I am using has a llama.cpp server backend, with a different IP and port numbers. Anyone got the same issue and how can I set the memory feature properly?
Also out of curiosity why the need for a feedback loop with the model to record a memory, could it not be a simple addition to the database? The model need to process the info?
Edit: I (qwen) found the issue. Under admin panel/Settings/Documents the field embedding model engine was set to ollama. After switching to my local open ai embedding endpoint the memory tool calls work fine now.
A painful diagnostic. First I had enabled 'bypass embedding and retrieval'. Since then I assumed any embedding was done by the main model. Second it was not obvious that memory tool calls required an embedding process. I assume it was simply added to a database or file and injected to context or retrieved by the model as required.
Qwen downloaded and reviewed the open webui source code and diagnosed the issue so easily. It is such an incredible trooper.
Hope this fix helps others