Skip to content

Commit 5b2cb77

Browse files
author
Joan Fontanals Martinez
committed
fix: fix the hnswlib tests
1 parent 3f4e86f commit 5b2cb77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docarray/index/backends/hnswlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, db_config=None, **kwargs):
115115
sub_docs_exist = True
116116
if safe_issubclass(col.docarray_type, AnyDocArray):
117117
continue
118-
if not col.config:
118+
if not col.config or 'dim' not in col.config:
119119
# non-tensor type; don't create an index
120120
continue
121121
if not load_existing and (

0 commit comments

Comments
 (0)