File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -366,15 +366,14 @@ protected function createEmbeddings($clear)
366366 $ clear = true ;
367367 }
368368
369+ $ data ['embed ran at ' ] = dformat ();
370+ $ data ['embed used ' ] = (string ) $ this ->helper ->getEmbeddingModel ();
371+ $ this ->helper ->setRunData ($ data );
372+
369373 $ start = time ();
370374 $ this ->helper ->getEmbeddings ()->createNewIndex ($ skipRE , $ matchRE , $ clear );
371375 $ this ->notice ('Peak memory used: {memory} ' , ['memory ' => filesize_h (memory_get_peak_usage (true ))]);
372376 $ this ->notice ('Spent time: {time}min ' , ['time ' => round ((time () - $ start ) / 60 , 2 )]);
373-
374-
375- $ data ['embed ran at ' ] = dformat ();
376- $ data ['embed used ' ] = (string ) $ this ->helper ->getEmbeddingModel ();
377- $ this ->helper ->setRunData ($ data );
378377 }
379378
380379 /**
You can’t perform that action at this time.
0 commit comments