UNPKG

@wavequery/conductor

Version:
19 lines (18 loc) 564 B
import { SQLTestCase } from "./evaluation"; export interface MetricResult { value: number; details?: Record<string, any>; } export interface SQLMetric { name: string; description: string; compute(generated: SQLTestCase, expected: SQLTestCase): MetricResult; } export declare class SQLMetrics { static readonly QUERY_SIMILARITY: SQLMetric; static readonly RESULT_ACCURACY: SQLMetric; private static normalizeQuery; private static calculateSimilarity; private static compareResults; private static getResultDifferences; }