diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index ab1d534067..76c661a2d0 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -238,6 +238,7 @@ type IVFSQConfAdapter struct { IVFConfAdapter } +// CheckTrain returns true if the index can be built with the specific index parameters. func (adapter *IVFSQConfAdapter) CheckTrain(params map[string]string) bool { params[NBITS] = strconv.Itoa(DefaultNBits) return adapter.IVFConfAdapter.CheckTrain(params)