mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #16228] Reranker API integration sends incorrect document format to external backend #17831
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 @frost19k on GitHub (Aug 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16228
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.18
Ollama Version (if applicable)
No response
Operating System
Manjaro Linux
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
Open WebUI should POST a JSON object with
model,query,documents(list of strings), andtop_nfields to the reranker endpoint, matching the OpenAI style API, ensuring compatibility with external reranking backends like LocalAI or llama.cpp.Actual Behavior
The reranker endpoint receives a different format (such as a list of tuples or an unexpected structure), causing it to return a server error. Manual requests with the correct JSON succeed, but Open WebUI's requests fail due to a data shape mismatch.
Steps to Reproduce
Logs & Screenshots
See attached server logs from both Open WebUI and embeddings-api containers. Example error:
500 Server Error: Internal Server Error for url: http://embeddings-api:8080/v1/rerankOpen WebUI Logs
LocalAI Logs
Additional Information
@tjbck commented on GitHub (Aug 2, 2025):
It literally sends exactly that.
d5fd3b3600@frost19k commented on GitHub (Aug 2, 2025):
Ah. Okay, okay.
My mistake.
Clearly, then I am not seeing this error:
OWUI Logs
Even though I can manually curl the endpoint from inside the OWUI container.
There must be something wrong with my eyes. I'll go consult an ophthalmologist.