public void Train(ReqTrain req) { _preprocessor.Clear(); _preprocessor.ProcessFolders(new string[] { Path.Combine("assets", req.File) }); _preprocessor.AfterAdd(); // await _operator.InsertVectors(_preprocessor.TotalList); currentTask = Task.Run(async() => await _operator.InsertVectors(_preprocessor.TotalList)); }