mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #13479] [CLOSED] feat: Add Document Processing System #62066
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/13479
Author: @athoik
Created: 5/4/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
fecd2dbfeat: Add Document Processing System35a5d68feat: support context-aware document processors with full file metadata📊 Changes
2 files changed (+102 additions, -0 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+100 -0)📝
backend/open_webui/utils/plugin.py(+2 -0)📄 Description
Implements a configurable pipeline for transforming document content during the loading process.
Changes:
Added support for document function type in the plugin system Created prioritized processing pipeline for document content Added robust validation and error handling for processor functions Included sample document processor that removes common artifacts from imported documents
Document processors can be created as standard plugins and will be applied to all loaded documents when active. Processing order is determined by the priority valve setting.
Sample document processor:
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Implements a configurable pipeline for transforming document content during the loading process.
Added
Added support for document function type in the plugin system Created prioritized processing pipeline for document content Added robust validation and error handling for processor functions Included sample document processor that removes common artifacts from imported documents
Document processors can be created as standard plugins and will be applied to all loaded documents when active. Processing order is determined by the priority valve setting.
Breaking Changes
Additional Information
I will update docs soon and provide the PR to docs as well.
Sample document processor:
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, 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.