mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
[GH-ISSUE #11754] issue: Web Search not working at all #87085
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 @logan683 on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11754
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.5.20
Ollama Version (if applicable)
0.6.1
Operating System
Windows 11 Pro
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When web search is enabled in Admin settings, DuckDuckGo or SearXNG or Google selected, model should use search and provide results.
The expected behavior is when Web Search is enabled and a search engine picked, it should work. Otherwise don't make a selectable feature.
Actual Behavior
Model doesn't use search. Sometimes search happens, but is not acknowledged. Sometimes no search is returned.
Steps to Reproduce
Follow all posted official directions to install Open WebUI in Docker. Follow all posted official instructions to install SearXNG. Follow all posted official directions to enable DuckDuckGo in Web Search tab in Admin settings. Follow all posted official instructions to enable Google PSE in Web Search in Admin settings.
Select one of said search engines, enable in chat, ask a question, receive no answers relevant to the search.
Logs & Screenshots
2025-03-17 01:37:19 INFO [open_webui.env] 'SHOW_ADMIN_DETAILS' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_GOOGLE_DRIVE_INTEGRATION' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_ONEDRIVE_INTEGRATION' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'CONTENT_EXTRACTION_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'TIKA_SERVER_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'DOCUMENT_INTELLIGENCE_ENDPOINT' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'DOCUMENT_INTELLIGENCE_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BYPASS_EMBEDDING_AND_RETRIEVAL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_TOP_K' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_FULL_CONTEXT' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_EMBEDDING_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'PDF_EXTRACT_IMAGES' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_EMBEDDING_MODEL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_EMBEDDING_BATCH_SIZE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_TEXT_SPLITTER' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'CHUNK_SIZE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'CHUNK_OVERLAP' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_TEMPLATE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_OPENAI_API_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_OPENAI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_OLLAMA_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_OLLAMA_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'YOUTUBE_LOADER_LANGUAGE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'YOUTUBE_LOADER_PROXY_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_RAG_WEB_SEARCH' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_WEB_SEARCH_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_WEB_SEARCH_DOMAIN_FILTER_LIST' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SEARXNG_QUERY_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'GOOGLE_PSE_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'GOOGLE_PSE_ENGINE_ID' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BRAVE_SEARCH_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'KAGI_SEARCH_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'MOJEEK_SEARCH_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BOCHA_SEARCH_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPSTACK_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPSTACK_HTTPS' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPER_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPLY_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'TAVILY_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'JINA_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SEARCHAPI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SEARCHAPI_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPAPI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'SERPAPI_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BING_SEARCH_V7_ENDPOINT' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'BING_SEARCH_V7_SUBSCRIPTION_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'EXA_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'PERPLEXITY_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_WEB_SEARCH_RESULT_COUNT' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_WEB_SEARCH_CONCURRENT_REQUESTS' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'RAG_WEB_SEARCH_TRUST_ENV' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'IMAGE_GENERATION_ENGINE' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_IMAGE_GENERATION' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_IMAGE_PROMPT_GENERATION' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'AUTOMATIC1111_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'AUTOMATIC1111_API_AUTH' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'COMFYUI_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'COMFYUI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'COMFYUI_WORKFLOW' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'COMFYUI_WORKFLOW' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'IMAGES_OPENAI_API_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'IMAGES_OPENAI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'IMAGES_GEMINI_API_BASE_URL' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'IMAGES_GEMINI_API_KEY' loaded from the latest database entry
2025-03-17 01:37:20 INFO [open_webui.env] 'ENABLE_LDAP' loaded from the latest database entry
2025-03-17 01:37:21 WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.
2025-03-17 01:37:27
Fetching 30 files: 0%| | 0/30 [00:00<?, ?it/s]
Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 60494.77it/s]
2025-03-17 01:37:27 INFO: Started server process [1]
2025-03-17 01:37:27 INFO: Waiting for application startup.
2025-03-17 01:38:52 Exception in ASGI application
2025-03-17 01:38:52 + Exception Group Traceback (most recent call last):
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
2025-03-17 01:38:52 | yield
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 178, in call
2025-03-17 01:38:52 | async with anyio.create_task_group() as task_group:
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 767, in aexit
2025-03-17 01:38:52 | raise BaseExceptionGroup(
2025-03-17 01:38:52 | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-03-17 01:38:52 +-+---------------- 1 ----------------
2025-03-17 01:38:52 | Traceback (most recent call last):
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
2025-03-17 01:38:52 | result = await app( # type: ignore[func-returns-value]
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
2025-03-17 01:38:52 | return await self.app(scope, receive, send)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
2025-03-17 01:38:52 | await super().call(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in call
2025-03-17 01:38:52 | await self.middleware_stack(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in call
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in call
2025-03-17 01:38:52 | await self.app(scope, receive, _send)
2025-03-17 01:38:52 | File "/app/backend/open_webui/utils/audit.py", line 178, in call
2025-03-17 01:38:52 | await self.app(scope, receive_wrapper, send_wrapper)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in call
2025-03-17 01:38:52 | await self.simple_response(scope, receive, send, request_headers=headers)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 144, in simple_response
2025-03-17 01:38:52 | await self.app(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 | with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 | self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 | response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/main.py", line 854, in inspect_websocket
2025-03-17 01:38:52 | return await call_next(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 | raise app_exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 | with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 | self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 | response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/main.py", line 833, in check_url
2025-03-17 01:38:52 | response = await call_next(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 | raise app_exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 | with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 | self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 | response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/main.py", line 823, in commit_session_after_request
2025-03-17 01:38:52 | response = await call_next(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 | raise app_exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 | with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 | self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 | response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
2025-03-17 01:38:52 | response = await call_next(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 | raise app_exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 | with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 | self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 | response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/main.py", line 812, in dispatch
2025-03-17 01:38:52 | response = await call_next(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 | raise app_exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
2025-03-17 01:38:52 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-03-17 01:38:52 | await app(scope, receive, sender)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
2025-03-17 01:38:52 | await self.middleware_stack(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
2025-03-17 01:38:52 | await route.handle(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
2025-03-17 01:38:52 | await self.app(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
2025-03-17 01:38:52 | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-03-17 01:38:52 | raise exc
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-03-17 01:38:52 | await app(scope, receive, sender)
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
2025-03-17 01:38:52 | response = await f(request)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
2025-03-17 01:38:52 | raw_response = await run_endpoint_function(
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
2025-03-17 01:38:52 | return await dependant.call(**values)
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/routers/memories.py", line 85, in query_memory
2025-03-17 01:38:52 | vectors=[request.app.state.EMBEDDING_FUNCTION(form_data.content, user)],
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | File "/app/backend/open_webui/retrieval/utils.py", line 314, in
2025-03-17 01:38:52 | return lambda query, user=None: embedding_function.encode(query).tolist()
2025-03-17 01:38:52 | ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 | AttributeError: 'NoneType' object has no attribute 'encode'
2025-03-17 01:38:52 +------------------------------------
2025-03-17 01:38:52
2025-03-17 01:38:52 During handling of the above exception, another exception occurred:
2025-03-17 01:38:52
2025-03-17 01:38:52 Traceback (most recent call last):
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
2025-03-17 01:38:52 result = await app( # type: ignore[func-returns-value]
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
2025-03-17 01:38:52 return await self.app(scope, receive, send)
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
2025-03-17 01:38:52 await super().call(scope, receive, send)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in call
2025-03-17 01:38:52 await self.middleware_stack(scope, receive, send)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in call
2025-03-17 01:38:52 raise exc
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in call
2025-03-17 01:38:52 await self.app(scope, receive, _send)
2025-03-17 01:38:52 File "/app/backend/open_webui/utils/audit.py", line 178, in call
2025-03-17 01:38:52 await self.app(scope, receive_wrapper, send_wrapper)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in call
2025-03-17 01:38:52 await self.simple_response(scope, receive, send, request_headers=headers)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 144, in simple_response
2025-03-17 01:38:52 await self.app(scope, receive, send)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 raise exc
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/app/backend/open_webui/main.py", line 854, in inspect_websocket
2025-03-17 01:38:52 return await call_next(request)
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 raise app_exc
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
2025-03-17 01:38:52 with recv_stream, send_stream, collapse_excgroups():
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
2025-03-17 01:38:52 self.gen.throw(typ, value, traceback)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-03-17 01:38:52 raise exc
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
2025-03-17 01:38:52 response = await self.dispatch_func(request, call_next)
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/app/backend/open_webui/main.py", line 833, in check_url
2025-03-17 01:38:52 response = await call_next(request)
2025-03-17 01:38:52 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
2025-03-17 01:38:52 raise app_exc
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
2025-03-17 01:38:52 await self.app(scope, receive_or_disconnect, send_no_error)
2025-03-17 01:38:52 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
Additional Information
There are too many errors to post here.
The simple fact is this should work.
@Classic298 commented on GitHub (Mar 17, 2025):
Seems like the RAG, and your embedding model failed. Many have reported the same issue right now.
Relates to #11723 #8789
@logan683 commented on GitHub (Mar 17, 2025):
Thank you. There are way more than that I have found and gone through. Is this an issue with Open WebUI or is there something I can do?
@Classic298 commented on GitHub (Mar 17, 2025):
It's not an issue with OpenWebUI because not many can replicate it, but at the same time I have no clue what is causing the sentence transformer to not work for some people (including me).
'NoneType' object has no attribute 'split'
'NoneType' object has no attribute 'encode'
@logan683 commented on GitHub (Mar 17, 2025):
Has this ever worked for you at any point?
@Classic298 commented on GitHub (Mar 17, 2025):
@logan683 I fixed it for myself lol. My mistake was enabling Python opimizations using the -OO flag. This broke the sentence transformers
Now it works again
And yes it always worked for me
@logan683 commented on GitHub (Mar 17, 2025):
I see. Thank you. Considering I have tried to get this working on two different systems, one with Windows and the other Linux and both with clean and fresh installs of each respective OS, and considering how easy the documentation makes it sound, it seems possible something is broken. Or the documentation should be written better and in a more complete way. Or both.
@Classic298 commented on GitHub (Mar 17, 2025):
Did you enable offline mode perhaps? Any environment variables? What's your setup like? HF HUB OFFLINE enabled? Did you set up RAG in the admin panel > documents beforehand? Do you use hybrid search? If yes, turn it off, some users have issues specifically with hybrid search. Download the sentence transformer model again in the admin panel or use an external model. Enable "bypass embedding and retrieval" in the document settings and in the web search settings and see if it then starts working.