mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-27 11:57:13 -05:00
[GH-ISSUE #20661] issue: RAG threshold and chat file include bug #89993
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 @n4gY1 on GitHub (Jan 14, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20661
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
7.0.2
Ollama Version (if applicable)
No response
Operating System
debian
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Settings-Documents-Relevance **Threshold settings = 0,6. ** for the RAG knowledge retrieval threshold.
But i use simple chat, without knowledge collections, and upload document (attach to chat), "no resources found" and does not respond to the data in the documents. If threshold settings set 0,2, chat response the attached documents content. but this way the RAG returns too many inappropriate answers.
Actual Behavior
Settings-Documents-Relevance Threshold settings = 0,6. For the RAG knowledge retrieval threshold.
But i use simple chat, without knowledge collections, and upload document (attach to chat), "no resources found" and does not respond to the data in the documents. If threshold settings set 0,2, chat response the attached documents content. but this way the RAG returns too many inappropriate answers.
Steps to Reproduce
Documents Relevance Threshold settings change to 0,6+
Simple chat upload any documents and please, summarize.
Chat "no resources found" returns
Logs & Screenshots
2026-01-14 09:45:20.776 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/users/2974c035-3da0-40ff-98ff-752379a9616f/profile/image HTTP/1.1" 200
2026-01-14 09:45:20.777 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/models/model/profile/image?id=undefined&lang=en-GB HTTP/1.1" 200
2026-01-14 09:45:20.794 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/tools/ HTTP/1.1" 200
2026-01-14 09:45:20.795 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/models/model/profile/image?id=ltalnos-csevegs&lang=en-GB HTTP/1.1" 200
2026-01-14 09:45:20.842 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /static/favicon.png HTTP/1.1" 200
2026-01-14 09:45:27.374 | INFO | open_webui.routers.files:upload_file_handler:225 - file.content_type: application/vnd.openxmlformats-officedocument.wordprocessingml.document True
2026-01-14 09:45:27.388 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "POST /api/v1/files/?process=true HTTP/1.1" 200
2026-01-14 09:45:27.403 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/files/1dae47bc-2203-4e95-8944-5d0a72c7c0ff/process/status?stream=true HTTP/1.1" 200
2026-01-14 09:45:29.412 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1425 - Using markdown header text splitter
2026-01-14 09:45:29.422 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1509 - generating embeddings for file-1dae47bc-2203-4e95-8944-5d0a72c7c0ff
2026-01-14 09:45:30.358 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1549 - embeddings generated 1 for 1 items
2026-01-14 09:45:30.358 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1561 - adding to collection file-1dae47bc-2203-4e95-8944-5d0a72c7c0ff
2026-01-14 09:45:30.406 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1567 - added 1 items to collection file-1dae47bc-2203-4e95-8944-5d0a72c7c0ff
2026-01-14 09:45:30.406 | INFO | open_webui.routers.retrieval:process_file:1762 - added 1 items to collection file-1dae47bc-2203-4e95-8944-5d0a72c7c0ff
2026-01-14 09:45:31.728 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /_app/version.json HTTP/1.1" 200
2026-01-14 09:45:31.857 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.3.146:0 - "GET /api/version HTTP/1.1" 200
2026-01-14 09:45:34.340 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/version HTTP/1.1" 200
2026-01-14 09:45:34.724 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "POST /api/v1/chats/new HTTP/1.1" 200
2026-01-14 09:45:34.759 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/models/model/profile/image?id=ltalnos-csevegs&lang=en-GB HTTP/1.1" 200
2026-01-14 09:45:34.867 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/tools/ HTTP/1.1" 200
2026-01-14 09:45:34.890 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/models/model/profile/image?id=ltalnos-csevegs&lang=en-GB HTTP/1.1" 200
2026-01-14 09:45:35.159 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /static/favicon.png HTTP/1.1" 200
2026-01-14 09:45:35.161 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200
2026-01-14 09:45:35.185 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "POST /api/v1/chats/b1dfbac5-5e73-47c3-a844-b6503f5cda74 HTTP/1.1" 200
2026-01-14 09:45:35.195 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200
2026-01-14 09:45:35.215 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "POST /api/chat/completions HTTP/1.1" 200
2026-01-14 09:45:35.240 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200
2026-01-14 09:45:37.254 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "GET /api/v1/chats/37eee025-f864-4e16-9b99-af857b91dc7e HTTP/1.1" 200
2026-01-14 09:45:38.110 | INFO | open_webui.retrieval.utils:query_collection_with_hybrid_search:487 - Starting hybrid search for 3 queries in 1 collections...
2026-01-14 09:45:38.311 | INFO | open_webui.retrieval.utils:query_doc_with_hybrid_search:310 - query_doc_with_hybrid_search:result
2026-01-14 09:45:38.314 | INFO | open_webui.retrieval.utils:query_doc_with_hybrid_search:310 - query_doc_with_hybrid_search:result
2026-01-14 09:45:38.318 | INFO | open_webui.retrieval.utils:query_doc_with_hybrid_search:310 - query_doc_with_hybrid_search:result
2026-01-14 09:45:39.220 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.49.160.135:0 - "POST /api/chat/completed HTTP/1.1" 200
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Jan 14, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#20033 issue: RAG not working when file uploaded through chat
by abhishek-paradkar-sndk • Dec 18, 2025 •
bug#20558 issue: RAG Knowledge file when modify/update, older data is available
by n4gY1 • Jan 10, 2026 •
bug#20414 issue: Chats can't be archived
by Ithanil • Jan 06, 2026 •
bug#19281 issue: RAG Template applied with "Bypass Embedding and Retrieval" enabled
by lucyknada • Nov 19, 2025 •
bug#19098 issue: Prompt & context duplication when RAG template is used
by matiboux • Nov 11, 2025 •
bugShow 4 more related issues
#19101 issue: RAG template query placeholder escaping logic error
by matiboux • Nov 11, 2025 •
bug#19698 issue: .41 web based search and webpages - RAG - are not fixed
by frenzybiscuit • Dec 02, 2025 •
bug#19987 issue: There is a lack of visual consistency between the home page and the chat interface.
by i-iooi-i • Dec 16, 2025 •
bug#20059 issue: Chat response is not working
by navilg • Dec 20, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@ctcanbol commented on GitHub (Jan 14, 2026):
Because of this, i cannot use RAG threshold. By the way it's not a new problem i think it's existed since the 0.5 releases