We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4fa5f commit 0292fa0Copy full SHA for 0292fa0
1 file changed
weaviate/collections/classes/config_vector_index.py
@@ -80,7 +80,10 @@ def vector_index_type() -> VectorIndexType: ...
80
def _to_dict(self) -> Dict[str, Any]:
81
ret_dict = super()._to_dict()
82
if self.quantizer is not None:
83
- ret_dict[self.quantizer.quantizer_name()] = self.quantizer._to_dict()
+ 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()
87
if self.distance is not None:
88
ret_dict["distance"] = str(self.distance.value)
89
if self.multivector is not None and self.multivector.encoding is not None:
0 commit comments