[GH-ISSUE #10153] upload a file to the knowledge [ 400: Embedding dimension ] with 0.5.11 & 0.5.12 #135512

Closed
opened 2026-05-25 02:25:23 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @j820301 on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10153

Bug Report


Installation Method

[Docker compose]

Environment

  • Open WebUI Version: [0.5.12]

  • Ollama (if applicable): [0.5.7]

  • Operating System: [Ubuntu 24.04.2 LTS]

  • Browser (if applicable): [ Edge、Chrome]

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Description

Bug Summary:
[When I upload a file to the knowledge zone, an error occurs, [400: Embedding dimension]. This issue occurred after version 0.5.11 and still exists after updating to version 0.5.12.]

Reproduction Details

Steps to Reproduce:
[ Updated to 0.5.11 and 0.5.12, when I upload a file to the knowledge zone and select a non-default Embedding Model, an error occurs: [400: Embedding dimension]. ]

Logs and Screenshots

Screenshots/Screen Recordings (if applicable):

Image

Image

Additional Information

It's worth noting that this issue did not exist in version 0.5.10, and changing the Embedding Model to the default Sentence option also does not reproduce the problem. This issue only occurs in versions 0.5.11 and 0.5.12 when a non-default model is used.
Thank you again for the developers' hard work, and I hope this issue will be addressed. It's a problem that didn't exist before.

Originally created by @j820301 on GitHub (Feb 17, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10153 # Bug Report --- ## Installation Method [Docker compose] ## Environment - **Open WebUI Version:** [0.5.12] - **Ollama (if applicable):** [0.5.7] - **Operating System:** [Ubuntu 24.04.2 LTS] - **Browser (if applicable):** [ Edge、Chrome] **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [ ] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Description **Bug Summary:** [When I upload a file to the knowledge zone, an error occurs, [400: Embedding dimension]. This issue occurred after version 0.5.11 and still exists after updating to version 0.5.12.] ## Reproduction Details **Steps to Reproduce:** [ Updated to 0.5.11 and 0.5.12, when I upload a file to the knowledge zone and select a non-default Embedding Model, an error occurs: [400: Embedding dimension]. ] ## Logs and Screenshots **Screenshots/Screen Recordings (if applicable):** ![Image](https://github.com/user-attachments/assets/634ed973-b261-4104-8fa1-555b6a906aeb) ![Image](https://github.com/user-attachments/assets/38b4620d-8ab5-4304-a3de-95da7af55574) ## Additional Information It's worth noting that this issue did not exist in version 0.5.10, and changing the Embedding Model to the default Sentence option also does not reproduce the problem. This issue only occurs in versions 0.5.11 and 0.5.12 when a non-default model is used. Thank you again for the developers' hard work, and I hope this issue will be addressed. It's a problem that didn't exist before.
Author
Owner

@tjbck commented on GitHub (Feb 17, 2025):

If you update your embedding model you should reset/delete your existing knowledge.

<!-- gh-comment-id:2661912444 --> @tjbck commented on GitHub (Feb 17, 2025): If you update your embedding model you should reset/delete your existing knowledge.
Author
Owner

@j820301 commented on GitHub (Feb 17, 2025):

Thank you for the developer's prompt response, which perfectly solved my problem. Thank you again for your hard work.

<!-- gh-comment-id:2662064628 --> @j820301 commented on GitHub (Feb 17, 2025): Thank you for the developer's prompt response, which perfectly solved my problem. Thank you again for your hard work.
Author
Owner

@weicheng59 commented on GitHub (Feb 17, 2025):

anyway to keep existing knowledge after changing to a new embedding model?
do i need to manually upload files after reset?

<!-- gh-comment-id:2662778756 --> @weicheng59 commented on GitHub (Feb 17, 2025): anyway to keep existing knowledge after changing to a new embedding model? do i need to manually upload files after reset?
Author
Owner

@j820301 commented on GitHub (Feb 18, 2025):

I tried and it requires re-uploading the data, but if there's an update in the future that can automatically re-embed the knowledge base, that would be a great feature.

<!-- gh-comment-id:2664483391 --> @j820301 commented on GitHub (Feb 18, 2025): I tried and it requires re-uploading the data, but if there's an update in the future that can automatically re-embed the knowledge base, that would be a great feature.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#135512