Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui-migration): exclude annotation scores from discovery query (#16050)

Hassieb Pakzadf1206115b29d
diff --git a/web/src/features/v4/server/v4TransitionRouter.ts b/web/src/features/v4/server/v4TransitionRouter.ts
index e9a18a7702..50b94827a1 100644
--- a/web/src/features/v4/server/v4TransitionRouter.ts
+++ b/web/src/features/v4/server/v4TransitionRouter.ts
@@ -854,6 +854,7 @@ ORDER BY bucket_time ASC, score_name ASC
AND timestamp <= {toTimestamp: DateTime64(3)}
AND NOT startsWith(environment, 'langfuse-')
AND execution_trace_id IS NULL
+ AND source != 'ANNOTATION'
AND ingestion_sdk_name NOT IN {internalSdkNames: Array(String)}
AND is_deleted = 0`;
@@ -954,6 +955,7 @@ ORDER BY ${bucketTimeSql} ASC, sdk_name ASC, sdk_version ASC, public_key ASC
AND timestamp <= {toTimestamp: DateTime64(3)}
AND NOT startsWith(environment, 'langfuse-')
AND execution_trace_id IS NULL
+ AND source != 'ANNOTATION'
AND ingestion_sdk_name NOT IN {internalSdkNames: Array(String)}
AND is_deleted = 0`;