open-webui/backend/open_webui/retrieval
Classic298 5796d44363
fix: defer missing-local-embedding error so it can't crash boot (#25683)
get_embedding_function runs at import time (main.py), so the empty-engine
+ no-model guard added in 55ca719b raised ValueError during startup and
bricked the instance: a blank embedding model set via the UI made the app
unbootable, with no way back into settings to undo it. Move the check into
the returned coroutine so construction always succeeds and the error only
fires when something actually embeds, surfacing as a clear request error
instead of the old cryptic 'NoneType has no attribute encode'.


Fixes #25634
Fixes #25165

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 03:21:09 -05:00
..
loaders fix: repair Mistral OCR async upload (aiohttp.streams.FilePayload removed) (#25779) 2026-06-29 02:05:54 -05:00
models refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
vector fix: chroma has_collection always returns False (name vs Collection) (#25780) 2026-06-29 02:15:05 -05:00
web refac 2026-06-29 01:52:07 -05:00
external.py refac 2026-06-23 23:13:32 +02:00
utils.py fix: defer missing-local-embedding error so it can't crash boot (#25683) 2026-06-29 03:21:09 -05:00