mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 18:43:44 -05:00
Lokal RAG - The content provided is empty #4173
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 @Napoletron on GitHub (Feb 27, 2025).
Bug Report
When fetching a document locally via RAG and
ENABLE_RAG_LOCAL_WEB_FETCHis set toFalsethe exception is swallowed in the end of the functionsafe_validate_urlsin the filebackend/open_webui/retrieval/web/utils.py.This makes it very frustrating to search for the bug:
If onyl lokal URLs are fetched with a model, there is no data to be added to the database leading to the error:
ERROR [open_webui.routers.retrieval] The content provided is empty. Please ensure that there is text or data present before proceeding.A log message cann be added by adding a log.warning(...)
The problem with the local URLs can be solved by setting
ENABLE_RAG_LOCAL_WEB_FETCHtoTruein the environment variables.Would be nice if a contributer made the simple fix.
Also I hope this message helps bug report helps others :)
Installation Method
apt install open-webuibut also via
git pull open-webuiEnvironment
Confirmation:
Expected Behavior:
Should fetch local doc via RAG
Actual Behavior:
Throws error The content provided is empty. Please ensure that there is text or data present before proceeding