mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #18666] feat: Update knowledge files sync #47924
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/18666
Author: @Stoyan-Zlatev
Created: 10/27/2025
Status: 🔄 Open
Base:
dev← Head:feature/knowledge-sync-button📝 Commits (10+)
d3acc2bUpdate Knowledge directory sync process5ec7450Update sync confirmation text950a859Update endpoint name2c5bec6Revert endpoint name735619fReformat long log line60a8a6eReformat log line using black/pre-commit3e576aeMerge branch 'dev' into feature/knowledge-sync-buttonaaef753Reformat40f38daUpdate translation.jsonb0a16ebrefac: update spacing in UserMenu dropdown items📊 Changes
4 files changed (+428 additions, -32 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+61 -0)➕
backend/open_webui/utils/knowledge_sync.py(+221 -0)📝
src/lib/apis/knowledge/index.ts(+42 -2)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+104 -30)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
api/v1/knowledge/{id}/file/syncendpoint to enable efficient, hash-based file synchronization for knowledge collections.api/v1/knowledge/{id}/resetendpoint remains available for backward compatibility to prevent breaking existing tools or scripts.Added
POST /api/v1/knowledge/{id}/file/syncChanged
/file/syncendpoint instead of/resetfor more efficient updates.Deprecated
api/v1/knowledge/{id}/resetendpoint is now considered legacy for sync operations.Removed
Fixed
Security
Breaking Changes
/resetendpoint remains functional for any existing integrations.Additional Information
hashfield in file metadata (api/v1/knowledge/{id}).Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.