[PR #17164] [CLOSED] Updated function of Upload Files to now route to the Create Knowledge Page if knowledge is empty #11141

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/17164
Author: @jmspringer1249
Created: 9/2/2025
Status: Closed

Base: mainHead: ASGEM-147-add-knowledge-link-on-main-menu


📝 Commits (10+)

  • 3a404c9 added parsing type and basic tracing
  • e0f5487 default parsing now properly parses and uploads
  • f8e201f handle all custom parsers and switch to default if none are provided
  • 7dd06c6 removed original save function thats now in plugin. moved get_plugin() to correct module. DefaultParser is now named such with proper structure and logging
  • d512a68 Merge branch 'main' of https://github.com/DanielDowns/open-webui into parser_addition
  • 39c5512 Merge pull request #1 from DanielDowns/parser_addition
  • d06b6d7 removed testing print statement
  • b4d94a1 renamed PARSER_TYPE, modified return of DefaultParser::split, incorrect Parsers now properly throw Exceptions
  • bae2a64 added deleting methods to parsers
  • fb6dd86 expanded verification to include new methods

📊 Changes

24 files changed (+1148 additions, -465 deletions)

View changed files

📝 backend/open_webui/functions.py (+94 -6)
📝 backend/open_webui/main.py (+4 -0)
📝 backend/open_webui/retrieval/utils.py (+47 -12)
📝 backend/open_webui/retrieval/vector/dbs/chroma.py (+17 -8)
📝 backend/open_webui/routers/files.py (+1 -4)
📝 backend/open_webui/routers/knowledge.py (+149 -94)
backend/open_webui/routers/progress.py (+78 -0)
📝 backend/open_webui/routers/retrieval.py (+126 -253)
📝 backend/open_webui/utils/middleware.py (+3 -0)
backend/open_webui/utils/parser.py (+246 -0)
📝 backend/open_webui/utils/plugin.py (+3 -1)
📝 backend/requirements.txt (+1 -0)
📝 src/lib/apis/files/index.ts (+60 -24)
📝 src/lib/apis/knowledge/index.ts (+29 -1)
📝 src/lib/components/chat/MessageInput.svelte (+7 -1)
📝 src/lib/components/chat/MessageInput/InputMenu.svelte (+21 -2)
📝 src/lib/components/common/RichTextInput.svelte (+10 -0)
📝 src/lib/components/layout/Sidebar.svelte (+44 -1)
📝 src/lib/components/workspace/Knowledge.svelte (+3 -1)
📝 src/lib/components/workspace/Knowledge/KnowledgeBase.svelte (+116 -51)

...and 4 more files

📄 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:

  • 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:
    • 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

  • [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]

Added

  • [List any new features, functionalities, or additions]

Changed

  • [List any changes, updates, refactorings, or optimizations]

Deprecated

  • [List any deprecated functionality or features that have been removed]

Removed

  • [List any removed features, files, or functionalities]

Fixed

  • [List any fixes, corrections, or bug fixes]

Security

  • [List any new or updated security-related changes, including vulnerability fixes]

Breaking Changes

  • BREAKING CHANGE: [List any breaking changes affecting compatibility or functionality]

Additional Information

  • [Insert any additional context, notes, or explanations for the changes]
    • [Reference any related issues, commits, or other relevant information]

Screenshots or Videos

  • [Attach any relevant screenshots or videos demonstrating the changes]

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/17164 **Author:** [@jmspringer1249](https://github.com/jmspringer1249) **Created:** 9/2/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `ASGEM-147-add-knowledge-link-on-main-menu` --- ### 📝 Commits (10+) - [`3a404c9`](https://github.com/open-webui/open-webui/commit/3a404c986085ae798b9a9a3a00455b3ed1ca5c11) added parsing type and basic tracing - [`e0f5487`](https://github.com/open-webui/open-webui/commit/e0f5487d6c544b1c680d1703bf1f42549a5da03f) default parsing now properly parses and uploads - [`f8e201f`](https://github.com/open-webui/open-webui/commit/f8e201f14736736213b3a7f011388f18759d4697) handle all custom parsers and switch to default if none are provided - [`7dd06c6`](https://github.com/open-webui/open-webui/commit/7dd06c60977c30d8420f297da180e6d484e7128d) removed original save function thats now in plugin. moved get_plugin() to correct module. DefaultParser is now named such with proper structure and logging - [`d512a68`](https://github.com/open-webui/open-webui/commit/d512a688b4c16e842fd910eecc8ec3864ea94c6b) Merge branch 'main' of https://github.com/DanielDowns/open-webui into parser_addition - [`39c5512`](https://github.com/open-webui/open-webui/commit/39c55121320396deadb5006b93b4b9541fe0df03) Merge pull request #1 from DanielDowns/parser_addition - [`d06b6d7`](https://github.com/open-webui/open-webui/commit/d06b6d769cb20cb50e452224e3754a6a21903c5d) removed testing print statement - [`b4d94a1`](https://github.com/open-webui/open-webui/commit/b4d94a11cf4028181b47bfa36d935c9a57b1a02f) renamed PARSER_TYPE, modified return of DefaultParser::split, incorrect Parsers now properly throw Exceptions - [`bae2a64`](https://github.com/open-webui/open-webui/commit/bae2a641ee22a4ef37386aebfe7fcc2208ee7a87) added deleting methods to parsers - [`fb6dd86`](https://github.com/open-webui/open-webui/commit/fb6dd8652aff24a66a21de6520049199c7269266) expanded verification to include new methods ### 📊 Changes **24 files changed** (+1148 additions, -465 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/functions.py` (+94 -6) 📝 `backend/open_webui/main.py` (+4 -0) 📝 `backend/open_webui/retrieval/utils.py` (+47 -12) 📝 `backend/open_webui/retrieval/vector/dbs/chroma.py` (+17 -8) 📝 `backend/open_webui/routers/files.py` (+1 -4) 📝 `backend/open_webui/routers/knowledge.py` (+149 -94) ➕ `backend/open_webui/routers/progress.py` (+78 -0) 📝 `backend/open_webui/routers/retrieval.py` (+126 -253) 📝 `backend/open_webui/utils/middleware.py` (+3 -0) ➕ `backend/open_webui/utils/parser.py` (+246 -0) 📝 `backend/open_webui/utils/plugin.py` (+3 -1) 📝 `backend/requirements.txt` (+1 -0) 📝 `src/lib/apis/files/index.ts` (+60 -24) 📝 `src/lib/apis/knowledge/index.ts` (+29 -1) 📝 `src/lib/components/chat/MessageInput.svelte` (+7 -1) 📝 `src/lib/components/chat/MessageInput/InputMenu.svelte` (+21 -2) 📝 `src/lib/components/common/RichTextInput.svelte` (+10 -0) 📝 `src/lib/components/layout/Sidebar.svelte` (+44 -1) 📝 `src/lib/components/workspace/Knowledge.svelte` (+3 -1) 📝 `src/lib/components/workspace/Knowledge/KnowledgeBase.svelte` (+116 -51) _...and 4 more files_ </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:** - [ ] **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](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/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: - **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 - [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)] ### Added - [List any new features, functionalities, or additions] ### Changed - [List any changes, updates, refactorings, or optimizations] ### Deprecated - [List any deprecated functionality or features that have been removed] ### Removed - [List any removed features, files, or functionalities] ### Fixed - [List any fixes, corrections, or bug fixes] ### Security - [List any new or updated security-related changes, including vulnerability fixes] ### Breaking Changes - **BREAKING CHANGE**: [List any breaking changes affecting compatibility or functionality] --- ### Additional Information - [Insert any additional context, notes, or explanations for the changes] - [Reference any related issues, commits, or other relevant information] ### Screenshots or Videos - [Attach any relevant screenshots or videos demonstrating the changes] ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/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>
GiteaMirror added the pull-request label 2025-11-11 19:23:11 -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#11141