Skip to content

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

fix: seeder for priojectId on scores

Marc Klingen70e1426790ae
diff --git a/packages/shared/prisma/seed.ts b/packages/shared/prisma/seed.ts
index 6ec54d945f..4a0db34fd5 100644
--- a/packages/shared/prisma/seed.ts
+++ b/packages/shared/prisma/seed.ts
@@ -501,6 +501,7 @@ function createObjects(
value: Math.floor(Math.random() * 3) - 1,
timestamp: traceTs,
source: ScoreSource.REVIEW,
+ projectId,
},
]
: []),
@@ -512,6 +513,7 @@ function createObjects(
value: Math.floor(Math.random() * 10) - 5,
timestamp: traceTs,
source: ScoreSource.API,
+ projectId,
},
]
: []),
@@ -693,6 +695,7 @@ function createObjects(
observationId: generation.id,
traceId: trace.id,
source: ScoreSource.API,
+ projectId: trace.projectId,
});
if (Math.random() > 0.6)
scores.push({
@@ -701,6 +704,7 @@ function createObjects(
observationId: generation.id,
traceId: trace.id,
source: ScoreSource.API,
+ projectId: trace.projectId,
});
for (let l = 0; l < Math.floor(Math.random() * 2); l++) {