[PR #18980] [CLOSED] feat: enhance external document loader with configurable request options #11842

Closed
opened 2025-11-11 19:58:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18980
Author: @TheDropZone
Created: 11/6/2025
Status: ❌ Closed

Base: dev ← Head: dev


📝 Commits (1)

  • ee3b998 feat: enhance external document loader with configurable request options

📊 Changes

22 files changed (+889 additions, -75 deletions)

View changed files

📝 backend/open_webui/config.py (+87 -0)
📝 backend/open_webui/main.py (+22 -0)
📝 backend/open_webui/retrieval/loaders/external_document.py (+329 -36)
📝 backend/open_webui/retrieval/loaders/main.py (+11 -1)
📝 backend/open_webui/routers/retrieval.py (+99 -0)
➖ backend/open_webui/static/apple-touch-icon.png (+0 -0)
➖ backend/open_webui/static/custom.css (+0 -0)
➖ backend/open_webui/static/favicon-96x96.png (+0 -0)
➖ backend/open_webui/static/favicon-dark.png (+0 -0)
➖ backend/open_webui/static/favicon.ico (+0 -0)
➖ backend/open_webui/static/favicon.png (+0 -0)
➖ backend/open_webui/static/favicon.svg (+0 -3)
➖ backend/open_webui/static/loader.js (+0 -0)
➖ backend/open_webui/static/logo.png (+0 -0)
➖ backend/open_webui/static/site.webmanifest (+0 -21)
➖ backend/open_webui/static/splash-dark.png (+0 -0)
➖ backend/open_webui/static/splash.png (+0 -0)
➖ backend/open_webui/static/user-import.csv (+0 -1)
➖ backend/open_webui/static/user.png (+0 -0)
➖ backend/open_webui/static/web-app-manifest-192x192.png (+0 -0)

...and 2 more files

📄 Description

Pull Request Checklist

Before submitting, make sure you've checked the following:
Currently working through finalizing the checklist and submitting an MR for docs update on the /docs repo

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch will lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
    • Outstanding: Need to build changelog and upload screenshots
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
    • Outstanding: Need to update with new ENV Vars
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
    • These changes have been tested locally, ensuring that I could save the new config, update it, reload the page, etc. Tested in various configurations such as default (original/backwards compat) as well as completely adjusted too. This was tested against the docstrange /api/extract with success (thanks to additional config)
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

TODO: Build out full description of changes, and point to additions in the docs repo

Added

TODO: List Additions

Changed

TODO: List changes


Screenshots or Videos

TODO: Add screenshots taken of the new feature

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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18980 **Author:** [@TheDropZone](https://github.com/TheDropZone) **Created:** 11/6/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`ee3b998`](https://github.com/open-webui/open-webui/commit/ee3b9988e6da76abd0d3abc4deb99f88b9107c3d) feat: enhance external document loader with configurable request options ### 📊 Changes **22 files changed** (+889 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+87 -0) 📝 `backend/open_webui/main.py` (+22 -0) 📝 `backend/open_webui/retrieval/loaders/external_document.py` (+329 -36) 📝 `backend/open_webui/retrieval/loaders/main.py` (+11 -1) 📝 `backend/open_webui/routers/retrieval.py` (+99 -0) ➖ `backend/open_webui/static/apple-touch-icon.png` (+0 -0) ➖ `backend/open_webui/static/custom.css` (+0 -0) ➖ `backend/open_webui/static/favicon-96x96.png` (+0 -0) ➖ `backend/open_webui/static/favicon-dark.png` (+0 -0) ➖ `backend/open_webui/static/favicon.ico` (+0 -0) ➖ `backend/open_webui/static/favicon.png` (+0 -0) ➖ `backend/open_webui/static/favicon.svg` (+0 -3) ➖ `backend/open_webui/static/loader.js` (+0 -0) ➖ `backend/open_webui/static/logo.png` (+0 -0) ➖ `backend/open_webui/static/site.webmanifest` (+0 -21) ➖ `backend/open_webui/static/splash-dark.png` (+0 -0) ➖ `backend/open_webui/static/splash.png` (+0 -0) ➖ `backend/open_webui/static/user-import.csv` (+0 -1) ➖ `backend/open_webui/static/user.png` (+0 -0) ➖ `backend/open_webui/static/web-app-manifest-192x192.png` (+0 -0) _...and 2 more files_ </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** **_Currently working through finalizing the checklist and submitting an MR for docs update on the /docs repo_** - [x] **Target branch:** Verify that the pull request targets the `dev` branch. **Not targeting the `dev` branch will lead to immediate closure of the PR.** - [ ] **Description:** Provide a concise description of the changes made in this pull request down below. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - **Outstanding**: Need to build changelog and upload screenshots - [ ] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - **Outstanding**: Need to update with new ENV Vars - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Perform manual tests to **verify the implemented fix/feature works as intended AND does not break any other functionality**. Take this as an opportunity to **make screenshots of the feature/fix and include it in the PR description**. - These changes have been tested locally, ensuring that I could save the new config, update it, reload the page, etc. Tested in various configurations such as default (original/backwards compat) as well as completely adjusted too. This was tested against the docstrange /api/extract with success (thanks to additional config) - [x] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description TODO: Build out full description of changes, and point to additions in the docs repo ### Added TODO: List Additions ### Changed TODO: List changes --- ### Screenshots or Videos TODO: Add screenshots taken of the new feature ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 19:58:30 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#11842