mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 08:22:09 -05:00
[PR #13663] [CLOSED] feat: Add new action type Parser for better Knowledge #38888
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/13663
Author: @DanielDowns
Created: 5/7/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (10+)
3a404c9added parsing type and basic tracinge0f5487default parsing now properly parses and uploadsf8e201fhandle all custom parsers and switch to default if none are provided7dd06c6removed original save function thats now in plugin. moved get_plugin() to correct module. DefaultParser is now named such with proper structure and loggingd512a68Merge branch 'main' of https://github.com/DanielDowns/open-webui into parser_addition39c5512Merge pull request #1 from DanielDowns/parser_additiond06b6d7removed testing print statementb4d94a1renamed PARSER_TYPE, modified return of DefaultParser::split, incorrect Parsers now properly throw Exceptionsbae2a64added deleting methods to parsersfb6dd86expanded verification to include new methods📊 Changes
10 files changed (+485 additions, -315 deletions)
View changed files
📝
backend/open_webui/functions.py(+93 -5)📝
backend/open_webui/retrieval/utils.py(+1 -1)📝
backend/open_webui/routers/files.py(+0 -3)📝
backend/open_webui/routers/knowledge.py(+58 -48)📝
backend/open_webui/routers/retrieval.py(+106 -255)📝
backend/open_webui/utils/middleware.py(+3 -0)➕
backend/open_webui/utils/parser.py(+217 -0)📝
backend/open_webui/utils/plugin.py(+3 -1)📝
src/lib/apis/files/index.ts(+1 -1)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+3 -1)📄 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
Previously, documents/web searches/videos/etc were all parsed in the same, hard coded manner. Any unique parsing or new ways of parsing required completely ignoring Knowledge to use Pipelines. This allows users to easily add in unique parsing of any information they wish through standard operations.
Added
Changed
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.