🪢 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: trace-level scores did not show on dataset runs table (#1810)
Marc Klingen2880bac4eb6b
diff --git a/web/src/features/datasets/server/dataset-router.ts b/web/src/features/datasets/server/dataset-router.tsindex 85f740619c..50f10abb12 100644--- a/web/src/features/datasets/server/dataset-router.ts+++ b/web/src/features/datasets/server/dataset-router.ts@@ -144,9 +144,11 @@ export const datasetRouter = createTRPCRouter({AVG(s.value) AS average_score_valueFROMdataset_run_items ri- JOIN observations o ON o.id = ri.observation_id- JOIN scores s ON s.trace_id = o.trace_id- WHERE o.project_id = ${input.projectId}+ JOIN scores s+ ON s.trace_id = ri.trace_id+ AND (ri.observation_id IS NULL OR s.observation_id = ri.observation_id) -- only include scores that are linked to the observation if observation is linked+ JOIN traces t ON t.id = s.trace_id+ WHERE t.project_id = ${input.projectId}GROUP BYri.dataset_run_id,s.name