langchain-ai / langchain-ai/langsmith-java

Logged target errors abort dataset evaluation

Open
#211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
33
Forks
8
Avg merge
8d 3h
Merged PRs (30d)
3

Description

Problem

EvaluateErrorHandling.LOG is intended to log target failures and include errored runs in the experiment. However, EvaluateRunner captures the active RunTree only after the target returns successfully.

When a target throws, runTree remains null. Although tracing records and rethrows the exception, the evaluation runner then throws IllegalStateException rather than retaining the errored run.

Expected behavior

With EvaluateErrorHandling.LOG, a target exception should create an errored run associated with its dataset example and allow the evaluation to continue.

Proposed fix

Capture the active RunTree before invoking the target function.

Acceptance criteria

  • A throwing target produces an evaluation row with LOG handling.
  • The row’s run includes the target exception.
  • The run remains linked to its source example.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in EvaluateRunner and trace how the active RunTree is captured around target invocation and how EvaluateErrorHandling.LOG processes failures. Add or update evaluation coverage for a throwing target, then verify that the evaluation continues with a row whose run contains the exception and remains linked to its dataset example.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.