mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #14730] feat: Adding individual RAG config settings #10365
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/14730
Author: @Maytown
Created: 6/6/2025
Status: 🔄 Open
Base:
dev← Head:Dev-Individual-RAG-Config📝 Commits (10+)
b46da1aAdded DEFAULT_RAG_SETTINGS option for individual rag configuration45ee9c3Function: Added get knowledge by collection name and adjusted insert new knowledge to insert rag config to DB220ad37Function: Adjusted create new knowledge to send rag confige3a93b2Feature: Adjusted all necessary functions to handle individual rag configuration - fallback to default configuration if individual config is not used4f93577Feature: Adjusted process_chat_payload to handle individual rag config (send individual rag template)6e2155dFeature: adjusted createNewKnowledge to pass individual rag config4f1c9a8Feature: adjusted retrieval restpoints to handle indivudal rag config - passing rag config and changing from get to post79ff995Feature: Added Rag Configuration to knowledge creation - if disabled falls back to default/general rag settings from documentsettings9233f1fMerge remote-tracking branch 'upstream/dev' into Individual-RAG-Config49e4375FIX: adjusted to send knowledge base id for saving docs - fixed update_reranking_config to handle knowledge config by collection name📊 Changes
19 files changed (+4936 additions, -1033 deletions)
View changed files
📝
backend/open_webui/config.py(+38 -0)➕
backend/open_webui/internal/migrations/019_add_rag_config_to_knowledge.py(+84 -0)📝
backend/open_webui/main.py(+77 -58)📝
backend/open_webui/migrations/versions/6a39f3d8e55c_add_knowledge_table.py(+1 -0)📝
backend/open_webui/models/knowledge.py(+47 -0)📝
backend/open_webui/retrieval/utils.py(+68 -9)📝
backend/open_webui/routers/files.py(+22 -7)📝
backend/open_webui/routers/knowledge.py(+63 -0)📝
backend/open_webui/routers/memories.py(+5 -5)📝
backend/open_webui/routers/retrieval.py(+1269 -807)➕
backend/open_webui/test/apps/webui/routers/test_individual_rag_config.py(+338 -0)📝
backend/open_webui/utils/middleware.py(+33 -21)📝
src/lib/apis/files/index.ts(+4 -1)📝
src/lib/apis/knowledge/index.ts(+35 -3)📝
src/lib/apis/retrieval/index.ts(+14 -6)📝
src/lib/components/common/Modal.svelte(+10 -0)📝
src/lib/components/workspace/Knowledge/CreateKnowledgeBase.svelte(+1389 -107)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+79 -9)➕
src/lib/components/workspace/common/RagConfigModal.svelte(+1360 -0)📄 Description
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
-Admin users can download new models whereas non-admin users can select embedder/reranker from dropdown; dropdown shows already downloaded models
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.