mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #22698] feat: Expose Reranking via API Endpoint like /v1/rerank #58459
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 @JKratto on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22698
Check Existing Issues
Verify Feature Scope
Problem Description
Currently, Open WebUI allows the configuration and use of reranking models within the internal RAG. However, unlike embeddings and chat completions, there is no public API endpoint to access the configured reranker externally. While the model appears in the model list, it cannot be called through Open WebUI API.
Desired Solution you'd like
I would like to see a dedicated API endpoint (e.g., /v1/rerank or /api/rerank) that follows the de facto industry standard used by Cohere, vLLM etc. This would allow external tools and scripts to utilize the reranking models already configured in Open WebUI.
A similar gap was previously addressed for the embedding API (see #8719), and adding reranking support would improve the feature set for using Open WebUI as a unified model provider.
Alternatives Considered
Currently, the only way to use reranking is to proxy the API endpoint directly to the backend, bypassing Open WebUI.
Additional Context
No response