🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(dashboard): allow score numeric value filter and metric (#7771)
Steffen Schmitzb616b0d26032
diff --git a/web/src/__tests__/queryBuilder.servertest.ts b/web/src/__tests__/queryBuilder.servertest.tsindex 61d90a7c7e..a96d9504dc 100644--- a/web/src/__tests__/queryBuilder.servertest.ts+++ b/web/src/__tests__/queryBuilder.servertest.ts@@ -200,6 +200,39 @@ describe("queryBuilder", () => {orderBy: null,} as QueryType,],+ [+ "scores-numeric query with filters and time dimension",+ {+ view: "scores-numeric",+ dimensions: [],+ metrics: [+ {+ measure: "value",+ aggregation: "sum",+ },+ ],+ filters: [+ {+ column: "name",+ operator: "=",+ value: "Money-saved-eval-test",+ type: "string",+ },+ {+ column: "value",+ operator: ">",+ value: 0,+ type: "number",+ },+ ],+ timeDimension: {+ granularity: "auto",+ },+ fromTimestamp: "2025-07-02T12:39:49.089Z",+ toTimestamp: "2025-07-09T12:39:49.089Z",+ orderBy: null,+ } as QueryType,+ ],])("should compile query to valid SQL: (%s)",async (_name, query: QueryType) => {diff --git a/web/src/features/query/dataModel.ts b/web/src/features/query/dataModel.tsindex eb54a606d3..d85cbe8b43 100644--- a/web/src/features/query/dataModel.ts+++ b/web/src/features/query/dataModel.ts@@ -517,7 +517,7 @@ export const scoresNumericView: ViewDeclarationType = {description: "Identifier of the observation associated with the score.",},value: {- sql: "value",+ sql: "scores_numeric.value",alias: "value",type: "number",description: "Value of the score.",