open-webui/backend/open_webui
Classic298 113a64ad1a
perf: speed up one-word chat search (#32268)
Chat search checks the whole query and each word in it separately. With a single word those are the same check, so every chat got searched twice. It is now searched once, with the same results. On PostgreSQL with 2164 chats (533 MB of chat data) a one-word search is about 40% faster:

| search | before | after |
|---|---|---|
| proxy | 6.0 s | 3.6 s |
| opnsense | 6.1 s | 3.8 s |
| no match | 5.4 s | 3.0 s |

Refs #32266
2026-10-12 23:32:52 +04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal fix: non-English text is missed by searches and counted six times against size limits (#31615) 2026-09-30 19:19:29 +04:00
migrations refac 2026-10-12 17:29:04 +04:00
models perf: speed up one-word chat search (#32268) 2026-10-12 23:32:52 +04:00
retrieval fix: external knowledge citation links lead to a not found error (#32233) 2026-10-12 11:57:07 +04:00
routers refac 2026-10-12 23:22:18 +04:00
socket fix: cannot connect through Redis Sentinels that require a password (#32241) 2026-10-12 11:42:26 +04:00
static refac 2026-09-06 17:27:30 -04:00
storage refac 2026-10-05 12:03:19 +04:00
tools fix: external knowledge citation links lead to a not found error (#32233) 2026-10-12 11:57:07 +04:00
utils refac 2026-10-12 19:18:08 +04:00
__init__.py refac 2026-10-05 12:17:25 +04:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-10-12 17:29:04 +04:00
constants.py fix: SSO login failures show the email/password error (#31629) 2026-09-30 19:07:49 +04:00
env.py refac 2026-10-01 03:31:20 +04:00
events.py refac 2026-10-08 14:30:07 +04:00
functions.py refac 2026-10-08 20:33:47 +04:00
main.py refac 2026-10-12 17:29:04 +04:00
tasks.py refac 2026-09-21 08:59:39 -04:00