Skip to content

Commit 09f4093

Browse files
added changes
1 parent 874638a commit 09f4093

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tok/partitioned_hnsw/partitioned_hnsw.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,8 @@ type partitionedHNSW[T c.Float] struct {
3232
}
3333

3434
func (ph *partitionedHNSW[T]) applyOptions(o opt.Options) error {
35-
if o.Specifies(NumClustersOpt) {
36-
ph.numClusters, _, _ = opt.GetOpt(o, NumClustersOpt, 1000)
37-
}
38-
39-
if o.Specifies(PartitionStratOpt) {
40-
ph.partitionStrat, _, _ = opt.GetOpt(o, PartitionStratOpt, "kmeans")
41-
}
35+
ph.numClusters, _, _ = opt.GetOpt(o, NumClustersOpt, 1000)
36+
ph.partitionStrat, _, _ = opt.GetOpt(o, PartitionStratOpt, "kmeans")
4237

4338
if ph.partitionStrat != "kmeans" && ph.partitionStrat != "query" {
4439
return errors.New("partition strategy must be kmeans or query")

0 commit comments

Comments
 (0)