@@ -174,7 +174,7 @@ export class QueryEvaluationInfo {
174174 db : dataset ,
175175 logPath : this . evalLogPath ,
176176 } ) ;
177-
177+
178178 }
179179 const params : messages . EvaluateQueriesParams = {
180180 db : dataset ,
@@ -204,7 +204,7 @@ export class QueryEvaluationInfo {
204204 queryInfo . evalLogSummaryLocation = this . evalLogSummaryPath ;
205205 fs . readFile ( this . evalLogEndSummaryPath , ( err , buffer ) => {
206206 if ( err ) {
207- throw new Error ( `Could not read structured evaluator log end of summary file at ${ this . evalLogEndSummaryPath } .` ) ;
207+ throw new Error ( `Could not read structured evaluator log end of summary file at ${ this . evalLogEndSummaryPath } .` ) ;
208208 }
209209 void qs . logger . log ( ' --- Evaluator Log Summary --- ' , { additionalLogLocation : this . logPath } ) ;
210210 void qs . logger . log ( buffer . toString ( ) , { additionalLogLocation : this . logPath } ) ;
@@ -334,7 +334,7 @@ export class QueryEvaluationInfo {
334334 /**
335335 * Holds if this query already has a completed structured evaluator log
336336 */
337- async hasEvalLog ( ) : Promise < boolean > {
337+ async hasEvalLog ( ) : Promise < boolean > {
338338 return fs . pathExists ( this . evalLogPath ) ;
339339 }
340340
@@ -755,8 +755,12 @@ export async function compileAndRunQueryAgainstDatabase(
755755 let availableMlModels : cli . MlModelInfo [ ] = [ ] ;
756756 if ( await cliServer . cliConstraints . supportsResolveMlModels ( ) ) {
757757 try {
758- availableMlModels = ( await cliServer . resolveMlModels ( diskWorkspaceFolders ) ) . models ;
759- void logger . log ( `Found available ML models at the following paths: ${ availableMlModels . map ( x => `'${ x . path } '` ) . join ( ', ' ) } .` ) ;
758+ availableMlModels = ( await cliServer . resolveMlModels ( diskWorkspaceFolders , initialInfo . queryPath ) ) . models ;
759+ if ( availableMlModels . length ) {
760+ void logger . log ( `Found available ML models at the following paths: ${ availableMlModels . map ( x => `'${ x . path } '` ) . join ( ', ' ) } .` ) ;
761+ } else {
762+ void logger . log ( 'Did not find any available ML models.' ) ;
763+ }
760764 } catch ( e ) {
761765 const message = `Couldn't resolve available ML models for ${ qlProgram . queryPath } . Running the ` +
762766 `query without any ML models: ${ e } .` ;
0 commit comments