mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #11745] issue: Evaluations/leaderboards page & API endpoint slow due to profile_image_url and backgroundImageUrl #55007
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 @lumitry on GitHub (Mar 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11745
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Server on Ubuntu 22.04, webui hosted via Docker
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
As an admin user, loading the page
(open-webui base URL)/admin/evaluationsshould respond quickly.The API endpoint for evaluations/feedbacks (
/api/v1/evaluations/feedbacks/all) should (most likely) not include extraneous information such as every last one of the user's settings.Actual Behavior
It can take many minutes to load, sometimes north of 15 minutes, depending on the connection speed to the server.
If the relevant API endpoint (
/api/v1/evaluations/feedbacks/all; requires bearer token) is GET requested, we can see the problem: every feedback object (from what I can tell) includes both the profile image (profile_image_url) and background image (backgroundImageUrl) as base64 encoded strings:There is a lot of seemingly extraneous data included in the response, but the biggest waste of data is by far the background image URL. That said, the profile image URL also doesn't need to be sent multiple times, nor does it need to be in this query from what I can tell. Evaluations (as displayed on the admin page) include the profile image, but there ought to be far more efficient (and less redundant) ways of fetching it.
Steps to Reproduce
/admin/evaluations) and wait for it to load—the issue here is the load times. Alternatively, for a better view of the problem, send a GET request to the/api/v1/evaluations/feedbacks/allendpoint (including a valid admin bearer token). The response includes theprofile_image_urlandbackgroundImageUrlvalues multiple times as described in the "Actual Behavior" section, wasting a large amount of bandwidth every time this page/endpoint is hit.Logs & Screenshots
Browser console (nothing too relevant?):
Docker container logs:
Additional Information
I'm using Tailscale. That shouldn't change anything about the curl response, but it might be part of why loading the evaluations page is so slow even after I remove my profile and BG images, especially since it means I've had to do a few weird things to get my Docker container to see the URL of the device I'm running Ollama with.
@stevessr commented on GitHub (Mar 21, 2025):
for me about this ... there is no options for me to change url in the frontend.
and of cause , knowledge ibribries save their own referrence to the owener.
a temp method is to reset it in the database
one thing to optimise is to remove knowledge from models endpoint
@i-iooi-i commented on GitHub (Mar 22, 2025):
Thank you for this question, I spent a lot of time troubleshooting, and finally I know why the loading speed is slow, it turns out that the background image is added.
@tjbck commented on GitHub (Mar 31, 2025):
Addressed with
d55735dc1e@GrayXu commented on GitHub (Apr 8, 2025):
This commit likely didn't fix the issue.
Opening the dialogue page now triggers excessive
profile_image_urlrequests from v1/models to fetch each model's image. Instead of using base64, these requests should point to a static image URL (ideally served via CDN). This would avoid repeatedly requesting the same images and significantly reduce network traffic.