[GH-ISSUE #20552] issue: Retrieval: list index out of range #34749

Closed
opened 2026-04-25 08:53:30 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @outis151 on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20552

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.7.1

Ollama Version (if applicable)

v0.13.5

Operating System

Debian 13

Browser (if applicable)

Chromium 143.0

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Web search tool should correctly embed and retrieve webpages.

Actual Behavior

Web search never completes

Steps to Reproduce

Use the web search tool with the ollama embedding model engine.

Documents retrieval settings:
Image

Web search retrieval settings:

Image

Logs & Screenshots

2026-01-10 12:44:57.693 | INFO     | open_webui.routers.retrieval:save_docs_to_vector_db:1549 - embeddings generated 251 for 264 items
2026-01-10 12:44:57.700 | ERROR    | open_webui.routers.retrieval:save_docs_to_vector_db:1570 - list index out of range
Traceback (most recent call last):

  File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x7f8c3be78ae0>
    └ <WorkerThread(AnyIO worker thread, started 140238037092032)>
  File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
    │    └ <function WorkerThread.run at 0x7f8bb9dfda80>
    └ <WorkerThread(AnyIO worker thread, started 140238037092032)>
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 986, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   ��� functools.partial(<function save_docs_to_vector_db at 0x7f8bbc925120>, <starlette.requests.Request object at 0x7f8bf7b0d150>,...
             │       └ <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0x7f8bb70bd380>

> File "/app/backend/open_webui/routers/retrieval.py", line 1551, in save_docs_to_vector_db
    items = [

  File "/app/backend/open_webui/routers/retrieval.py", line 1555, in <listcomp>
    "vector": embeddings[idx],
              │          └ 251
              └ [[-0.026885903, 0.041195903, -0.18041055, -0.053807843, 0.0415793, -0.017290723, 0.003011665, 0.02981479, -0.0051154774, -0.0...

IndexError: list index out of range

Additional Information

The same error appears for the Documents embedding but there it can be fixed by disabling Async Embedding Processing. For the Webpage embedding there is no such option.

Originally created by @outis151 on GitHub (Jan 10, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20552 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.7.1 ### Ollama Version (if applicable) v0.13.5 ### Operating System Debian 13 ### Browser (if applicable) Chromium 143.0 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Web search tool should correctly embed and retrieve webpages. ### Actual Behavior Web search never completes ### Steps to Reproduce Use the web search tool with the ollama embedding model engine. Documents retrieval settings: <img width="1474" height="445" alt="Image" src="https://github.com/user-attachments/assets/fe199b8f-6f71-47f8-b296-d4e056dcb7af" /> Web search retrieval settings: <img width="1654" height="860" alt="Image" src="https://github.com/user-attachments/assets/001ef76e-3b68-4866-99ec-2f25153882d3" /> ### Logs & Screenshots ``` 2026-01-10 12:44:57.693 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1549 - embeddings generated 251 for 264 items 2026-01-10 12:44:57.700 | ERROR | open_webui.routers.retrieval:save_docs_to_vector_db:1570 - list index out of range Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x7f8c3be78ae0> └ <WorkerThread(AnyIO worker thread, started 140238037092032)> File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() │ └ <function WorkerThread.run at 0x7f8bb9dfda80> └ <WorkerThread(AnyIO worker thread, started 140238037092032)> File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 986, in run result = context.run(func, *args) │ │ │ └ () │ │ ��� functools.partial(<function save_docs_to_vector_db at 0x7f8bbc925120>, <starlette.requests.Request object at 0x7f8bf7b0d150>,... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x7f8bb70bd380> > File "/app/backend/open_webui/routers/retrieval.py", line 1551, in save_docs_to_vector_db items = [ File "/app/backend/open_webui/routers/retrieval.py", line 1555, in <listcomp> "vector": embeddings[idx], │ └ 251 └ [[-0.026885903, 0.041195903, -0.18041055, -0.053807843, 0.0415793, -0.017290723, 0.003011665, 0.02981479, -0.0051154774, -0.0... IndexError: list index out of range ``` ### Additional Information The same error appears for the Documents embedding but there it can be fixed by disabling `Async Embedding Processing`. For the Webpage embedding there is no such option.
GiteaMirror added the bug label 2026-04-25 08:53:30 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 10, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #20327 issue: Unable to use any Open WebUI version newer than 0.6.25 due to hybrid search performance
    by galvanoid • Jan 02, 2026 • bug

  2. #18187 issue: [BUG] Retrieval Error IndexError
    by Schwenn2002 • Oct 09, 2025 • bug

  3. #19429 issue: user list wrong count and less than 30 items per page
    by destination-one • Nov 24, 2025 • bug

  4. #19496 issue: 500 internal server error appears in v0.6.40
    by cloudtuotuo • Nov 26, 2025 • bug

  5. #19755 issue: Error: 404, message='Not Found', url='http://ollama:11434/api/embed'
    by stevewillett • Dec 04, 2025 • bug

Show 5 more related issues
  1. #19417 issue: v0.6.37 SQL Error
    by AKHYP • Nov 24, 2025 • bug

  2. #19438 issue: Icon loading regression
    by JoelShepard • Nov 24, 2025 • bug

  3. #19047 issue: followup questions sometimes fail to generate
    by avidwriter • Nov 08, 2025 • bug

  4. #19752 issue: minor UI Bug: knowledge sharing
    by mahenning • Dec 04, 2025 • bug, confirmed issue

  5. #19987 issue: There is a lack of visual consistency between the home page and the chat interface.
    by i-iooi-i • Dec 16, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3732866675 --> @owui-terminator[bot] commented on GitHub (Jan 10, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#20327](https://github.com/open-webui/open-webui/issues/20327) **issue: Unable to use any Open WebUI version newer than 0.6.25 due to hybrid search performance** *by galvanoid • Jan 02, 2026 • `bug`* 2. [#18187](https://github.com/open-webui/open-webui/issues/18187) **issue: [BUG] Retrieval Error IndexError** *by Schwenn2002 • Oct 09, 2025 • `bug`* 3. [#19429](https://github.com/open-webui/open-webui/issues/19429) **issue: user list wrong count and less than 30 items per page** *by destination-one • Nov 24, 2025 • `bug`* 4. [#19496](https://github.com/open-webui/open-webui/issues/19496) **issue: 500 internal server error appears in v0.6.40** *by cloudtuotuo • Nov 26, 2025 • `bug`* 5. [#19755](https://github.com/open-webui/open-webui/issues/19755) **issue: Error: 404, message='Not Found', url='http://ollama:11434/api/embed'** *by stevewillett • Dec 04, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#19417](https://github.com/open-webui/open-webui/issues/19417) **issue: v0.6.37 SQL Error** *by AKHYP • Nov 24, 2025 • `bug`* 7. [#19438](https://github.com/open-webui/open-webui/issues/19438) **issue: Icon loading regression** *by JoelShepard • Nov 24, 2025 • `bug`* 8. [#19047](https://github.com/open-webui/open-webui/issues/19047) **issue: followup questions sometimes fail to generate** *by avidwriter • Nov 08, 2025 • `bug`* 9. [#19752](https://github.com/open-webui/open-webui/issues/19752) **issue: minor UI Bug: knowledge sharing** *by mahenning • Dec 04, 2025 • `bug`, `confirmed issue`* 10. [#19987](https://github.com/open-webui/open-webui/issues/19987) **issue: There is a lack of visual consistency between the home page and the chat interface.** *by i-iooi-i • Dec 16, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@Classic298 commented on GitHub (Jan 10, 2026):

Full document settings?

<!-- gh-comment-id:3732883810 --> @Classic298 commented on GitHub (Jan 10, 2026): Full document settings?
Author
Owner

@outis151 commented on GitHub (Jan 10, 2026):

Image
<!-- gh-comment-id:3732890841 --> @outis151 commented on GitHub (Jan 10, 2026): <img width="1652" height="1003" alt="Image" src="https://github.com/user-attachments/assets/c3bfab6d-a2fb-4cc5-959f-5be77f85a1ee" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34749