[GH-ISSUE #11721] issue: Web Search not working! #16331

Closed
opened 2026-04-19 22:16:52 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @ghost on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11721

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.5.20

Ollama Version (if applicable)

No response

Operating System

Windows 11 Home

Browser (if applicable)

Microsoft Edge

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 listed steps to reproduce the bug in detail.

Expected Behavior

Returns the web search results as expected.

Actual Behavior

Shows "no search results found".

Steps to Reproduce

  1. Enable web search and ask model something.
  2. Wait for model to finish searching.
  3. Check the response.

Logs & Screenshots

open-webui logs:

2025-03-15 17:42:04.797 | INFO     | open_webui.routers.retrieval:process_web_search:1417 - trying to web search with ('serpapi', 'Roman Empire unusual uses') - {}
2025-03-15 17:42:07.083 | INFO     | open_webui.retrieval.web.serpapi:search_serpapi:36 - results from serpapi search: {'search_metadata': {'id': '67d56e9a051e092ff518922e', 'status': 'Success', 'json_endpoint': 'https://serpapi.com/searches/0238cc71133c7af9/67d56e9a051e092ff518922e.json', 'created_at': '2025-03-15 12:12:10 UTC', 'processed_at': '2025-03-15 12:12:10 UTC', "SOME URLS"}}} - {}
Fetching pages: 100%|####################################################################| 9/9 [00:03<00:00,  2.53it/s]
2025-03-15 17:42:12.126 | INFO     | open_webui.routers.retrieval:save_docs_to_vector_db:782 - save_docs_to_vector_db: document What were some weird Roman traditions? - Quora, What are the strangest aspects of life in the Roman Empire? - Quora, What did the Romans do for us? | English Heritage , Reddit - Heart of the internet, 22 Fascinating Facts About the Roman Empire , Ancient Roman technology - Wikipedia, 10 inventions to thank the Roman Empire for | Gray Line - I Love Rome, Traces of Ancient Rome in the Modern World, 10 Innovations That Built Ancient Rome | HISTORY web-search-b61a2ffee57ce960195db50dfd674a5e6381d929764c8cff6bb4 - {}
2025-03-15 17:42:12.492 | INFO     | open_webui.routers.retrieval:save_docs_to_vector_db:865 - adding to collection web-search-b61a2ffee57ce960195db50dfd674a5e6381d929764c8cff6bb4 - {}
2025-03-15 17:42:12.685 | ERROR    | open_webui.retrieval.utils:generate_ollama_batch_embeddings:618 - Error generating ollama batch embeddings: 404 Client Error: Not Found for url: http://localhost:11434/api/embed - {}
Traceback (most recent call last):

  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1002, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x0000021EAAFFBA60>
    └ <WorkerThread(AnyIO worker thread, started 16196)>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1045, in _bootstrap_inner
    self.run()
    │    └ <function WorkerThread.run at 0x0000021F0B335A80>
    └ <WorkerThread(AnyIO worker thread, started 16196)>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
             │       ��� <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0x0000021F0B2245C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db
    embeddings = embedding_function(
                 └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda>
    return lambda query, user=None: generate_multiple(query, user, func)
                  │                 │                 │      │     └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0>
                  │                 │                 │      └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro...
                  │                 │                 └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
                  │                 └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940>
                  └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 330, in generate_multiple
    func(query[i : i + embedding_batch_size], user=user)
    │    │     │   │   │                           └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro...
    │    │     │   │   └ 1
    │    │     │   └ 0
    │    │     └ 0
    │    └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
    └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 316, in <lambda>
    func = lambda query, user=None: generate_embeddings(
                  │                 └ <function generate_embeddings at 0x0000021ED7784400>
                  └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 629, in generate_embeddings
    embeddings = generate_ollama_batch_embeddings(
                 └ <function generate_ollama_batch_embeddings at 0x0000021ED77842C0>
> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 610, in generate_ollama_batch_embeddings
    r.raise_for_status()
    │ └ <function Response.raise_for_status at 0x0000021EAF1E5440>
    └ <Response [404]>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
          │         │                        └ <Response [404]>
          │         └ '404 Client Error: Not Found for url: http://localhost:11434/api/embed'
          └ <class 'requests.exceptions.HTTPError'>

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:11434/api/embed
2025-03-15 17:42:13.317 | ERROR    | open_webui.routers.retrieval:save_docs_to_vector_db:904 - 'NoneType' object is not iterable - {}
Traceback (most recent call last):

  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1002, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x0000021EAAFFBA60>
    └ <WorkerThread(AnyIO worker thread, started 16196)>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1045, in _bootstrap_inner
    self.run()
    │    └ <function WorkerThread.run at 0x0000021F0B335A80>
    └ <WorkerThread(AnyIO worker thread, started 16196)>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
             │       └ <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0x0000021F0B2245C0>
> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db
    embeddings = embedding_function(
                 └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda>
    return lambda query, user=None: generate_multiple(query, user, func)
                  │                 │                 │      │     └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0>
                  │                 │                 │      └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro...
                  │                 │                 └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
                  │                 └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940>
                  └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple
    embeddings.extend(
    │          └ <method 'extend' of 'list' objects>
    └ []

TypeError: 'NoneType' object is not iterable
2025-03-15 17:42:13.317 | ERROR    | open_webui.routers.retrieval:process_web_search:1480 - 'NoneType' object is not iterable - {}
Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code

  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\open-webui.exe\__main__.py", line 7, in <module>
    sys.exit(app())
    │   │    └ <typer.main.Typer object at 0x0000021EAB203F50>
    │   └ <built-in function exit>
    └ <module 'sys' (built-in)>

  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 322, in __call__
    return get_command(self)(*args, **kwargs)
           │           │      │       └ {}
           │           │      └ ()
           │           └ <typer.main.Typer object at 0x0000021EAB203F50>
           └ <function get_command at 0x0000021EABC41B20>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ ()
           │    └ <function TyperGroup.main at 0x0000021EABC16520>
           └ <TyperGroup >
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 740, in main
    return _main(
           └ <function _main at 0x0000021EABC15760>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 195, in _main
    rv = self.invoke(ctx)
         │    │      └ <click.core.Context object at 0x0000021EAE0ADF90>
         │    └ <function MultiCommand.invoke at 0x0000021EAB4EBB00>
         └ <TyperGroup >
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
           │               │       │       │      └ <click.core.Context object at 0x0000021EABB88090>
           │               │       │       └ <function Command.invoke at 0x0000021EAB4EB4C0>
           │               │       └ <TyperCommand serve>
           │               └ <click.core.Context object at 0x0000021EABB88090>
           └ <function MultiCommand.invoke.<locals>._process_result at 0x0000021EAE0A0680>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           │   │      │    │           │   └ {'host': '0.0.0.0', 'port': 8080}
           │   │      │    │           └ <click.core.Context object at 0x0000021EABB88090>
           │   │      │    └ <function serve at 0x0000021EAE0A04A0>
           │   │      └ <TyperCommand serve>
           │   └ <function Context.invoke at 0x0000021EAB4E9E40>
           └ <click.core.Context object at 0x0000021EABB88090>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 788, in invoke
    return __callback(*args, **kwargs)
                       │       └ {'host': '0.0.0.0', 'port': 8080}
                       └ ()
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 697, in wrapper
    return callback(**use_params)
           │          └ {'host': '0.0.0.0', 'port': 8080}
           └ <function serve at 0x0000021EABEB67A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\__init__.py", line 77, in serve
    uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*")
    │       │   │          │    │         │          └ 8080
    │       │   │          │    │         └ '0.0.0.0'
    │       │   │          │    └ <fastapi.applications.FastAPI object at 0x0000021ED9CD4910>
    │       │   │          └ <module 'open_webui.main' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p...
    │       │   └ <module 'open_webui' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Lo...
    │       └ <function run at 0x0000021EABEB6700>
    └ <module 'uvicorn' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Local...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\main.py", line 579, in run
    server.run()
    │      └ <function Server.run at 0x0000021EABEB6980>
    └ <uvicorn.server.Server object at 0x0000021F0B153010>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
           │       │   │    │             └ None
           │       │   │    └ <function Server.serve at 0x0000021EABEB6A20>
           │       │   └ <uvicorn.server.Server object at 0x0000021F0B153010>
           │       └ <function run at 0x0000021EABD11120>
           └ <module 'asyncio' from 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\\...
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           │      │   └ <coroutine object Server.serve at 0x0000021EF325EA70>
           │      └ <function Runner.run at 0x0000021EABD87E20>
           └ <asyncio.runners.Runner object at 0x0000021EF351A650>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           │    │     │                  └ <Task pending name='Task-1' coro=<Server.serve() running at C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Py...
           │    │     └ <function BaseEventLoop.run_until_complete at 0x0000021EABD85A80>
           │    └ <ProactorEventLoop running=True closed=False debug=False>
           └ <asyncio.runners.Runner object at 0x0000021EF351A650>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
    │    └ <function ProactorEventLoop.run_forever at 0x0000021EABDF2AC0>
    └ <ProactorEventLoop running=True closed=False debug=False>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
    │    └ <function BaseEventLoop._run_once at 0x0000021EABD877E0>
    └ <ProactorEventLoop running=True closed=False debug=False>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 1936, in _run_once
    handle._run()
    │      └ <function Handle._run at 0x0000021EABD0C680>
    └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
    │    │            │    │           │    └ <member '_args' of 'Handle' objects>
    │    │            │    │           └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
    │    │            │    └ <member '_callback' of 'Handle' objects>
    │    │            └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
    │    └ <member '_context' of 'Handle' objects>
    └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
          │    │   │      │                      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980>
          │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0>
          └ <open_webui.main.RedirectMiddleware object at 0x0000021F0B231750>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
          │                            │    │    │     │      │        └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980>
          │                            │    │    │     │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │                            │    │    │     └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │                            │    │    └ <starlette.requests.Request object at 0x0000021F0B3DA290>
          │                            │    └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
          │                            └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0>
          └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
          │    │                │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │    │                │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │                └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>>
          └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
          │     │      │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │     │      │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │     │      └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │     └ <function Route.handle at 0x0000021EAF5FFC40>
          └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
          │    │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <function request_response.<locals>.app at 0x0000021F0B193E20>
          └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
          │                            │    │        │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │                            │    │        │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │                            │    │        └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │                            │    └ <starlette.requests.Request object at 0x0000021F0B555010>
          │                            └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040>
          └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5642C0>
          │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
                     │ └ <starlette.requests.Request object at 0x0000021F0B555010>
                     └ <function get_request_handler.<locals>.app at 0x0000021F0B1939C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                         └ <function run_endpoint_function at 0x0000021EAF635A80>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
                 │         │      └ {'user': UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='ad...
                 │         └ <function chat_completion at 0x0000021F0B192200>
                 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\main.py", line 1043, in chat_completion
    form_data, metadata, events = await process_chat_payload(
    │          │                        └ <function process_chat_payload at 0x0000021ED9B4D1C0>
    │          └ {'user_id': '5f8f77dd-4631-4872-9755-8a4b4ce82d67', 'chat_id': '72f388c2-48e6-434e-b4c3-172449792a62', 'message_id': '1a76dd8...
    └ {'stream': True, 'model': 'gemma3:latest', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roma...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 736, in process_chat_payload
    form_data = await chat_web_search_handler(
                      └ <function chat_web_search_handler at 0x0000021ED9B2B4C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 341, in chat_web_search_handler
    results = await process_web_search(
                    └ <function process_web_search at 0x0000021ED77C9620>
> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1464, in process_web_search
    await run_in_threadpool(
          └ <function run_in_threadpool at 0x0000021EAF2C1DA0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
    return await anyio.to_thread.run_sync(func)
                 │     │         │        └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
                 │     │         └ <function run_sync at 0x0000021EABF2B880>
                 │     └ <module 'anyio.to_thread' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p...
                 └ <module 'anyio' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCa...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
                 └ <function get_async_backend at 0x0000021EABF2B100>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
    return await future
                 └ <Future finished exception=TypeError("'NoneType' object is not iterable")>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
             │       └ <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0x0000021F0B2245C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 905, in save_docs_to_vector_db
    raise e
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db
    embeddings = embedding_function(
                 └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda>
    return lambda query, user=None: generate_multiple(query, user, func)
                  │                 │                 │      │     └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0>
                  │                 │                 │      └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro...
                  │                 │                 └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
                  │                 └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940>
                  └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple
    embeddings.extend(
    │          └ <method 'extend' of 'list' objects>
    └ []

TypeError: 'NoneType' object is not iterable
2025-03-15 17:42:14.084 | ERROR    | open_webui.utils.middleware:chat_web_search_handler:376 - 400: [ERROR: 'NoneType' object is not iterable] - {}
Traceback (most recent call last):

  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1464, in process_web_search
    await run_in_threadpool(
          └ <function run_in_threadpool at 0x0000021EAF2C1DA0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool
    return await anyio.to_thread.run_sync(func)
                 │     │         │        └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
                 │     │         └ <function run_sync at 0x0000021EABF2B880>
                 │     └ <module 'anyio.to_thread' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p...
                 └ <module 'anyio' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCa...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
                 └ <function get_async_backend at 0x0000021EABF2B100>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
    return await future
                 └ <Future finished exception=TypeError("'NoneType' object is not iterable")>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B...
             │       └ <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0x0000021F0B2245C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 905, in save_docs_to_vector_db
    raise e
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db
    embeddings = embedding_function(
                 └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda>
    return lambda query, user=None: generate_multiple(query, user, func)
                  │                 │                 │      │     └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0>
                  │                 │                 │      └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro...
                  │                 │                 └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
                  │                 └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940>
                  └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple
    embeddings.extend(
    │          └ <method 'extend' of 'list' objects>
    └ []

TypeError: 'NoneType' object is not iterable


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code

  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\open-webui.exe\__main__.py", line 7, in <module>
    sys.exit(app())
    │   │    └ <typer.main.Typer object at 0x0000021EAB203F50>
    │   └ <built-in function exit>
    └ <module 'sys' (built-in)>

  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 322, in __call__
    return get_command(self)(*args, **kwargs)
           │           │      │       └ {}
           │           │      └ ()
           │           └ <typer.main.Typer object at 0x0000021EAB203F50>
           └ <function get_command at 0x0000021EABC41B20>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ ()
           │    └ <function TyperGroup.main at 0x0000021EABC16520>
           └ <TyperGroup >
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 740, in main
    return _main(
           └ <function _main at 0x0000021EABC15760>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 195, in _main
    rv = self.invoke(ctx)
         │    │      └ <click.core.Context object at 0x0000021EAE0ADF90>
         │    └ <function MultiCommand.invoke at 0x0000021EAB4EBB00>
         └ <TyperGroup >
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
           │               │       │       │      └ <click.core.Context object at 0x0000021EABB88090>
           │               │       │       └ <function Command.invoke at 0x0000021EAB4EB4C0>
           │               │       └ <TyperCommand serve>
           │               └ <click.core.Context object at 0x0000021EABB88090>
           └ <function MultiCommand.invoke.<locals>._process_result at 0x0000021EAE0A0680>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           │   │      │    │           │   └ {'host': '0.0.0.0', 'port': 8080}
           │   │      │    │           └ <click.core.Context object at 0x0000021EABB88090>
           │   │      │    └ <function serve at 0x0000021EAE0A04A0>
           │   │      └ <TyperCommand serve>
           │   └ <function Context.invoke at 0x0000021EAB4E9E40>
           └ <click.core.Context object at 0x0000021EABB88090>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 788, in invoke
    return __callback(*args, **kwargs)
                       │       └ {'host': '0.0.0.0', 'port': 8080}
                       └ ()
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 697, in wrapper
    return callback(**use_params)
           │          └ {'host': '0.0.0.0', 'port': 8080}
           └ <function serve at 0x0000021EABEB67A0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\__init__.py", line 77, in serve
    uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*")
    │       │   │          │    │         │          └ 8080
    │       │   │          │    │         └ '0.0.0.0'
    │       │   │          │    └ <fastapi.applications.FastAPI object at 0x0000021ED9CD4910>
    │       │   │          └ <module 'open_webui.main' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p...
    │       │   └ <module 'open_webui' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Lo...
    │       └ <function run at 0x0000021EABEB6700>
    └ <module 'uvicorn' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Local...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\main.py", line 579, in run
    server.run()
    │      └ <function Server.run at 0x0000021EABEB6980>
    └ <uvicorn.server.Server object at 0x0000021F0B153010>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
           │       │   │    │             └ None
           │       │   │    └ <function Server.serve at 0x0000021EABEB6A20>
           │       │   └ <uvicorn.server.Server object at 0x0000021F0B153010>
           │       └ <function run at 0x0000021EABD11120>
           └ <module 'asyncio' from 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\\...
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           │      │   └ <coroutine object Server.serve at 0x0000021EF325EA70>
           │      └ <function Runner.run at 0x0000021EABD87E20>
           └ <asyncio.runners.Runner object at 0x0000021EF351A650>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           │    │     │                  └ <Task pending name='Task-1' coro=<Server.serve() running at C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Py...
           │    │     └ <function BaseEventLoop.run_until_complete at 0x0000021EABD85A80>
           │    └ <ProactorEventLoop running=True closed=False debug=False>
           └ <asyncio.runners.Runner object at 0x0000021EF351A650>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
    │    └ <function ProactorEventLoop.run_forever at 0x0000021EABDF2AC0>
    └ <ProactorEventLoop running=True closed=False debug=False>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
    │    └ <function BaseEventLoop._run_once at 0x0000021EABD877E0>
    └ <ProactorEventLoop running=True closed=False debug=False>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 1936, in _run_once
    handle._run()
    │      └ <function Handle._run at 0x0000021EABD0C680>
    └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
    │    │            │    │           │    └ <member '_args' of 'Handle' objects>
    │    │            │    │           └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
    │    │            │    └ <member '_callback' of 'Handle' objects>
    │    │            └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
    │    └ <member '_context' of 'Handle' objects>
    └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
          │    │   │      │                      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980>
          │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0>
          └ <open_webui.main.RedirectMiddleware object at 0x0000021F0B231750>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
          │                            │    │    │     │      │        └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980>
          │                            │    │    │     │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │                            │    │    │     └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │                            │    │    └ <starlette.requests.Request object at 0x0000021F0B3DA290>
          │                            │    └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
          │                            └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0>
          └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
          │    │                │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │    │                │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │                └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>>
          └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
          │     │      │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │     │      │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │     │      └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │     └ <function Route.handle at 0x0000021EAF5FFC40>
          └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
          │    │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │    └ <function request_response.<locals>.app at 0x0000021F0B193E20>
          └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
          │                            │    │        │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0>
          │                            │    │        │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │                            │    │        └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          │                            │    └ <starlette.requests.Request object at 0x0000021F0B555010>
          │                            └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040>
          └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5642C0>
          │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420>
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl...
          └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
                     │ └ <starlette.requests.Request object at 0x0000021F0B555010>
                     └ <function get_request_handler.<locals>.app at 0x0000021F0B1939C0>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                         └ <function run_endpoint_function at 0x0000021EAF635A80>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
                 │         │      └ {'user': UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='ad...
                 │         └ <function chat_completion at 0x0000021F0B192200>
                 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\main.py", line 1043, in chat_completion
    form_data, metadata, events = await process_chat_payload(
    │          │                        └ <function process_chat_payload at 0x0000021ED9B4D1C0>
    │          └ {'user_id': '5f8f77dd-4631-4872-9755-8a4b4ce82d67', 'chat_id': '72f388c2-48e6-434e-b4c3-172449792a62', 'message_id': '1a76dd8...
    └ {'stream': True, 'model': 'gemma3:latest', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roma...
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 736, in process_chat_payload
    form_data = await chat_web_search_handler(
                      └ <function chat_web_search_handler at 0x0000021ED9B2B4C0>
> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 341, in chat_web_search_handler
    results = await process_web_search(
                    └ <function process_web_search at 0x0000021ED77C9620>
  File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1481, in process_web_search
    raise HTTPException(
          └ <class 'fastapi.exceptions.HTTPException'>

fastapi.exceptions.HTTPException: 400: [ERROR: 'NoneType' object is not iterable]

Additional Information

I am using gemma3:4B model which is working perfectly!

Originally created by @ghost on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11721 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.5.20 ### Ollama Version (if applicable) _No response_ ### Operating System Windows 11 Home ### Browser (if applicable) Microsoft Edge ### 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 listed steps to reproduce the bug in detail. ### Expected Behavior Returns the web search results as expected. ### Actual Behavior Shows "no search results found". ### Steps to Reproduce 1. Enable web search and ask model something. 2. Wait for model to finish searching. 3. Check the response. ### Logs & Screenshots open-webui logs: ``` 2025-03-15 17:42:04.797 | INFO | open_webui.routers.retrieval:process_web_search:1417 - trying to web search with ('serpapi', 'Roman Empire unusual uses') - {} 2025-03-15 17:42:07.083 | INFO | open_webui.retrieval.web.serpapi:search_serpapi:36 - results from serpapi search: {'search_metadata': {'id': '67d56e9a051e092ff518922e', 'status': 'Success', 'json_endpoint': 'https://serpapi.com/searches/0238cc71133c7af9/67d56e9a051e092ff518922e.json', 'created_at': '2025-03-15 12:12:10 UTC', 'processed_at': '2025-03-15 12:12:10 UTC', "SOME URLS"}}} - {} Fetching pages: 100%|####################################################################| 9/9 [00:03<00:00, 2.53it/s] 2025-03-15 17:42:12.126 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:782 - save_docs_to_vector_db: document What were some weird Roman traditions? - Quora, What are the strangest aspects of life in the Roman Empire? - Quora, What did the Romans do for us? | English Heritage , Reddit - Heart of the internet, 22 Fascinating Facts About the Roman Empire , Ancient Roman technology - Wikipedia, 10 inventions to thank the Roman Empire for | Gray Line - I Love Rome, Traces of Ancient Rome in the Modern World, 10 Innovations That Built Ancient Rome | HISTORY web-search-b61a2ffee57ce960195db50dfd674a5e6381d929764c8cff6bb4 - {} 2025-03-15 17:42:12.492 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:865 - adding to collection web-search-b61a2ffee57ce960195db50dfd674a5e6381d929764c8cff6bb4 - {} 2025-03-15 17:42:12.685 | ERROR | open_webui.retrieval.utils:generate_ollama_batch_embeddings:618 - Error generating ollama batch embeddings: 404 Client Error: Not Found for url: http://localhost:11434/api/embed - {} Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1002, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x0000021EAAFFBA60> └ <WorkerThread(AnyIO worker thread, started 16196)> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1045, in _bootstrap_inner self.run() │ └ <function WorkerThread.run at 0x0000021F0B335A80> └ <WorkerThread(AnyIO worker thread, started 16196)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ ��� <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x0000021F0B2245C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db embeddings = embedding_function( └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) │ │ │ │ └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0> │ │ │ └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro... │ │ └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... │ └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940> └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 330, in generate_multiple func(query[i : i + embedding_batch_size], user=user) │ │ │ │ │ └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro... │ │ │ │ └ 1 │ │ │ └ 0 │ │ └ 0 │ └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 316, in <lambda> func = lambda query, user=None: generate_embeddings( │ └ <function generate_embeddings at 0x0000021ED7784400> └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 629, in generate_embeddings embeddings = generate_ollama_batch_embeddings( └ <function generate_ollama_batch_embeddings at 0x0000021ED77842C0> > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 610, in generate_ollama_batch_embeddings r.raise_for_status() │ └ <function Response.raise_for_status at 0x0000021EAF1E5440> └ <Response [404]> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) │ │ └ <Response [404]> │ └ '404 Client Error: Not Found for url: http://localhost:11434/api/embed' └ <class 'requests.exceptions.HTTPError'> requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:11434/api/embed 2025-03-15 17:42:13.317 | ERROR | open_webui.routers.retrieval:save_docs_to_vector_db:904 - 'NoneType' object is not iterable - {} Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1002, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x0000021EAAFFBA60> └ <WorkerThread(AnyIO worker thread, started 16196)> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1045, in _bootstrap_inner self.run() │ └ <function WorkerThread.run at 0x0000021F0B335A80> └ <WorkerThread(AnyIO worker thread, started 16196)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x0000021F0B2245C0> > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db embeddings = embedding_function( └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) │ │ │ │ └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0> │ │ │ └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro... │ │ └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... │ └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940> └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple embeddings.extend( │ └ <method 'extend' of 'list' objects> └ [] TypeError: 'NoneType' object is not iterable 2025-03-15 17:42:13.317 | ERROR | open_webui.routers.retrieval:process_web_search:1480 - 'NoneType' object is not iterable - {} Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\open-webui.exe\__main__.py", line 7, in <module> sys.exit(app()) │ │ └ <typer.main.Typer object at 0x0000021EAB203F50> │ └ <built-in function exit> └ <module 'sys' (built-in)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 322, in __call__ return get_command(self)(*args, **kwargs) │ │ │ └ {} │ │ └ () │ └ <typer.main.Typer object at 0x0000021EAB203F50> └ <function get_command at 0x0000021EABC41B20> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1161, in __call__ return self.main(*args, **kwargs) │ │ │ └ {} │ │ └ () │ └ <function TyperGroup.main at 0x0000021EABC16520> └ <TyperGroup > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 740, in main return _main( └ <function _main at 0x0000021EABC15760> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 195, in _main rv = self.invoke(ctx) │ │ └ <click.core.Context object at 0x0000021EAE0ADF90> │ └ <function MultiCommand.invoke at 0x0000021EAB4EBB00> └ <TyperGroup > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1697, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) │ │ │ │ └ <click.core.Context object at 0x0000021EABB88090> │ │ │ └ <function Command.invoke at 0x0000021EAB4EB4C0> │ │ └ <TyperCommand serve> │ └ <click.core.Context object at 0x0000021EABB88090> └ <function MultiCommand.invoke.<locals>._process_result at 0x0000021EAE0A0680> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1443, in invoke return ctx.invoke(self.callback, **ctx.params) │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080} │ │ │ │ └ <click.core.Context object at 0x0000021EABB88090> │ │ │ └ <function serve at 0x0000021EAE0A04A0> │ │ └ <TyperCommand serve> │ └ <function Context.invoke at 0x0000021EAB4E9E40> └ <click.core.Context object at 0x0000021EABB88090> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 788, in invoke return __callback(*args, **kwargs) │ └ {'host': '0.0.0.0', 'port': 8080} └ () File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 697, in wrapper return callback(**use_params) │ └ {'host': '0.0.0.0', 'port': 8080} └ <function serve at 0x0000021EABEB67A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\__init__.py", line 77, in serve uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*") │ │ │ │ │ │ └ 8080 │ │ │ │ │ └ '0.0.0.0' │ │ │ │ └ <fastapi.applications.FastAPI object at 0x0000021ED9CD4910> │ │ │ └ <module 'open_webui.main' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p... │ │ └ <module 'open_webui' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Lo... │ └ <function run at 0x0000021EABEB6700> └ <module 'uvicorn' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Local... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\main.py", line 579, in run server.run() │ └ <function Server.run at 0x0000021EABEB6980> └ <uvicorn.server.Server object at 0x0000021F0B153010> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) │ │ │ │ └ None │ │ │ └ <function Server.serve at 0x0000021EABEB6A20> │ │ └ <uvicorn.server.Server object at 0x0000021F0B153010> │ └ <function run at 0x0000021EABD11120> └ <module 'asyncio' from 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\\... File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 190, in run return runner.run(main) │ │ └ <coroutine object Server.serve at 0x0000021EF325EA70> │ └ <function Runner.run at 0x0000021EABD87E20> └ <asyncio.runners.Runner object at 0x0000021EF351A650> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Py... │ │ └ <function BaseEventLoop.run_until_complete at 0x0000021EABD85A80> │ └ <ProactorEventLoop running=True closed=False debug=False> └ <asyncio.runners.Runner object at 0x0000021EF351A650> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 641, in run_until_complete self.run_forever() │ └ <function ProactorEventLoop.run_forever at 0x0000021EABDF2AC0> └ <ProactorEventLoop running=True closed=False debug=False> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 608, in run_forever self._run_once() │ └ <function BaseEventLoop._run_once at 0x0000021EABD877E0> └ <ProactorEventLoop running=True closed=False debug=False> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 1936, in _run_once handle._run() │ └ <function Handle._run at 0x0000021EABD0C680> └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 84, in _run self._context.run(self._callback, *self._args) │ │ │ │ │ └ <member '_args' of 'Handle' objects> │ │ │ │ └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> │ │ │ └ <member '_callback' of 'Handle' objects> │ │ └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> │ └ <member '_context' of 'Handle' objects> └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\base.py", line 140, in coro await self.app(scope, receive_or_disconnect, send_no_error) │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0> └ <open_webui.main.RedirectMiddleware object at 0x0000021F0B231750> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980> │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ │ │ └ <starlette.requests.Request object at 0x0000021F0B3DA290> │ │ └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0> └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>> └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <function Route.handle at 0x0000021EAF5FFC40> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <function request_response.<locals>.app at 0x0000021F0B193E20> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ │ └ <starlette.requests.Request object at 0x0000021F0B555010> │ └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040> └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5642C0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 73, in app response = await f(request) │ └ <starlette.requests.Request object at 0x0000021F0B555010> └ <function get_request_handler.<locals>.app at 0x0000021F0B1939C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( └ <function run_endpoint_function at 0x0000021EAF635A80> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 212, in run_endpoint_function return await dependant.call(**values) │ │ └ {'user': UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='ad... │ └ <function chat_completion at 0x0000021F0B192200> └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\main.py", line 1043, in chat_completion form_data, metadata, events = await process_chat_payload( │ │ └ <function process_chat_payload at 0x0000021ED9B4D1C0> │ └ {'user_id': '5f8f77dd-4631-4872-9755-8a4b4ce82d67', 'chat_id': '72f388c2-48e6-434e-b4c3-172449792a62', 'message_id': '1a76dd8... └ {'stream': True, 'model': 'gemma3:latest', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roma... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 736, in process_chat_payload form_data = await chat_web_search_handler( └ <function chat_web_search_handler at 0x0000021ED9B2B4C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 341, in chat_web_search_handler results = await process_web_search( └ <function process_web_search at 0x0000021ED77C9620> > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1464, in process_web_search await run_in_threadpool( └ <function run_in_threadpool at 0x0000021EAF2C1DA0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) │ │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ │ └ <function run_sync at 0x0000021EABF2B880> │ └ <module 'anyio.to_thread' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p... └ <module 'anyio' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCa... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( └ <function get_async_backend at 0x0000021EABF2B100> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread return await future └ <Future finished exception=TypeError("'NoneType' object is not iterable")> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x0000021F0B2245C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 905, in save_docs_to_vector_db raise e File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db embeddings = embedding_function( └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) │ │ │ │ └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0> │ │ │ └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro... │ │ └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... │ └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940> └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple embeddings.extend( │ └ <method 'extend' of 'list' objects> └ [] TypeError: 'NoneType' object is not iterable 2025-03-15 17:42:14.084 | ERROR | open_webui.utils.middleware:chat_web_search_handler:376 - 400: [ERROR: 'NoneType' object is not iterable] - {} Traceback (most recent call last): File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1464, in process_web_search await run_in_threadpool( └ <function run_in_threadpool at 0x0000021EAF2C1DA0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) │ │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ │ └ <function run_sync at 0x0000021EABF2B880> │ └ <module 'anyio.to_thread' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p... └ <module 'anyio' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCa... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( └ <function get_async_backend at 0x0000021EABF2B100> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread return await future └ <Future finished exception=TypeError("'NoneType' object is not iterable")> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\anyio\_backends\_asyncio.py", line 962, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function save_docs_to_vector_db at 0x0000021ED7784360>, <starlette.requests.Request object at 0x0000021F0B... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x0000021F0B2245C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 905, in save_docs_to_vector_db raise e File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 883, in save_docs_to_vector_db embeddings = embedding_function( └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B4D93A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 336, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) │ │ │ │ └ <function get_embedding_function.<locals>.<lambda> at 0x0000021F0B52B2E0> │ │ │ └ UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='admin', pro... │ │ └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... │ └ <function get_embedding_function.<locals>.generate_multiple at 0x0000021F0B4D9940> └ ['Traces of Ancient Rome in the Modern WorldEducationSign InMenuDonateARTICLEleveledARTICLEleveledTraces of Ancient Rome in t... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\retrieval\utils.py", line 329, in generate_multiple embeddings.extend( │ └ <method 'extend' of 'list' objects> └ [] TypeError: 'NoneType' object is not iterable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\open-webui.exe\__main__.py", line 7, in <module> sys.exit(app()) │ │ └ <typer.main.Typer object at 0x0000021EAB203F50> │ └ <built-in function exit> └ <module 'sys' (built-in)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 322, in __call__ return get_command(self)(*args, **kwargs) │ │ │ └ {} │ │ └ () │ └ <typer.main.Typer object at 0x0000021EAB203F50> └ <function get_command at 0x0000021EABC41B20> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1161, in __call__ return self.main(*args, **kwargs) │ │ │ └ {} │ │ └ () │ └ <function TyperGroup.main at 0x0000021EABC16520> └ <TyperGroup > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 740, in main return _main( └ <function _main at 0x0000021EABC15760> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\core.py", line 195, in _main rv = self.invoke(ctx) │ │ └ <click.core.Context object at 0x0000021EAE0ADF90> │ └ <function MultiCommand.invoke at 0x0000021EAB4EBB00> └ <TyperGroup > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1697, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) │ │ │ │ └ <click.core.Context object at 0x0000021EABB88090> │ │ │ └ <function Command.invoke at 0x0000021EAB4EB4C0> │ │ └ <TyperCommand serve> │ └ <click.core.Context object at 0x0000021EABB88090> └ <function MultiCommand.invoke.<locals>._process_result at 0x0000021EAE0A0680> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1443, in invoke return ctx.invoke(self.callback, **ctx.params) │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080} │ │ │ │ └ <click.core.Context object at 0x0000021EABB88090> │ │ │ └ <function serve at 0x0000021EAE0A04A0> │ │ └ <TyperCommand serve> │ └ <function Context.invoke at 0x0000021EAB4E9E40> └ <click.core.Context object at 0x0000021EABB88090> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 788, in invoke return __callback(*args, **kwargs) │ └ {'host': '0.0.0.0', 'port': 8080} └ () File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\typer\main.py", line 697, in wrapper return callback(**use_params) │ └ {'host': '0.0.0.0', 'port': 8080} └ <function serve at 0x0000021EABEB67A0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\__init__.py", line 77, in serve uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_allow_ips="*") │ │ │ │ │ │ └ 8080 │ │ │ │ │ └ '0.0.0.0' │ │ │ │ └ <fastapi.applications.FastAPI object at 0x0000021ED9CD4910> │ │ │ └ <module 'open_webui.main' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p... │ │ └ <module 'open_webui' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Lo... │ └ <function run at 0x0000021EABEB6700> └ <module 'uvicorn' from 'C:\\Users\\shahh\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\Local... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\main.py", line 579, in run server.run() │ └ <function Server.run at 0x0000021EABEB6980> └ <uvicorn.server.Server object at 0x0000021F0B153010> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) │ │ │ │ └ None │ │ │ └ <function Server.serve at 0x0000021EABEB6A20> │ │ └ <uvicorn.server.Server object at 0x0000021F0B153010> │ └ <function run at 0x0000021EABD11120> └ <module 'asyncio' from 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\\... File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 190, in run return runner.run(main) │ │ └ <coroutine object Server.serve at 0x0000021EF325EA70> │ └ <function Runner.run at 0x0000021EABD87E20> └ <asyncio.runners.Runner object at 0x0000021EF351A650> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Py... │ │ └ <function BaseEventLoop.run_until_complete at 0x0000021EABD85A80> │ └ <ProactorEventLoop running=True closed=False debug=False> └ <asyncio.runners.Runner object at 0x0000021EF351A650> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 641, in run_until_complete self.run_forever() │ └ <function ProactorEventLoop.run_forever at 0x0000021EABDF2AC0> └ <ProactorEventLoop running=True closed=False debug=False> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 608, in run_forever self._run_once() │ └ <function BaseEventLoop._run_once at 0x0000021EABD877E0> └ <ProactorEventLoop running=True closed=False debug=False> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 1936, in _run_once handle._run() │ └ <function Handle._run at 0x0000021EABD0C680> └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 84, in _run self._context.run(self._callback, *self._args) │ │ │ │ │ └ <member '_args' of 'Handle' objects> │ │ │ │ └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> │ │ │ └ <member '_callback' of 'Handle' objects> │ │ └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> │ └ <member '_context' of 'Handle' objects> └ <Handle Task.task_wakeup(<Future finis...ot iterable")>)> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\base.py", line 140, in coro await self.app(scope, receive_or_disconnect, send_no_error) │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0> └ <open_webui.main.RedirectMiddleware object at 0x0000021F0B231750> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000021F0B52A980> │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ │ │ └ <starlette.requests.Request object at 0x0000021F0B3DA290> │ │ └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000021EF352D5D0> └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10>> └ <fastapi.routing.APIRouter object at 0x0000021ED9CD4D10> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <function Route.handle at 0x0000021EAF5FFC40> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ └ <function request_response.<locals>.app at 0x0000021F0B193E20> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5640E0> │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... │ │ └ <starlette.requests.Request object at 0x0000021F0B555010> │ └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040> └ <function wrap_app_handling_exceptions at 0x0000021EAF5FE700> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000021F0B5642C0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000021F0B52B420> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8080), 'cl... └ <function request_response.<locals>.app.<locals>.app at 0x0000021F0B564040> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\starlette\routing.py", line 73, in app response = await f(request) │ └ <starlette.requests.Request object at 0x0000021F0B555010> └ <function get_request_handler.<locals>.app at 0x0000021F0B1939C0> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( └ <function run_endpoint_function at 0x0000021EAF635A80> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastapi\routing.py", line 212, in run_endpoint_function return await dependant.call(**values) │ │ └ {'user': UserModel(id='5f8f77dd-4631-4872-9755-8a4b4ce82d67', name='Harshit Shah', email='shahharshit063@gmail.com', role='ad... │ └ <function chat_completion at 0x0000021F0B192200> └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\main.py", line 1043, in chat_completion form_data, metadata, events = await process_chat_payload( │ │ └ <function process_chat_payload at 0x0000021ED9B4D1C0> │ └ {'user_id': '5f8f77dd-4631-4872-9755-8a4b4ce82d67', 'chat_id': '72f388c2-48e6-434e-b4c3-172449792a62', 'message_id': '1a76dd8... └ {'stream': True, 'model': 'gemma3:latest', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roma... File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 736, in process_chat_payload form_data = await chat_web_search_handler( └ <function chat_web_search_handler at 0x0000021ED9B2B4C0> > File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\utils\middleware.py", line 341, in chat_web_search_handler results = await process_web_search( └ <function process_web_search at 0x0000021ED77C9620> File "C:\Users\shahh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\open_webui\routers\retrieval.py", line 1481, in process_web_search raise HTTPException( └ <class 'fastapi.exceptions.HTTPException'> fastapi.exceptions.HTTPException: 400: [ERROR: 'NoneType' object is not iterable] ``` ### Additional Information I am using gemma3:4B model which is working perfectly!
GiteaMirror added the bug label 2026-04-19 22:16:52 -05:00
Author
Owner

@Classic298 commented on GitHub (Mar 15, 2025):

Hm. Please go into admin panel > documents and check if you can download the embedding model. Click on the download button to see if it works

<!-- gh-comment-id:2726532828 --> @Classic298 commented on GitHub (Mar 15, 2025): Hm. Please go into admin panel > documents and check if you can download the embedding model. Click on the download button to see if it works
Author
Owner

@ghost commented on GitHub (Mar 15, 2025):

Hello, I cannot find any download button. Screenshot attached.

Image

<!-- gh-comment-id:2726572221 --> @ghost commented on GitHub (Mar 15, 2025): Hello, I cannot find any download button. Screenshot attached. ![Image](https://github.com/user-attachments/assets/64ba8b38-ef50-4528-9afa-82000427e502)
Author
Owner

@Classic298 commented on GitHub (Mar 15, 2025):

Oh. You use ollama not sentence transformer. Change to sentence transformer and check if the download works please.

<!-- gh-comment-id:2726609947 --> @Classic298 commented on GitHub (Mar 15, 2025): Oh. You use ollama not sentence transformer. Change to sentence transformer and check if the download works please.
Author
Owner

@ghost commented on GitHub (Mar 15, 2025):

Okay, I changed to sentence transformer and it works, but why does the ollama not work?

<!-- gh-comment-id:2726659284 --> @ghost commented on GitHub (Mar 15, 2025): Okay, I changed to sentence transformer and it works, but why does the ollama not work?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16331