From d3ab9f4b96eee7f91c9b1355cee055fdabca9730 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 5 Jan 2026 18:21:00 +0400 Subject: [PATCH] fix: failed hash in files --- backend/open_webui/routers/retrieval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index 2d17e7553..379cf4da0 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -1734,10 +1734,10 @@ def process_file( db=db, ) hash = calculate_sha256_string(text_content) - Files.update_file_hash_by_id(file.id, hash, db=db) if request.app.state.config.BYPASS_EMBEDDING_AND_RETRIEVAL: Files.update_file_data_by_id(file.id, {"status": "completed"}, db=db) + Files.update_file_hash_by_id(file.id, hash, db=db) return { "status": True, "collection_name": None, @@ -1774,6 +1774,7 @@ def process_file( {"status": "completed"}, db=db, ) + Files.update_file_hash_by_id(file.id, hash, db=db) return { "status": True,