File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
welearn_datastack/modules Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,23 @@ def classify_documents_per_collection(
35
35
lang = dslice .document .lang
36
36
model = dslice .embedding_model .title
37
37
collection_name = None
38
+ multilingual_collection = f"collection_welearn_mul_{ model } "
39
+ mono_collection = f"collection_welearn_{ lang } _{ model } "
38
40
# Check multilingual
39
41
for cn in collections_names_in_qdrant :
40
- multilingual_collection = f"collection_welearn_mul_{ model } "
41
42
if cn == multilingual_collection :
42
43
collection_name = multilingual_collection
43
44
44
45
# Check monolingual
45
46
for cn in collections_names_in_qdrant :
46
- mono_collection = f"collection_welearn_{ lang } _{ model } "
47
47
if cn == mono_collection :
48
48
collection_name = mono_collection
49
49
50
50
if not collection_name :
51
51
logger .error (
52
- "Collection %s not found in Qdrant, slice %s ignored" ,
53
- collection_name ,
52
+ "Collections %s or %s not found in Qdrant, slice %s ignored" ,
53
+ multilingual_collection ,
54
+ mono_collection ,
54
55
dslice .id ,
55
56
)
56
57
continue
You can’t perform that action at this time.
0 commit comments