mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-30 17:25:30 -05:00
[GH-ISSUE #16544] issue: Can't search knowlege by any term like we can search for Models in Workspace view #88691
Reference in New Issue
Block a user
Originally created by @le-patenteux on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16544
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.21
Ollama Version (if applicable)
N/A
Operating System
Ubuntu server 24.04
Browser (if applicable)
Brave, Firefox
Confirmation
README.md.Expected Behavior
When searching for Knowlegbases in the Workspace, I should be able to search using any term, like when searching for models.
Model search: Expected behavior (not the same for Knowlege)
When doing a Model search in the workspace, I can search by any combination of letter that are within the title or description and this is perfect!
Actual Behavior
When in worskpace view, under "Knowledge", to search for a specific collection, I need to search using the exact terms, starting only by the first letter of the Knowlegebase name
If I search using the first term, starting by the first letter it works
It also does the same with the first term of the description
Steps to Reproduce
In any recent version of Open-Webui, go to the "Workspace" menu, and in "Knowledge" Search for a term without starting by the exact first letter
You will get no result.
Logs & Screenshots
See screenshots above.
Additional Information
With larger Knowledgebases, it makes searching a real issue. You have to remember exactly the name of the collection you created to search for it, which defies the purpose.
Sorry if my english is not perfect, I usually speak French
@rgaricano commented on GitHub (Aug 12, 2025):
Probably is because query is converted to lower case, and it is done to Unicode and in standardized methods, maybe some accents could be lost:
https://github.com/open-webui/open-webui/blob/438e5d966f0f64f9ea3feab22724a5bd96a4127b/src/lib/components/workspace/Models.svelte#L64
Not sure, but using .toLocaleLowerCase() could solve this (or using other string normalization method)
The search use include, then doesn't matter where the string it's, if working correctly it have to search for the string in any place of the name.
@le-patenteux commented on GitHub (Aug 12, 2025):
It has the same issue with un-accented characters... When searching, it will not search for strings inside the name (it does it correctly for models, not for knowlege) and it hapens on 3 different servers I tried it on.
@rgaricano commented on GitHub (Aug 12, 2025):
Yes, it's true, I was mistaken in thinking that the problem was with models.
@tjbck commented on GitHub (Aug 13, 2025):
Addressed with c134de8799bb78f5c2c84077b464bb9f4f16a21c!
@le-patenteux commented on GitHub (Aug 14, 2025):
I am no developper, but not sure this adresses the issue directly... It seems more like a precision "score" threshold...
But that does not fix the issue that it won't search for a string in the middle of the name.
If I write the exact string, but it is in the middle of the name, it is not finding it right now... Will it really fix that?