[GH-ISSUE #13665] feat: Support for .ignore-style file to exclude files/folders from knowledge source indexing #136715

Closed
opened 2026-05-25 05:12:42 -05:00 by GiteaMirror · 0 comments
Owner

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

  • I have searched the existing issues and discussions.

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

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 - [x] I have searched the existing issues and discussions. ### 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_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#136715