Repository navigation
fix(eval): keep JSON similarity memory linear for long strings [2.14.40.post1] - #2038
Merged
ajay-kesavan merged 1 commit intoDec 2, 2026
Conversation
…40.post1] Backport of #2022 (ae5120c) onto 2.14.40 for the s206 agents line. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the JSON similarity memory-fix backport.
No open issues 🎉
What changed in this PR
Backports the JSON similarity memory fix to uipath 2.14.40.post1 so the s206 agents release can receive it without upgrading to 2.15.
Changes:
- Shares a linear-memory edit-distance helper between both evaluators, preserving scores.
- Adds correctness, Unicode, integration, and memory regression tests.
- Bumps the package and lockfile versions to
2.14.40.post1.
| File | Description |
|---|---|
packages/uipath/uv.lock |
Updates the locked package version. |
packages/uipath/tests/cli/evaluators/test_json_similarity_evaluator.py |
Adds distance correctness and memory regression coverage. |
packages/uipath/src/uipath/eval/evaluators/legacy_json_similarity_evaluator.py |
Replaces the legacy matrix implementation with the shared helper. |
packages/uipath/src/uipath/eval/evaluators/json_similarity_evaluator.py |
Uses the shared helper for string comparisons. |
packages/uipath/src/uipath/eval/_helpers/_edit_distance.py |
Implements two-row edit distance with matching-edge trimming. |
packages/uipath/pyproject.toml |
Sets the post-release version. |
Review effort: Balanced
|
smflorentino
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Backport of #2022 onto
uipath2.14.40, published as2.14.40.post1, so the s206uipath-agentsline can pick up the JSON Similarity evaluator memory fix. Follows therelease/v2.14.39.post1pattern; the base branch was cut from the 2.14.40 release commit (1f61248).A customer's low-code agent evals fault the serverless job with "Execution has reached the allocated memory limit" when JSON Similarity compares long outputs. Paid prod runs
uipath-agents206.5.0, which pinsuipath>=2.14.40,<2.15.0, so the fix in 2.15.15 cannot reach it.Changes
ae5120c; the only conflicts were the version lines._helpers/_edit_distance.py: shared edit distance using two rows of the shorter string instead of a full matrix. Scores are unchanged.2.14.40→2.14.40.post1inpyproject.tomlanduv.lock.Testing
tests/cli/evaluatorsandtests/cli/evalpass on this branch.Merging publishes
uipath2.14.40.post1 to PyPI.🤖 Generated with Claude Code