mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-01 02:01:35 +00:00
The chat search modal (Cmd+K) already searches within message content but only displayed chat titles, giving users no indication of why a chat matched their query. This adds a content snippet below each search result showing the matching text with the query term highlighted. The snippet is a ~200 char window centered on the first content match, with ellipsis for truncated text. Backend: extract snippet from already-loaded ChatModel objects (zero extra DB cost). Frontend: render snippet with highlighted query via <mark> tags with theme-aware styling. |
||
|---|---|---|
| .. | ||
| access_grants.py | ||
| auths.py | ||
| automations.py | ||
| calendar.py | ||
| channels.py | ||
| chat_messages.py | ||
| chats.py | ||
| feedbacks.py | ||
| files.py | ||
| folders.py | ||
| functions.py | ||
| groups.py | ||
| knowledge.py | ||
| memories.py | ||
| messages.py | ||
| models.py | ||
| notes.py | ||
| oauth_sessions.py | ||
| prompt_history.py | ||
| prompts.py | ||
| shared_chats.py | ||
| skills.py | ||
| tags.py | ||
| tools.py | ||
| users.py | ||