mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #11822] issue: Bug by open citations / context pop up using files (with the usage of reranking models) #136094
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @etlstrauss on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11822
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.19 and v0.5.20
Ollama Version (if applicable)
0.6.1
Operating System
Ubuntu 24.04.2 LTS and Debian GNU/Linux 12 (bookworm)
Browser (if applicable)
Firefox 136.0.1 and Chrome 134.0.6998.35
Confirmation
README.md.Expected Behavior
By using knowledge bases or direct file upload, the interface provides (at the bottom of the messages) a link to the used context and specific data. This button should open a pop up dialogue with this informations.
Actual Behavior
By clicking on the button an error occurred an the whole interface freezes. No pop up dialogue will be opened.
Steps to Reproduce
Logs & Screenshots
Additional Information
Since i already understood the problem, no docker logs are included.
Like shown in the error log the function n[9].distance.toFixed(4) caused this problem. This will be triggered by
{document.distance.toFixed(4)}in "CitationsModal.svelte" (line 135), based onMessages.D-mnE1G1.js(in Open WebUI version v0.5.20).By adding breakpoints (in
Messages.D-mnE1G1.js) I noticed, that by using rerank models n[9].distance will be a array of floats and looks similar to n[9].metadata.score. Without a rerank model it is just a float. And the toFixed function is not usable on arrays.Possible solutions:
→ check the dtype of n[9].distance → run .toFixed directly or in loop
or
→ just directly change the dtype to an array
@tjbck commented on GitHub (Apr 3, 2025):
Could you confirm this has been addressed with the latest release?
@etlstrauss commented on GitHub (Apr 3, 2025):
Unfortunately, the error still exists. Although it now reads ‘TypeError: (intermediate value).toFixed is not a function’, it still seems to be triggered by ‘CitationsModal.svelte’. I'll have a closer look tomorrow and let you know then.
Perhaps as a note: I have only tested this on Ubuntu 24.04 with Firefox today. I also use the current Open WebUI cuda docker image as a basis, with a few customization. Current Open WebUI version is 0.6.0.
If you need some other information, logs or screenshots, let me know.
@tjbck commented on GitHub (Apr 7, 2025):
Might be addressed with the latest dev!
@etlstrauss commented on GitHub (Apr 7, 2025):
Unfortunately, the problem does not seem to have been solved yet. I tested it again today with the latest dev-cuda image (sha256:4f7b3ad402dc38b808db78a2288382e40605b6f2fe7b8d618088997a645e5a4e) (Open WebUI version 0.6.2). However, the error has only moved from line 135 in CitationsModal.svelte to line 139. This is probably due to the user settings of the frontend.
Otherwise, the problem is probably still that in the file ‘to.Fixed’ is applied to an array.
@tjbck commented on GitHub (Apr 13, 2025):
Might be addressed in dev again, testing wanted here!
@etlstrauss commented on GitHub (Apr 15, 2025):
@tjbck Unfortunately I closed this issue by miss clicking. Please reopen it.
I now testet latests images cuda (
sha256:b768633c723f01a2d566d090710a853f39c569c362b913476dfe4977addd613e), dev (sha256:876998b35257d1f399b56aa34d2f0783b25f51e1e8a02838c3147a468a87e4d4) and dev-cuda (sha256:b816f34eeae54d16a1d6e3dca2ad83fd0f8d98b49a5cb16b09c1c9c203476dd5). But in no version the failure was fixed.
@tjbck commented on GitHub (Apr 20, 2025):
Might be addressed in dev!
@etlstrauss commented on GitHub (Apr 22, 2025):
I tested the latest image based on dev and it seems to function. The pop-up will be opened without failure. However, the problem is now, that the relevance will not be monitored. The space under the “Relevance” heading in the pop-up is empty.
Since the problem itself is solved I suggest to close this issue and create a new one, when you agree @tjbck ?