mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #24870] feat: Add per-file control to disable chunking and embedding for individually uploaded documents #123728
Reference in New Issue
Block a user
Originally created by @raocg on GitHub (May 18, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24870
Check Existing Issues
Verify Feature Scope
Problem Description
Problem Statement
Currently, there is no granular control over how individually uploaded documents (files added directly to a chat context via "Upload Files") are processed compared to documents in the Knowledge Base. When users upload files for a specific conversation, these files may be subject to the same chunking, embedding, and retrieval pipeline configured globally.
Use Cases Requiring Per-File Control
Large Documents: Users may want to keep large PDFs or documents intact without chunking them into smaller pieces for context.
Structured Data: Some users prefer to pass structured data (JSON, CSV) or code files directly to the model without embedding/retrieval processing.
Context Documents: Users may have reference documents that should be included as-is in the context window without being split and embedded.
API Efficiency: Per-file control could reduce unnecessary processing costs when files don't need the full RAG pipeline.
Proposed Solution
Add a per-file configuration option when uploading documents that allows users to choose:
This could be implemented as:
Benefits
Desired Solution you'd like
Proposed Implementation
Option 1: Simple Toggle in Upload Dialog (Recommended for MVP)
When clicking "Upload Files", show a checkbox: "[ ] Chunk and Embed for Retrieval"
Option 2: Advanced Control Panel
Add a sidebar panel showing:
Option 3: Integration with Attachment Options
Extend the existing "Attach Knowledge" feature to show:
Implementation Details
process_methodparameter to document handling:'full_rag'(default): Existing chunking + embedding pipeline'raw_context': Add file directly without processingTesting Suggestions
Alternatives Considered
No response
Additional Context
No response
@owui-terminator[bot] commented on GitHub (May 18, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #12228 feat: uploading files without backend processing
This request is about bypassing document processing for uploaded files so a backend can use the raw file directly. That overlaps strongly with adding a per-file raw-context mode instead of the current chunking/embedding pipeline.
by wangjiyang
🟢 #18431 feat: Option to define default mode for file uploads
This open feature request asks for a default mode for chat file uploads between using the entire document and focused retrieval. It is very close to the new issue’s goal of finer-grained control over processing uploaded files.
by Master-Pr0grammer
🟣 #18583 feat: Option to set "Full context mode" for file upload and knowledge retrieval individually.
This issue specifically discusses full-context mode for uploaded file attachments and contrasts it with knowledge base retrieval. It matches the uploaded-file side of the new request, which wants raw-context handling instead of chunking/embedding.
by deliciousbob
🟣 #18144 feat: document upload available raw for other usages
This closed request asks for a raw upload option that bypasses RAG and keeps the full document available for other uses. That is essentially the same capability as the new per-file raw-context control.
by MarceloMassarente
🟣 #3556 Add switch to disable RAG on attachments.
This issue requests a switch to disable RAG on attachments so the full extracted text can be passed to the LLM. While older and broader, it is directly related to the same attachment-processing control being requested here.
by nickovs
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.