Skip to content

Commit c188305

Browse files
committed
remove centroids index type
1 parent 2bcd33c commit c188305

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

weaviate/collections/classes/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
PQEncoderDistribution,
3636
PQEncoderType,
3737
VectorFilterStrategy,
38-
VectorCentroidsIndexType,
3938
_BQConfigUpdate,
4039
_PQConfigUpdate,
4140
_PQEncoderConfigUpdate,
@@ -1603,7 +1602,6 @@ class _VectorIndexConfigSPFresh(_VectorIndexConfig):
16031602
replicas: int
16041603
rng_factor: int
16051604
search_probe: int
1606-
centroids_index_type: VectorCentroidsIndexType
16071605

16081606
@staticmethod
16091607
def vector_index_type() -> str:

weaviate/collections/classes/config_methods.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
VectorDistances,
1313
VectorFilterStrategy,
1414
VectorIndexType,
15-
VectorCentroidsIndexType,
1615
Vectorizers,
1716
_BM25Config,
1817
_BQConfig,
@@ -221,11 +220,6 @@ def __get_spfresh_config(config: Dict[str, Any]) -> _VectorIndexConfigSPFresh:
221220
replicas=config["replicas"],
222221
rng_factor=config["rngFactor"],
223222
search_probe=config["searchProbe"],
224-
centroids_index_type=(
225-
VectorCentroidsIndexType(config["centroidsIndexType"])
226-
if "centroidsIndexType" in config
227-
else VectorCentroidsIndexType.HNSW
228-
),
229223
quantizer=quantizer,
230224
multi_vector=None,
231225
)

weaviate/collections/classes/config_vector_index.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@ class VectorIndexType(str, Enum):
4444
SPFRESH = "spfresh"
4545

4646

47-
class VectorCentroidsIndexType(str, Enum):
48-
"""The available index type that can be used for centroids in SPFresh.
49-
50-
Attributes:
51-
HNSW: Hierarchical Navigable Small World (HNSW) index.
52-
FLAT: flat index.
53-
"""
54-
55-
HNSW = "hnsw"
56-
FLAT = "bruteforce"
57-
58-
5947
class _MultiVectorConfigCreateBase(_ConfigCreateModel):
6048
enabled: bool = Field(default=True)
6149

@@ -148,7 +136,6 @@ class _VectorIndexConfigSPFreshCreate(_VectorIndexConfigCreate):
148136
replicas: Optional[int]
149137
rngFactor: Optional[int]
150138
searchProbe: Optional[int]
151-
centroidsIndexType: Optional[VectorCentroidsIndexType]
152139

153140
@staticmethod
154141
def vector_index_type() -> VectorIndexType:
@@ -611,7 +598,6 @@ def spfresh(
611598
replicas: Optional[int] = None,
612599
rng_factor: Optional[int] = None,
613600
search_probe: Optional[int] = None,
614-
centroids_index_type: Optional[VectorCentroidsIndexType] = None,
615601
quantizer: Optional[_QuantizerConfigCreate] = None,
616602
multi_vector: Optional[_MultiVectorConfigCreate] = None,
617603

@@ -630,7 +616,6 @@ def spfresh(
630616
replicas=replicas,
631617
rngFactor=rng_factor,
632618
searchProbe=search_probe,
633-
centroidsIndexType=centroids_index_type,
634619
quantizer=quantizer,
635620
multivector=multi_vector,
636621
)

weaviate/collections/classes/config_vectors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def __spfresh(*, quantizer: Optional[_QuantizerConfigCreate]) -> _VectorIndexCon
137137
replicas=None,
138138
rngFactor=None,
139139
searchProbe=None,
140-
centroidsIndexType=None,
141140
quantizer=quantizer,
142141
multivector=None,
143142
distance=None,

0 commit comments

Comments
 (0)