mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 03:03:27 -06:00
[GH-ISSUE #13665] feat: Support for .ignore-style file to exclude files/folders from knowledge source indexing #120299
Reference in New Issue
Block a user
Originally created by @craigopie-defcon on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13665
Check Existing Issues
Problem Description
I’d like to request support for an ignore file—similar to .gitignore—that can be placed at the root of a knowledge source folder to exclude specific files or directories from being indexed and embedded.
Use Case:
I use local Git repositories as knowledge sources. However, .git/, lock files, and other irrelevant build artifacts (e.g. package-lock.json, *.lock, *.tmp) are being embedded and polluting the context that the LLM receives. This results in lower-quality answers and increases processing time and vector database size unnecessarily.
Desired Solution you'd like
Allow a .webuiignore file in the root of each knowledge source.
Use the same syntax as .gitignore (globs, negations, etc.).
Ignore any files/folders matched by the patterns during indexing.
Alternatives Considered
No response
Additional Context
No response