From 4775761dc81bafe13993132c779a74158aa62686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= Date: Tue, 25 Nov 2025 16:33:19 +0100 Subject: [PATCH] fix: update error logging for missing Qdrant collection and track ignored slices --- welearn_datastack/modules/qdrant_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/welearn_datastack/modules/qdrant_handler.py b/welearn_datastack/modules/qdrant_handler.py index b1fbc3a..3721611 100644 --- a/welearn_datastack/modules/qdrant_handler.py +++ b/welearn_datastack/modules/qdrant_handler.py @@ -52,8 +52,10 @@ def classify_documents_per_collection( collection_name = mono_collection else: logger.error( - f"Collection {collection_name} not found in Qdrant, slice {dslice.id} ignored", + f"Collection {collection_name} not found in Qdrant, slice {dslice.id} flagged as error", ) + ret[None].add(dslice.document_id) # type: ignore + continue if collection_name not in ret: