diff --git a/pkg/util/distance/calc_distance.go b/pkg/util/distance/calc_distance.go index 99d1a6cead..3a3e4558d7 100644 --- a/pkg/util/distance/calc_distance.go +++ b/pkg/util/distance/calc_distance.go @@ -54,8 +54,8 @@ func CosineImplPure(a []float32, b []float32) float32 { } var ( - L2Impl func(a []float32, b []float32) float32 = IPImplPure - IPImpl func(a []float32, b []float32) float32 = L2ImplPure + L2Impl func(a []float32, b []float32) float32 = L2ImplPure + IPImpl func(a []float32, b []float32) float32 = IPImplPure CosineImpl func(a []float32, b []float32) float32 = CosineImplPure )