Tim Jaeryang Baek
cd417ca0ba
Merge pull request #17744 from Classic298/fix-rag-full-context
...
Fix: Prevent RAG queries when all files are in full context
2025-09-25 11:55:41 -05:00
Timothy Jaeryang Baek
4f8f8e0e0b
chore: dep bump
2025-09-25 11:51:04 -05:00
Timothy Jaeryang Baek
ff44fa242d
refac
2025-09-25 11:28:33 -05:00
Timothy Jaeryang Baek
3c7d01163d
refac
2025-09-25 11:02:49 -05:00
google-labs-jules[bot]
4a7e1b93e5
Fix: Prevent RAG queries when all files are in full context
...
This commit fixes an issue where Retrieval-Augmented Generation (RAG)
queries were still being generated even when all attached files were set
to 'full context' mode. This was inefficient as the full content of the
files was already available to the model.
The `chat_completion_files_handler` in `backend/open_webui/utils/middleware.py`
has been updated to:
- Check if all attached files have the `context: 'full'` property.
- Skip the `generate_queries` step if all files are in full context mode.
- Pass a `full_context=True` flag to the `get_sources_from_items`
function to ensure it fetches the entire document content instead of
performing a vector search.
This change ensures that RAG queries are only generated when necessary,
improving the efficiency of the system.
2025-09-25 15:54:58 +00:00
Timothy Jaeryang Baek
cd7bd0aa20
refac
2025-09-25 02:00:02 -05:00
Timothy Jaeryang Baek
4d16cf6bf3
refac
2025-09-25 01:59:18 -05:00
Timothy Jaeryang Baek
422d38fd11
refac
2025-09-25 01:56:09 -05:00
Timothy Jaeryang Baek
77e971dd9f
feat: oauth2.1 mcp integration
2025-09-25 01:49:16 -05:00
Timothy Jaeryang Baek
972be4eda5
enh: oauth2.1 dynamic client registration
2025-09-25 00:28:13 -05:00
Timothy Jaeryang Baek
34d16791a8
refac
2025-09-24 23:27:45 -05:00
Tim Jaeryang Baek
d3b09c6a02
Merge pull request #17223 from itk-dev/feature/session-in-redis
...
feat: Added support for redis as session storage
2025-09-24 23:23:56 -05:00
Timothy Jaeryang Baek
27d61307cd
refac: tools valves
2025-09-24 21:12:25 -05:00
Timothy Jaeryang Baek
685cca5bd5
chore: dep bump
2025-09-24 18:58:17 -05:00
Timothy Jaeryang Baek
bd02a456ab
chore: langchain dep bump
2025-09-24 18:55:33 -05:00
Timothy Jaeryang Baek
9f0010e234
enh: channel model @ image support
2025-09-24 16:08:36 -05:00
Timothy Jaeryang Baek
fe65fe0b97
refac: ollama cloud web search count support
2025-09-24 15:58:56 -05:00
Timothy Jaeryang Baek
4b6d34438b
refac
2025-09-24 15:20:31 -05:00
Timothy Jaeryang Baek
e06489d92b
enh: search_ollama_cloud
2025-09-24 15:19:05 -05:00
Timothy Jaeryang Baek
23a51f2d01
refac: robust file upload failed handling
2025-09-24 12:17:01 -05:00
Timothy Jaeryang Baek
0dee15ba97
refac/enh: include foldered chats in ref chat input menu
2025-09-24 11:27:19 -05:00
Timothy Jaeryang Baek
ac879513e5
enh: channel read/write perm
2025-09-24 10:09:59 -05:00
Timothy Jaeryang Baek
f096e99059
refac: rag context handling
2025-09-24 09:38:14 -05:00
Timothy Jaeryang Baek
b25c7da154
refac: valves
2025-09-24 09:21:53 -05:00
Timothy Jaeryang Baek
b8086c5edf
refac: folder delete logic
2025-09-24 09:04:54 -05:00
Timothy Jaeryang Baek
199f371f58
refac
2025-09-24 07:17:41 -05:00
Timothy Jaeryang Baek
c5a967e05f
refac
2025-09-24 06:56:50 -05:00
Timothy Jaeryang Baek
651f385ba5
fix: oauth refresh server metadata
2025-09-24 06:56:24 -05:00
Timothy Jaeryang Baek
1c64269387
refac
2025-09-23 16:51:31 -05:00
Timothy Jaeryang Baek
f33d6eabdf
chore: bump azure identity
2025-09-23 16:48:31 -05:00
Timothy Jaeryang Baek
06e5c00f24
refac
2025-09-23 03:52:43 -04:00
Timothy Jaeryang Baek
f7b0fdde2a
refac
2025-09-23 03:42:25 -04:00
Timothy Jaeryang Baek
7aa3903b6b
refac
2025-09-23 03:36:11 -04:00
Timothy Jaeryang Baek
6bf4ba523d
refac
2025-09-23 03:35:00 -04:00
Timothy Jaeryang Baek
c42c0436f2
refac
2025-09-23 03:33:24 -04:00
Timothy Jaeryang Baek
61f20acf61
refac
2025-09-23 03:32:25 -04:00
Timothy Jaeryang Baek
c55afc4255
refac
2025-09-23 03:19:36 -04:00
Timothy Jaeryang Baek
f1bbf3a91e
refac
2025-09-23 03:05:38 -04:00
Timothy Jaeryang Baek
de7f7b3d85
refac
2025-09-23 02:40:59 -04:00
Timothy Jaeryang Baek
777e81f7a8
feat: experimental mcp support
2025-09-23 02:03:26 -04:00
Timothy Jaeryang Baek
466d5bb696
refac: add separate Client IDs for OneDrive
2025-09-21 01:40:14 -04:00
Timothy Jaeryang Baek
6e4a2f18e1
refac
2025-09-21 00:14:43 -04:00
Sihyeon Jang
7042318c34
fix: prevent memory leaks in file handling and HTTP connections
...
- Fix file handle memory leak in download_file_stream by properly closing and reopening files
- Add requests.Session context manager for proper HTTP connection cleanup
- Remove unnecessary file.seek(0) after file reopening
- Add timeout to prevent hanging connections
This prevents memory accumulation during large file downloads and ensures
proper resource cleanup in all scenarios.
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-20 06:37:10 +09:00
Timothy Jaeryang Baek
60db9ec8ef
refac: built-in tools ui component support
2025-09-19 01:38:44 -05:00
Timothy Jaeryang Baek
e4c4ba0979
fix: oauth token
2025-09-19 00:10:48 -05:00
Timothy Jaeryang Baek
7be5b7f50f
refac
2025-09-18 22:03:14 -05:00
Timothy Jaeryang Baek
07c5b25bc8
feat: tool ui element support
2025-09-18 20:55:23 -05:00
Timothy Jaeryang Baek
d4f21c7e84
refac
2025-09-18 10:43:59 -05:00
Timothy Jaeryang Baek
b9e200f104
fix: isdangerous dep
2025-09-18 09:39:40 -05:00
Timothy Jaeryang Baek
cde5879987
fix: onedrive
2025-09-17 12:18:23 -05:00