🪢 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
chore: don't create traces in evaluation service (#4334)
marliessophiedde28f21fa7b
diff --git a/worker/src/features/evaluation/evalService.ts b/worker/src/features/evaluation/evalService.tsindex 6f3e647648..2ad5313e2f 100644--- a/worker/src/features/evaluation/evalService.ts+++ b/worker/src/features/evaluation/evalService.ts@@ -639,7 +639,7 @@ async function callLLM(evalScoreSchema: z.ZodObject<{ score: z.ZodNumber; reasoning: z.ZodString }>,): Promise<z.infer<typeof evalScoreSchema>> {try {- const { completion, processTracedEvents } = await fetchLLMCompletion({+ const { completion } = await fetchLLMCompletion({streaming: false,apiKey: decrypt(llmApiKey.secretKey), // decrypt the secret keybaseURL: llmApiKey.baseURL || undefined,@@ -658,23 +658,8 @@ async function callLLM(},structuredOutputSchema: evalScoreSchema,config: llmApiKey.config,- traceParams: {- tags: ["langfuse:evaluation:llm-as-a-judge"],- traceName: `eval-llm-${jeId.slice(0, 5)}`,- traceId: jeId,- projectId: template.projectId,- authCheck: {- validKey: true,- scope: {- projectId: template.projectId,- accessLevel: "all",- } as any,- },- tokenCountDelegate: tokenCount,- },});- await processTracedEvents();return evalScoreSchema.parse(completion);} catch (e) {logger.error(