mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #24789] refactor: remove unused POST /retrieval/query/doc endpoint #115155
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24789
Author: @Classic298
Created: 5/15/2026
Status: 🔄 Open
Base:
dev← Head:remove-unused-retrieval-query-doc-endpoint📝 Commits (1)
739b79arefactor: remove unused POST /retrieval/query/doc endpoint📊 Changes
2 files changed (+0 additions, -103 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+0 -66)📝
src/lib/apis/retrieval/index.ts(+0 -37)📄 Description
The query-single-doc debug endpoint's only frontend wrapper, queryDoc in src/lib/apis/retrieval/index.ts, is dead: nothing imports or calls it, the route handler has no internal caller, and the path is referenced nowhere else. Removes the route handler, its exclusive QueryDocForm request model, and the dead wrapper. The shared RAG internals it wrapped (query_doc, query_doc_with_hybrid_search, _validate_collection_access) are untouched, as is the sibling /query/collection endpoint
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.