diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index cc826c16bb..574e747a3a 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -355,6 +355,7 @@ type ANNOYConfAdapter struct { BaseConfAdapter } +// CheckTrain checks if an annoy index can be built with specific parameters. func (adapter *ANNOYConfAdapter) CheckTrain(params map[string]string) bool { if !CheckIntByRange(params, NTREES, MinNTrees, MaxNTrees) { return false