🪢 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
feat: add support for score name filters on dashboard (#6608)
Steffen Schmitze7aa0fbe082e
diff --git a/web/src/features/query/dashboardUiTableToViewMapping.ts b/web/src/features/query/dashboardUiTableToViewMapping.tsindex 46d320c21d..4ed6b341f3 100644--- a/web/src/features/query/dashboardUiTableToViewMapping.ts+++ b/web/src/features/query/dashboardUiTableToViewMapping.ts@@ -14,6 +14,10 @@ const viewMappings: Record<z.infer<typeof views>, Record<string, string>[]> = {uiTableName: "Observation Name",viewName: "observationName",},+ {+ uiTableName: "Score Name",+ viewName: "scoreName",+ },{uiTableName: "Tags",viewName: "tags",@@ -48,6 +52,10 @@ const viewMappings: Record<z.infer<typeof views>, Record<string, string>[]> = {uiTableName: "Observation Name",viewName: "name",},+ {+ uiTableName: "Score Name",+ viewName: "scoreName",+ },{uiTableName: "User",viewName: "userId",diff --git a/web/src/features/query/dataModel.ts b/web/src/features/query/dataModel.tsindex 7ec04609d9..afcf664ea7 100644--- a/web/src/features/query/dataModel.ts+++ b/web/src/features/query/dataModel.ts@@ -51,6 +51,12 @@ export const traceView: ViewDeclarationType = {type: "string",relationTable: "observations",},+ scoreName: {+ sql: "name",+ alias: "scoreName",+ type: "string",+ relationTable: "scores",+ },},measures: {count: {@@ -181,6 +187,12 @@ export const observationsView: ViewDeclarationType = {type: "string",relationTable: "traces",},+ scoreName: {+ sql: "name",+ alias: "scoreName",+ type: "string",+ relationTable: "scores",+ },},measures: {count: {diff --git a/web/src/features/widgets/components/WidgetForm.tsx b/web/src/features/widgets/components/WidgetForm.tsxindex 66c67368e8..5913d9e00a 100644--- a/web/src/features/widgets/components/WidgetForm.tsx+++ b/web/src/features/widgets/components/WidgetForm.tsx@@ -167,6 +167,12 @@ export function WidgetForm({type: "string",internal: "internalValue",},+ {+ name: "Score Name",+ id: "scoreName",+ type: "string",+ internal: "internalValue",+ },{name: "Tags",id: "tags",diff --git a/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx b/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsxindex 920c799e20..c89df11f18 100644--- a/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx+++ b/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx@@ -133,6 +133,12 @@ export default function DashboardDetail() {type: "string",internal: "internalValue",},+ {+ name: "Score Name",+ id: "scoreName",+ type: "string",+ internal: "internalValue",+ },{name: "Tags",id: "tags",