Skip to content

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

infra: improve eval logs (#2993)

Max Deichmann9e304ad873d6
diff --git a/worker/src/features/evaluation/eval-service.ts b/worker/src/features/evaluation/eval-service.ts
index 037c8e9077..46285d0c75 100644
--- a/worker/src/features/evaluation/eval-service.ts
+++ b/worker/src/features/evaluation/eval-service.ts
@@ -246,7 +246,9 @@ export const evaluate = async ({
),
});
- logger.info(`Compiled prompt ${prompt}`);
+ logger.info(
+ `Evaluating job ${event.jobExecutionId} compiled prompt ${prompt}`
+ );
const parsedOutputSchema = z
.object({
@@ -278,8 +280,7 @@ export const evaluate = async ({
if (!parsedKey.success) {
// this will fail the eval execution if a user deletes the API key.
logger.error(
- `API key for provider ${template.provider} and project ${event.projectId} not
- found. Eval will fail. ${parsedKey.error}`
+ `Evaluating job ${event.jobExecutionId} did not find API key for provider ${template.provider} and project ${event.projectId}. Eval will fail. ${parsedKey.error}`
);
throw new LangfuseNotFoundError(
`API key for provider ${template.provider} and project ${event.projectId} not found.`