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:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests to validate the changes?
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?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
feat: Introduces a new feature or enhancement to the codebase
Changelog Entry
Description
This PR introduces the ability to add website content directly to the knowledge base.
Added
Reused the existing AttachWebpageModal from the chat component to maintain a consistent user experience with minimal code changes.
Added a new "Add from Website" option to the AddContentMenu in the knowledge base section.
Implemented the uploadWebHandler in KnowledgeBase.svelte to process URLs from the modal, calling the appropriate API for web and YouTube links.
Ensured that the UI provides feedback during the upload process and handles both success and error cases gracefully.
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.
🔄 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/17936
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 9/30/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `add-website-to-knowledge-base`
---
### 📝 Commits (10+)
- [`d4800ea`](https://github.com/open-webui/open-webui/commit/d4800eaa8c25dd7b8eb887a19e8816f32761480e) Update KnowledgeBase.svelte
- [`6924419`](https://github.com/open-webui/open-webui/commit/6924419723b303ec949f7c24e6aef7498581f31e) Update KnowledgeBase.svelte
- [`75f44fc`](https://github.com/open-webui/open-webui/commit/75f44fcb2f759160647f4286bf479550900e53a6) Update AddContentMenu.svelte
- [`847e1c1`](https://github.com/open-webui/open-webui/commit/847e1c165d1b4734f3af5046aa5c7e50fa3879bc) Update AddContentMenu.svelte
- [`120c225`](https://github.com/open-webui/open-webui/commit/120c225740f1713000d7fe26192a225bfb153a0f) Update KnowledgeBase.svelte
- [`4bf762a`](https://github.com/open-webui/open-webui/commit/4bf762adbffceae92052ac74457735884a52c987) Update AddContentMenu.svelte
- [`f1178f3`](https://github.com/open-webui/open-webui/commit/f1178f3f4dfcb7b6ca9b7f59736a12d9a718e497) Update KnowledgeBase.svelte
- [`d9bb460`](https://github.com/open-webui/open-webui/commit/d9bb460cc2c1ebdc4cda0cddc0beaeeedd73c358) Update AddContentMenu.svelte
- [`74d5f2e`](https://github.com/open-webui/open-webui/commit/74d5f2e9810ce903216f13257a17ef19b62ef85a) Update AddContentMenu.svelte
- [`217c01f`](https://github.com/open-webui/open-webui/commit/217c01f24ce2acb04b1dbbf62e3fedb1e98e5f0c) Update KnowledgeBase.svelte
### 📊 Changes
**3 files changed** (+150 additions, -26 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/retrieval.py` (+69 -11)
📝 `src/lib/components/workspace/Knowledge/KnowledgeBase.svelte` (+61 -15)
📝 `src/lib/components/workspace/Knowledge/KnowledgeBase/AddContentMenu.svelte` (+20 -0)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [X] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [X] **Description:** Provide a concise description of the changes made in this pull request.
- [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [ ] **Testing:** Have you written and run sufficient tests to validate the changes?
- [ ] **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] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **feat**: Introduces a new feature or enhancement to the codebase
# Changelog Entry
### Description
This PR introduces the ability to add website content directly to the knowledge base.
### Added
- Reused the existing `AttachWebpageModal` from the chat component to maintain a consistent user experience with minimal code changes.
- Added a new "Add from Website" option to the `AddContentMenu` in the knowledge base section.
- Implemented the `uploadWebHandler` in `KnowledgeBase.svelte` to process URLs from the modal, calling the appropriate API for web and YouTube links.
- Ensured that the UI provides feedback during the upload process and handles both success and error cases gracefully.
### Additional Information
- Related:
- https://github.com/open-webui/open-webui/discussions/6118
- https://github.com/open-webui/open-webui/issues/6202
### 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 (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17936
Author: @Classic298
Created: 9/30/2025
Status: ❌ Closed
Base:
dev← Head:add-website-to-knowledge-base📝 Commits (10+)
d4800eaUpdate KnowledgeBase.svelte6924419Update KnowledgeBase.svelte75f44fcUpdate AddContentMenu.svelte847e1c1Update AddContentMenu.svelte120c225Update KnowledgeBase.svelte4bf762aUpdate AddContentMenu.sveltef1178f3Update KnowledgeBase.svelted9bb460Update AddContentMenu.svelte74d5f2eUpdate AddContentMenu.svelte217c01fUpdate KnowledgeBase.svelte📊 Changes
3 files changed (+150 additions, -26 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+69 -11)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+61 -15)📝
src/lib/components/workspace/Knowledge/KnowledgeBase/AddContentMenu.svelte(+20 -0)📄 Description
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
This PR introduces the ability to add website content directly to the knowledge base.
Added
AttachWebpageModalfrom the chat component to maintain a consistent user experience with minimal code changes.AddContentMenuin the knowledge base section.uploadWebHandlerinKnowledgeBase.svelteto process URLs from the modal, calling the appropriate API for web and YouTube links.Additional Information
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 (CLA), 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.