Fix conflict in shard.go and add manhattan.go
@@ -109,6 +109,9 @@ func NewShard(ctx context.Context, promMetrics *monitoring.PrometheusMetrics,
case hnsw.DistanceL2Squared:
distProv = distancer.NewL2SquaredProvider()
// here I can add new cases for manhattan distance, minowski distance etc
+ case "manhattan":
+ // set distProv as distancer.NewManhattanProvide()
+ distProv = distancer.NewManhattanProvider()
default:
return nil, errors.Errorf("unrecognized distance metric %q,"+
"choose one of [\"cosine\", \"dot\", \"l2-squared\"]", hnswUserConfig.Distance)
