🪢 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: correct parsing of scores for evals (#2429)
Max Deichmannf97bd913b681
diff --git a/worker/src/features/evaluation/eval-service.ts b/worker/src/features/evaluation/eval-service.tsindex bc18153d44..45c5ffa8ce 100644--- a/worker/src/features/evaluation/eval-service.ts+++ b/worker/src/features/evaluation/eval-service.ts@@ -298,18 +298,18 @@ export const evaluate = async ({// persist the score and update the job statusconst scoreId = randomUUID();- await kyselyPrisma.$kysely- .insertInto("scores")- .values({++ await prisma.score.create({+ data: {id: scoreId,- trace_id: job.job_input_trace_id,+ traceId: job.job_input_trace_id,name: config.score_name,value: parsedLLMOutput.score,comment: parsedLLMOutput.reasoning,- source: sql`'EVAL'::"ScoreSource"`,- project_id: event.projectId,- })- .execute();+ source: "EVAL",+ projectId: event.projectId,+ },+ });logger.info(`Evaluating job ${event.jobExecutionId} persisted score ${scoreId} for trace ${job.job_input_trace_id}`