Skip to content

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

fix(scores): table source filter (#2144)

marliessophieadc01014c0d4
diff --git a/web/src/server/api/definitions/scoresTable.ts b/web/src/server/api/definitions/scoresTable.ts
index 076289737a..79b57b860d 100644
--- a/web/src/server/api/definitions/scoresTable.ts
+++ b/web/src/server/api/definitions/scoresTable.ts
@@ -1,6 +1,7 @@
import {
type OptionsDefinition,
type ColumnDefinition,
+ ScoreSource,
} from "@langfuse/shared";
export const scoresTableCols: ColumnDefinition[] = [
@@ -31,8 +32,9 @@ export const scoresTableCols: ColumnDefinition[] = [
{
name: "Source",
id: "source",
- type: "string",
- internal: 's."source"',
+ type: "stringOptions",
+ internal: 's."source"::text',
+ options: Object.values(ScoreSource).map((value) => ({ value })),
},
{
name: "Name",