mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: Document embedding does not work - when OLLAMA_NEW_ENGINE=1 is enabled on Ollama #6247
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 @eXt73 on GitHub (Aug 28, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.26
Ollama Version (if applicable)
0.11.7
Operating System
Kubuntu Linux 24.04
Browser (if applicable)
Brave 1.81.136
Confirmation
README.md.Expected Behavior
The document should be properly embedded, then searched by Qwen3, reranked by bge-reranker-v2-m3 and the fragments prepared in this way are sent to LLM 'on the front end'
With this configuration [ollama 0.11.7], everything works correctly - although in the latest versions of Open WebUI = from .25 each change of the embedding module requires executing: sudo systemctl daemon-reload && sudo systemctl restart ollama.service - otherwise the embedding does not work.
Environment="OLLAMA_FLASH_ATTENTION=1"
Environment="OLLAMA_KV_CACHE_TYPE=q4_0"
Environment="OLLAMA_NEW_ESTIMATES=1"
Actual Behavior
In version v.0.6.25 and .26, document embedding and hybrid search/reranker stopped working when You active [on ollama]: OLLAMA_NEW_ENGINE=1. when you try to run the embedding model = Qwen3-Embedding-4B-GGUF:IQ4_NL you will get an error: 'NoneType' object is not iterable.
With this configuration [Ollma 0.11.7], embedding does not work:
Environment="OLLAMA_NEW_ENGINE=1"
Environment="OLLAMA_FLASH_ATTENTION=1"
Environment="OLLAMA_KV_CACHE_TYPE=q4_0"
Environment="OLLAMA_NEW_ESTIMATES=1"
Steps to Reproduce
I'm skipping the obvious parts:
With the Qwen3 4B embedding model and the hybrid search engine + bge-reranker-v2-m3 reranker active.
Post the document in the chat window.
Ask the main LLM model for information from the document.
The model will respond [if its system prompt is configured] that there is no information or file and an error will be displayed: 'NoneType' object is not iterable.
The response shows that the embedded file is not attached.
Logs & Screenshots
Additional Information
No response
@oatmealm commented on GitHub (Aug 28, 2025):
It’d be great if there would be a way to notify the user embedding failed following a nontype error. This is such a common scenario at this point.
@rgaricano commented on GitHub (Aug 28, 2025):
Are you tried with OLLAMA_NEW_ENGINE also set?