Skip to content

Commit 0292fa0

Browse files
committed
Fix sending uncompressed quantizer
1 parent 6b4fa5f commit 0292fa0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

weaviate/collections/classes/config_vector_index.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ def vector_index_type() -> VectorIndexType: ...
8080
def _to_dict(self) -> Dict[str, Any]:
8181
ret_dict = super()._to_dict()
8282
if self.quantizer is not None:
83-
ret_dict[self.quantizer.quantizer_name()] = self.quantizer._to_dict()
83+
if isinstance(self.quantizer, _UncompressedConfigCreate):
84+
ret_dict[self.quantizer.quantizer_name()] = True
85+
else:
86+
ret_dict[self.quantizer.quantizer_name()] = self.quantizer._to_dict()
8487
if self.distance is not None:
8588
ret_dict["distance"] = str(self.distance.value)
8689
if self.multivector is not None and self.multivector.encoding is not None:

0 commit comments

Comments
 (0)