Skip to content

Commit f07d50d

Browse files
committed
Fix multivector
1 parent 59a1317 commit f07d50d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

weaviate/collections/classes/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
_VectorIndexConfigDynamicUpdate,
4747
_VectorIndexConfigFlatUpdate,
4848
_VectorIndexConfigHNSWUpdate,
49+
_VectorIndexConfigSPFreshUpdate,
4950
_VectorIndexConfigUpdate,
5051
)
5152
from weaviate.collections.classes.config_vector_index import (

weaviate/collections/classes/config_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def __get_spfresh_config(config: Dict[str, Any]) -> _VectorIndexConfigSPFresh:
227227
else VectorCentroidsIndexType.HNSW
228228
),
229229
quantizer=quantizer,
230-
multi_vector=__get_multivector(config),
230+
multi_vector=None,
231231
)
232232

233233
def __get_flat_config(config: Dict[str, Any]) -> _VectorIndexConfigFlat:

weaviate/collections/classes/config_vector_index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ def spfresh(
614614
centroids_index_type: Optional[VectorCentroidsIndexType] = None,
615615
quantizer: Optional[_QuantizerConfigCreate] = None,
616616
multi_vector: Optional[_MultiVectorConfigCreate] = None,
617+
617618
) -> _VectorIndexConfigSPFreshCreate:
618619
"""Create a `_VectorIndexConfigSPFreshCreate` object to be used when defining the SPFresh vector index configuration of Weaviate.
619620

weaviate/collections/classes/config_vectors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def __hnsw(
131131
@staticmethod
132132
def __spfresh(*, quantizer: Optional[_QuantizerConfigCreate]) -> _VectorIndexConfigSPFreshCreate:
133133
return _VectorIndexConfigSPFreshCreate(
134+
distance_metric=None,
134135
maxPostingSize=None,
135136
minPostingSize=None,
136137
replicas=None,

0 commit comments

Comments
 (0)