4545 _VectorIndexConfigDynamicUpdate ,
4646 _VectorIndexConfigFlatUpdate ,
4747 _VectorIndexConfigHNSWUpdate ,
48- _VectorIndexConfigSPFreshUpdate ,
48+ _VectorIndexConfigHFreshUpdate ,
4949 _VectorIndexConfigUpdate ,
5050)
5151from weaviate .collections .classes .config_vector_index import (
@@ -1888,7 +1888,7 @@ def vector_index_type() -> str:
18881888VectorIndexConfigHNSW = _VectorIndexConfigHNSW
18891889
18901890@dataclass
1891- class _VectorIndexConfigSPFresh (_VectorIndexConfig ):
1891+ class _VectorIndexConfigHFresh (_VectorIndexConfig ):
18921892 distance_metric : VectorDistances
18931893 max_posting_size : int
18941894 min_posting_size : int
@@ -1898,9 +1898,9 @@ class _VectorIndexConfigSPFresh(_VectorIndexConfig):
18981898
18991899 @staticmethod
19001900 def vector_index_type () -> str :
1901- return VectorIndexType .SPFRESH .value
1901+ return VectorIndexType .HFRESH .value
19021902
1903- VectorIndexConfigSPFresh = _VectorIndexConfigSPFresh
1903+ VectorIndexConfigHFresh = _VectorIndexConfigHFresh
19041904
19051905@dataclass
19061906class _VectorIndexConfigFlat (_VectorIndexConfig ):
@@ -1975,7 +1975,7 @@ def to_dict(self) -> Dict[str, Any]:
19751975class _NamedVectorConfig (_ConfigBase ):
19761976 vectorizer : _NamedVectorizerConfig
19771977 vector_index_config : Union [
1978- VectorIndexConfigHNSW , VectorIndexConfigFlat , VectorIndexConfigDynamic , VectorIndexConfigSPFresh
1978+ VectorIndexConfigHNSW , VectorIndexConfigFlat , VectorIndexConfigDynamic , VectorIndexConfigHFresh
19791979 ]
19801980
19811981 def to_dict (self ) -> Dict :
@@ -2000,7 +2000,7 @@ class _CollectionConfig(_ConfigBase):
20002000 reranker_config : Optional [RerankerConfig ]
20012001 sharding_config : Optional [ShardingConfig ]
20022002 vector_index_config : Union [
2003- VectorIndexConfigHNSW , VectorIndexConfigFlat , VectorIndexConfigDynamic , VectorIndexConfigSPFresh , None
2003+ VectorIndexConfigHNSW , VectorIndexConfigFlat , VectorIndexConfigDynamic , VectorIndexConfigHFresh , None
20042004 ]
20052005 vector_index_type : Optional [VectorIndexType ]
20062006 vectorizer_config : Optional [VectorizerConfig ]
@@ -2641,21 +2641,21 @@ def dynamic(
26412641 )
26422642
26432643 @staticmethod
2644- def spfresh (
2644+ def hfresh (
26452645 max_posting_size : Optional [int ] = None ,
26462646 min_posting_size : Optional [int ] = None ,
26472647 rng_factor : Optional [int ] = None ,
26482648 search_probe : Optional [int ] = None ,
26492649 quantizer : Optional [_RQConfigUpdate ] = None ,
2650- ) -> _VectorIndexConfigSPFreshUpdate :
2651- """Create an `_VectorIndexConfigSPFreshUpdate ` object to update the configuration of the SPFresh vector index.
2650+ ) -> _VectorIndexConfigHFreshUpdate :
2651+ """Create an `_VectorIndexConfigHFreshUpdate ` object to update the configuration of the HFresh vector index.
26522652
26532653 Use this method when defining the `vectorizer_config` argument in `collection.update()`.
26542654
26552655 Args:
26562656 See [the docs](https://weaviate.io/developers/weaviate/configuration/indexes#configure-the-inverted-index) for a more detailed view!
26572657 """ # noqa: D417 (missing argument descriptions in the docstring)
2658- return _VectorIndexConfigSPFreshUpdate (
2658+ return _VectorIndexConfigHFreshUpdate (
26592659 maxPostingSize = max_posting_size ,
26602660 minPostingSize = min_posting_size ,
26612661 rngFactor = rng_factor ,
0 commit comments