mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
Ignore some file types for knowledge directory sync #4102
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 @step21 on GitHub (Feb 24, 2025).
Feature Request
Is your feature request related to a problem? Please describe.
When adding large, heterogenuous knowledge bases such as Zotero folders, some files, like css and js files from website snapshots should never be indexed. They will only take up space and not contain any useful information. Due to the size of the folders, it is impractical to copy files one by one or delete them after.
Describe the solution you'd like
Either accept a list of file types to exclude, or alternatively support a .ragignore style file in the synced directory, like suggested here https://github.com/open-webui/open-webui/discussions/9051
Describe alternatives you've considered
Deleting files after the fact and copying files somewhere else first. Both of these have obvious drawbacks. Deleting files after the fact is very tedious and wastes time on import. Copying only relevant files somewhere else first would be faster, but would f.e. take up a lot of space and not be able to sync later.
Additional context
Add any other context or screenshots about the feature request here.