langchain-ai / langchain-ai/langsmith-java
Logged target errors abort dataset evaluation
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
LOGhandling. - The row’s run includes the target exception.
- The run remains linked to its source example.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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