From f3cae94028bd494cae7a29e62fad2ea55f910d89 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 16 Jun 2025 16:17:52 +0400 Subject: [PATCH] fix: bypass webloader Co-Authored-By: WilliamGates <3852641+williamgateszhao@users.noreply.github.com> --- backend/open_webui/routers/retrieval.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index 2bd73c25e..f92695994 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -1867,6 +1867,10 @@ async def process_web_search( try: if request.app.state.config.BYPASS_WEB_SEARCH_WEB_LOADER: + search_results = [ + item for result in search_results for item in result if result + ] + docs = [ Document( page_content=result.snippet,