With the default Chroma vector database, a failed knowledge search was dropped without a trace. The common case is switching to an embedding model with a different vector size without reindexing. Every search then came back empty, and neither the response nor the server log said why. The error, including Chroma's dimension mismatch message, now shows up in the server log, so an admin can see that a reindex is needed. Search results themselves do not change, and a knowledge base with no files yet still stays quiet.
Fixes#34761
With an Open Terminal running on Windows, asking the model to edit an image stored on the terminal failed with a 404, because a path such as C:\Users\user\photo.jpg was treated as a link instead of a terminal file. Starting a video from a terminal image failed the same way. Both now read Windows paths, written with forward or back slashes, from the terminal just like Linux and macOS paths. Links, data URLs and files uploaded to Open WebUI work as before.
Fixes#34719
Opening a chat loaded the whole conversation a second time to work out how full the model's context is, even with Context Compaction off, which is the default. The server only sends that figure while compaction is on, so with it off every open of a large chat read the conversation twice for nothing. Chats now skip the second read while Context Compaction is off, and nothing changes with it on.
Server time to open a chat with Context Compaction off, fastest of repeated opens:
| Chat size | Postgres before | Postgres after | SQLite before | SQLite after |
|---|---|---|---|---|
| 1 MB | 25 ms | 17 ms | 21 ms | 9 ms |
| 10 MB | 66 ms | 44 ms | 39 ms | 20 ms |
| 50 MB | 337 ms | 184 ms | 119 ms | 71 ms |
| 130 MB | 653 ms | 464 ms | 264 ms | 143 ms |
Fixes#34670