mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-22 21:50:42 -05:00
fix: knowledge search fails silently after an embedding size change (#34764)
With the default Chroma vector database, a failed knowledge search was dropped without a trace. The common case is switching to an embedding model with a different vector size without reindexing. Every search then came back empty, and neither the response nor the server log said why. The error, including Chroma's dimension mismatch message, now shows up in the server log, so an admin can see that a reindex is needed. Search results themselves do not change, and a knowledge base with no files yet still stays quiet. Fixes #34761
This commit is contained in:
1 parent
584d71152e
commit
5c55ccf39f
1 file changed
+3
@@ -105,7 +105,10 @@ class ChromaClient(VectorDBBase):
|
||||
}
|
||||
)
|
||||
return None
|
||||
except NotFoundError:
|
||||
return None
|
||||
except Exception as e:
|
||||
log.exception('Error searching collection %s: %s', collection_name, e)
|
||||
return None
|
||||
|
||||
def query(self, collection_name: str, filter: dict, limit: Optional[int] = None) -> Optional[GetResult]:
|
||||
|
||||
Reference in new issue
Block a user