mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 01:51:58 -05:00
[GH-ISSUE #17293] feat: Add option for custom RAG handling: send uploaded files and query directly to backend #33760
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?
Originally created by @NaumanHSA on GitHub (Sep 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17293
Check Existing Issues
Problem Description
Background / Current Behavior
When files are uploaded to Open WebUI, they are processed internally:
chat/completionsrequest sent to the backend only references file identifiers — not file contents or binaries.This forces users to rely on Open WebUI’s RAG pipeline and prevents them from handling chunking or retrieval augmentation themselves.
Desired Solution you'd like
Request
Add an option (via config or API toggle) to bypass internal RAG processing, so that uploaded files and the user query are sent directly — unaltered — to the backend (e.g., in a
/v1/filescall or inline within thechat/completionspayload).This would allow users to manage RAG workflows externally, enabling full control of chunking, embedding, vector store, retrieval, etc.
Benefits
Suggested Implementation
CUSTOM_RAG_HANDLING=true/v1/filesendpoint in extracted (or raw) form, instead of embedded locally.chat/completionscall references file contents or includes them inline, not just file IDs.Additional Notes
This feature would complement existing “Bypass Embedding & Retrieval” modes.
A truly custom RAG setup requires the ability to handle files/data fully on the backend, rather than partially via OWUI.
Endpoint parity (e.g., following OpenAI’s
/v1/filessemantics) could ease adoption.Would love your feedback!
Alternatives Considered
No response
Additional Context
No response