diff --git a/pkg/agent/core/ngt/service/ngt_bench_test.go b/pkg/agent/core/ngt/service/ngt_bench_test.go index aa666a52b10..7ccef204c24 100644 --- a/pkg/agent/core/ngt/service/ngt_bench_test.go +++ b/pkg/agent/core/ngt/service/ngt_bench_test.go @@ -252,7 +252,7 @@ func BenchmarkSeachWithCreateIndex(b *testing.B) { for pb.Next() { _, err := n.Search( ctx, - train[insertCount], + train[12345], // use this random vector as query uint32(defaultConfig.SearchEdgeSize), defaultConfig.DefaultEpsilon, defaultConfig.DefaultRadius,