mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #22697] issue: New files added AFTER enabling BYPASS_EMBEDDING_AND_RETRIEVAL are NOT indexed for vector search, causing inconsistent search results #123103
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @R-omk on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22697
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.17.8
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When
BYPASS_EMBEDDING_AND_RETRIEVALis enabled, ALL files in a knowledge base should behave consistently:Option A (preferred): All files (old and new) should work the same way
query_knowledge_files()should either work with full text or return a clear errorOption B: Clear user feedback
Option C: Intelligent fallback
query_knowledge_files()should detect whenBYPASS_EMBEDDING_AND_RETRIEVALis enabledActual Behavior
When
BYPASS_EMBEDDING_AND_RETRIEVALis enabled AFTER files have already been indexed:Old files (indexed BEFORE enabling the option):
query_knowledge_files()resultsNew files (added AFTER enabling the option):
save_docs_to_vector_db)query_knowledge_files()resultsThis creates confusion because:
query_knowledge_files()don't know about the bypass settingSteps to Reproduce
query_knowledge_files()BYPASS_EMBEDDING_AND_RETRIEVAL = Truein Settings > Documentsquery_knowledge_files()to search for content from the new fileLogs & Screenshots
N/A - Not applicable to this issue (behavioral/UX bug, not a crash or error).
Code evidence:
In
backend/open_webui/routers/retrieval.py:1819-1827:In
backend/open_webui/tools/builtin.py:1902-1908:Note: The
query_knowledge_files()function does not checkBYPASS_EMBEDDING_AND_RETRIEVALand always attempts vector search, causing incomplete results when some files lack vector indices.Additional Information
No response
@tjbck commented on GitHub (Mar 15, 2026):
Intended behaviour.