🪢 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(evals): update code evaluator docs link (#13890)
Tobias Wochingerffedf2b8192b
diff --git a/packages/shared/src/server/evals/codeEvalDispatcherTypes.ts b/packages/shared/src/server/evals/codeEvalDispatcherTypes.tsindex a34609f084..f9061f8e0a 100644--- a/packages/shared/src/server/evals/codeEvalDispatcherTypes.ts+++ b/packages/shared/src/server/evals/codeEvalDispatcherTypes.ts@@ -4,9 +4,8 @@ import { ScoreDataTypeEnum, TEXT_SCORE_MAX_LENGTH } from "../../domain/scores";export const CODE_EVAL_SOURCE_MAX_BYTES = 256 * 1024;export const CODE_EVAL_DISPATCH_PAYLOAD_MAX_BYTES = 5.5 * 1024 * 1024;export const CODE_EVAL_DISPATCH_RESULT_MAX_BYTES = 256 * 1024;-// TODO: Replace with a dedicated code-based evaluator limits docs page.export const CODE_EVAL_DOCS_URL =- "https://langfuse.com/docs/evaluation/overview";+ "https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators";export function withCodeEvalDocs(message: string): string {const trimmedMessage = message.trim();diff --git a/scripts/code-eval-runners/node/code-based-eval-handler.mjs b/scripts/code-eval-runners/node/code-based-eval-handler.mjsindex 135ae5ec98..ec68aeb349 100644--- a/scripts/code-eval-runners/node/code-based-eval-handler.mjs+++ b/scripts/code-eval-runners/node/code-based-eval-handler.mjs@@ -1,6 +1,7 @@import { stripTypeScriptTypes } from "node:module";-const CODE_EVAL_DOCS_URL = "https://langfuse.com/docs/evaluation/overview";+const CODE_EVAL_DOCS_URL =+ "https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators";// `stripTypeScriptTypes` is loaded lazily - we call it hear to avoid doing the import in the call itselfstripTypeScriptTypes("");diff --git a/worker/src/features/evaluation/codeBased/localCodeEvalDispatcher.test.ts b/worker/src/features/evaluation/codeBased/localCodeEvalDispatcher.test.tsindex f417c6dc08..691f21ec9e 100644--- a/worker/src/features/evaluation/codeBased/localCodeEvalDispatcher.test.ts+++ b/worker/src/features/evaluation/codeBased/localCodeEvalDispatcher.test.ts@@ -80,7 +80,7 @@ describe("LocalCodeEvalDispatcher", () => {retryable: false,} satisfies Partial<CodeEvalDispatcherError>);await expect(promise).rejects.toThrow(- "See https://langfuse.com/docs/evaluation/overview for details.",+ "See https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators for details.",);});diff --git a/worker/src/queues/__tests__/codeEvalExecutionQueueProcessor.test.ts b/worker/src/queues/__tests__/codeEvalExecutionQueueProcessor.test.tsindex bc82a04c93..f34a93eec2 100644--- a/worker/src/queues/__tests__/codeEvalExecutionQueueProcessor.test.ts+++ b/worker/src/queues/__tests__/codeEvalExecutionQueueProcessor.test.ts@@ -241,7 +241,7 @@ describe("codeEvalExecutionQueueProcessor", () => {it("should preserve retryable code eval timeout messages on the final retry attempt", async () => {const timeoutMessage =- "Evaluator timed out. Code-based evaluators must complete within the configured runtime limit. Long executions can be caused by network calls, which are forbidden and may never complete. Remove network calls, optimize your evaluator code, and try again. See https://langfuse.com/docs/evaluation/overview for details.";+ "Evaluator timed out. Code-based evaluators must complete within the configured runtime limit. Long executions can be caused by network calls, which are forbidden and may never complete. Remove network calls, optimize your evaluator code, and try again. See https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators for details.";const error = new CodeEvalExecutionError({code: CodeEvalDispatcherErrorCodes.TIMEOUT,message: timeoutMessage,