mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-25 13:22:59 -05:00
[PR #21613] [CLOSED] feat: Add ability to not overwrite the whole collection when processing URLs #97199
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21613
Author: @jfahrenkrug
Created: 2/19/2026
Status: ❌ Closed
Base:
dev← Head:jfahrenkrug/make_process_url_overwrite_optional📝 Commits (1)
97fffebfeat: Add ability to not overwrite the whole collection when processing URLs📊 Changes
3 files changed (+92 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+10 -2)➕
backend/open_webui/test/apps/webui/routers/test_retrieval_process_web.py(+78 -0)📝
src/lib/apis/retrieval/index.ts(+4 -2)📄 Description
Make /process/web overwrite behavior configurable instead of always replacing existing collections. Reasoning behind it: When trying to import all URLs of a website using the API, I want them all to end up in the same knowledge base. Currently that was not possible because every new request would replace the knowledge base (collection) instead of just adding the content of the new URL to the collection.
See https://github.com/open-webui/open-webui/issues/21336
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Make /process/web overwrite behavior configurable instead of always replacing existing collections. Reasoning behind it: When trying to import all URLs of a website using the API, I want them all to end up in the same knowledge base. Currently that was not possible because every new request would replace the knowledge base (collection) instead of just adding the content of the new URL to the collection.
Changed
Added
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.