[GH-ISSUE #17699] issue: Generating embeddings two time for one file #33898

Closed
opened 2026-04-25 07:46:45 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @koddev on GitHub (Sep 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17699

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.30

Ollama Version (if applicable)

No response

Operating System

ubuntu 24

Browser (if applicable)

No response

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

expected behavior: generating embeddings one time for one file

Actual Behavior

I add a File to knowledge and log outputs:

2025-09-24 06:38:46.359 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1337 - generating embeddings for file-fff106c5-ba65-4547-b945-a2d42cce3261

2025-09-24 06:38:46.881 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1337 - generating embeddings for ac7f9458-5d2f-4e24-ad66-1b042ab71ff8

with same file, same content , two time inference for embedding.

Logs & Screenshots

Image

Additional Information

No response

Originally created by @koddev on GitHub (Sep 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17699 ### 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 am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.30 ### Ollama Version (if applicable) _No response_ ### Operating System ubuntu 24 ### Browser (if applicable) _No response_ ### 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 expected behavior: generating embeddings one time for one file ### Actual Behavior I add a File to knowledge and log outputs: 2025-09-24 06:38:46.359 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1337 - **generating embeddings** for file-fff106c5-ba65-4547-b945-a2d42cce3261 2025-09-24 06:38:46.881 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1337 - **generating embeddings** for ac7f9458-5d2f-4e24-ad66-1b042ab71ff8 with same file, same content , two time inference for embedding. ### Logs & Screenshots <img width="1223" height="241" alt="Image" src="https://github.com/user-attachments/assets/4ba741a3-0ce1-4ca5-9080-99b817136a43" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 07:46:45 -05:00
Author
Owner

@tjbck commented on GitHub (Sep 24, 2025):

Intended behaviour here, knowledge base might have different embedding parameters, with that being said we're open to reviewing PRs.

<!-- gh-comment-id:3328128387 --> @tjbck commented on GitHub (Sep 24, 2025): Intended behaviour here, knowledge base might have different embedding parameters, with that being said we're open to reviewing PRs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33898