I have searched for any existing and/or related issues.
I have searched for any existing and/or related discussions.
I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
I am using the latest version of Open WebUI.
Installation Method
Git Clone
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
v0.13.1
Operating System
ubuntu 24.04
Browser (if applicable)
No response
Confirmation
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
Expected Behavior
No errors when startup
Actual Behavior
Stop on launching
Steps to Reproduce
Clone, and build
Logs & Screenshots
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: File "/export/IAI/open-webui/backend/open_webui/routers/retrieval.py", line 31, in <module>
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: from langchain.text_splitter import RecursiveCharacterTextSplitter, TokenTextSplitter
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: ModuleNotFoundError: No module named 'langchain.text_splitter'
Dec 03 10:59:41 ricardo-PC systemd[1]: 0-openwebui.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: File "/export/IAI/open-webui/backend/open_webui/retrieval/utils.py", line 15, in <module>
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: from langchain.retrievers import ContextualCompressionRetriever, EnsembleRetriever
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: ModuleNotFoundError: No module named 'langchain.retrievers'
Dec 03 11:22:01 ricardo-PC systemd[1]: 0-openwebui.service: Main process exited, code=exited, status=1/FAILURE
Originally created by @rgaricano on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19709
### Check Existing Issues
- [x] I have searched for any existing and/or related issues.
- [x] I have searched for any existing and/or related discussions.
- [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
- [x] I am using the latest version of Open WebUI.
### Installation Method
Git Clone
### Open WebUI Version
v0.6.41
### Ollama Version (if applicable)
v0.13.1
### Operating System
ubuntu 24.04
### Browser (if applicable)
_No response_
### Confirmation
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### Expected Behavior
No errors when startup
### Actual Behavior
Stop on launching
### Steps to Reproduce
Clone, and build
### Logs & Screenshots
```
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: File "/export/IAI/open-webui/backend/open_webui/routers/retrieval.py", line 31, in <module>
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: from langchain.text_splitter import RecursiveCharacterTextSplitter, TokenTextSplitter
Dec 03 10:59:37 ricardo-PC startssh.sh[489729]: ModuleNotFoundError: No module named 'langchain.text_splitter'
Dec 03 10:59:41 ricardo-PC systemd[1]: 0-openwebui.service: Main process exited, code=exited, status=1/FAILURE
```
```
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: File "/export/IAI/open-webui/backend/open_webui/retrieval/utils.py", line 15, in <module>
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: from langchain.retrievers import ContextualCompressionRetriever, EnsembleRetriever
Dec 03 11:21:57 ricardo-PC startssh.sh[495883]: ModuleNotFoundError: No module named 'langchain.retrievers'
Dec 03 11:22:01 ricardo-PC systemd[1]: 0-openwebui.service: Main process exited, code=exited, status=1/FAILURE
```
### Additional Information
Solved editing routers/retrieval.py & retrieval/utils.py
PR: https://github.com/open-webui/open-webui/pull/19710
GiteaMirror
added the bug label 2026-05-13 05:55:47 -05:00
#19438issue: Icon loading regression by JoelShepard • Nov 24, 2025 • bug
#18975issue: 500: Internal Error by nurb2kea • Nov 06, 2025 • bug
#18145issue: 0.6.33 regression by Ark-Levy • Oct 08, 2025 • bug
💡Tips:
If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
If you found a solution in any of these issues, please share it here to help others
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
<!-- gh-comment-id:3606298331 -->
@owui-terminator[bot] commented on GitHub (Dec 3, 2025):
🔍 **Similar Issues Found**
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
1. [#19563](https://github.com/open-webui/open-webui/issues/19563) **issue:**
*by naruto7g • Nov 28, 2025 • `bug`*
2. [#19211](https://github.com/open-webui/open-webui/issues/19211) **issue:**
*by Byrnes9 • Nov 16, 2025 • `bug`*
3. [#14440](https://github.com/open-webui/open-webui/issues/14440) **issue:**
*by ehsan8203 • May 28, 2025 • `bug`*
4. [#15917](https://github.com/open-webui/open-webui/issues/15917) **issue: can"t build v0.6.18**
*by sanchitbhavsar • Jul 21, 2025 • `bug`*
5. [#19496](https://github.com/open-webui/open-webui/issues/19496) **issue: 500 internal server error appears in v0.6.40**
*by cloudtuotuo • Nov 26, 2025 • `bug`*
<details>
<summary>Show 5 more related issues</summary>
6. [#19417](https://github.com/open-webui/open-webui/issues/19417) **issue: v0.6.37 SQL Error**
*by AKHYP • Nov 24, 2025 • `bug`*
7. [#15928](https://github.com/open-webui/open-webui/issues/15928) **issue: Problematic installation**
*by PatrickAtYacoub • Jul 22, 2025 • `bug`*
8. [#19438](https://github.com/open-webui/open-webui/issues/19438) **issue: Icon loading regression**
*by JoelShepard • Nov 24, 2025 • `bug`*
9. [#18975](https://github.com/open-webui/open-webui/issues/18975) **issue: 500: Internal Error**
*by nurb2kea • Nov 06, 2025 • `bug`*
10. [#18145](https://github.com/open-webui/open-webui/issues/18145) **issue: 0.6.33 regression**
*by Ark-Levy • Oct 08, 2025 • `bug`*
</details>
---
💡 **Tips:**
- If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
- If you found a solution in any of these issues, please share it here to help others
*This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
<!-- gh-comment-id:3608218990 -->
@athoik commented on GitHub (Dec 3, 2025):
I have a ready PR !
I was waiting for langchain community to release a new version that includes a PR that will make OI fully supported on Debian 13 and Python 3.13.
https://github.com/langchain-ai/langchain-community/pull/375
Once https://github.com/langchain-ai/langchain-community/tags 0.4.2 released I can push the PR.
I can push now, but it will not be 100% python 3.13 ready.
```
diff --git a/backend/open_webui/retrieval/utils.py b/backend/open_webui/retrieval/utils.py
index da570330b..272b749ee 100644
--- a/backend/open_webui/retrieval/utils.py
+++ b/backend/open_webui/retrieval/utils.py
@@ -10,7 +10,8 @@ import re
from urllib.parse import quote
from huggingface_hub import snapshot_download
-from langchain.retrievers import ContextualCompressionRetriever, EnsembleRetriever
+from langchain_classic.retrievers.contextual_compression import ContextualCompressionRetriever
+from langchain_classic.retrievers.ensemble import EnsembleRetriever
from langchain_community.retrievers import BM25Retriever
from langchain_core.documents import Document
diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py
index f8147372f..2954c6135 100644
--- a/backend/open_webui/routers/retrieval.py
+++ b/backend/open_webui/routers/retrieval.py
@@ -28,7 +28,7 @@ from pydantic import BaseModel
import tiktoken
-from langchain.text_splitter import RecursiveCharacterTextSplitter, TokenTextSplitter
+from langchain_text_splitters import RecursiveCharacterTextSplitter, TokenTextSplitter
from langchain_text_splitters import MarkdownHeaderTextSplitter
from langchain_core.documents import Document
diff --git a/backend/requirements.txt b/backend/requirements.txt
index 0fdcb618f..43b693e2d 100644
--- a/backend/requirements.txt
+++ b/backend/requirements.txt
@@ -44,8 +44,10 @@ anthropic
google-genai==1.38.0
google-generativeai==0.8.5
-langchain==0.3.27
-langchain-community==0.3.29
+langchain==1.0.5
+langchain-classic==1.0.0
+langchain-community==0.4.1
+langchain-text-splitters==1.0.0
fake-useragent==2.2.0
chromadb==1.1.0
```
I did a PR but I closed because in requirements is used langchain 0.3.27 & usually this kind of changes isn't accepted.
<!-- gh-comment-id:3608881664 -->
@rgaricano commented on GitHub (Dec 3, 2025):
I did a PR but I closed because in requirements is used langchain 0.3.27 & usually this kind of changes isn't accepted.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @rgaricano on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19709
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
v0.13.1
Operating System
ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
No errors when startup
Actual Behavior
Stop on launching
Steps to Reproduce
Clone, and build
Logs & Screenshots
Additional Information
Solved editing routers/retrieval.py & retrieval/utils.py
PR: https://github.com/open-webui/open-webui/pull/19710
@owui-terminator[bot] commented on GitHub (Dec 3, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#14440 issue:
by ehsan8203 • May 28, 2025 •
bug#15917 issue: can"t build v0.6.18
by sanchitbhavsar • Jul 21, 2025 •
bug#19496 issue: 500 internal server error appears in v0.6.40
by cloudtuotuo • Nov 26, 2025 •
bugShow 5 more related issues
#19417 issue: v0.6.37 SQL Error
by AKHYP • Nov 24, 2025 •
bug#15928 issue: Problematic installation
by PatrickAtYacoub • Jul 22, 2025 •
bug#19438 issue: Icon loading regression
by JoelShepard • Nov 24, 2025 •
bug#18975 issue: 500: Internal Error
by nurb2kea • Nov 06, 2025 •
bug#18145 issue: 0.6.33 regression
by Ark-Levy • Oct 08, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@athoik commented on GitHub (Dec 3, 2025):
I have a ready PR !
I was waiting for langchain community to release a new version that includes a PR that will make OI fully supported on Debian 13 and Python 3.13.
https://github.com/langchain-ai/langchain-community/pull/375
Once https://github.com/langchain-ai/langchain-community/tags 0.4.2 released I can push the PR.
I can push now, but it will not be 100% python 3.13 ready.
@rgaricano commented on GitHub (Dec 3, 2025):
I did a PR but I closed because in requirements is used langchain 0.3.27 & usually this kind of changes isn't accepted.
@Classic298 commented on GitHub (Dec 14, 2025):
any update here?
@Classic298 commented on GitHub (Dec 20, 2025):
can this be closed?