🪢 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
Expand seeder (#21)
Marc Klingenf59eb023b225
diff --git a/prisma/seed.ts b/prisma/seed.tsindex ed3203207b..dc9d2cafc4 100755--- a/prisma/seed.ts+++ b/prisma/seed.ts@@ -7,6 +7,8 @@ import { hash } from "bcryptjs";const prisma = new PrismaClient();+const TRACE_VOLUME = 5000;+async function main() {const user = await prisma.user.create({data: {@@ -40,12 +42,12 @@ async function main() {},});- for (let i = 0; i < 10; i++) {+ for (let i = 0; i < TRACE_VOLUME; i++) {// print progress to console with a progress bar that refreshes every 10 iterationsif (i % 10 === 0) {process.stdout.clearLine(0);process.stdout.cursorTo(0);- process.stdout.write(`Seeding ${i} of 10`);+ process.stdout.write(`Seeding ${i} of ${TRACE_VOLUME}`);}// random date within last 90 days, with a linear bias towards more recent datesconst traceTs = new Date(