mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
enh: knowledge workspace redesign #2761
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 @tjbck on GitHub (Nov 22, 2024).
Originally assigned to: @tjbck on GitHub.
@Simon-Stone commented on GitHub (Jul 11, 2025):
@tjbck Can you elaborate on what you mean by this?
Is it related to this:
Every time the
/knowledgeand/knowledge/listendpoints are called, they check the presence of all files associated with all knowledges. For any non-trivial number of Knowledges and files, this scales very poorly and already takes many seconds for our test setup of 100 Knowledges.In
KnowledgeResponseandKnowledgeUserResponse, thefilesattribute is already marked asOptional. It would be a huge improvement to only trigger the file indexing/checking when the files are actually needed. To only list the existing Knowledges, there should be an option like/knowledge/list?get_files=falseor something similar so that the expensive file checks only occur when they are needed.Also, the Knowledge tab in the Workspace triggers a request against
/knowledgeand then eachKnowledgecomponent calls/knowledge/list(which has the same implementation). Wouldn't it make sense to makeknowledgeBasesa prop of theKnowledgecomponent that the Knowledge page can fill in to avoid that redundancy?