Skip to content

fix(eval): keep JSON similarity memory linear for long strings [2.14.40.post1] - #2038

Merged
ajay-kesavan merged 1 commit into
release/v2.14.40.post1from
fix/json-similarity-memory-2.14.40.post1
Dec 2, 2026
Merged

ajay-kesavan merged 1 commit into
release/v2.14.40.post1from
fix/json-similarity-memory-2.14.40.post1

Conversation

@ajay-kesavan

Copy link
Copy Markdown
Contributor

Summary

Backport of #2022 onto uipath 2.14.40, published as 2.14.40.post1, so the s206 uipath-agents line can pick up the JSON Similarity evaluator memory fix. Follows the release/v2.14.39.post1 pattern; 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-agents 206.5.0, which pins uipath>=2.14.40,<2.15.0, so the fix in 2.15.15 cannot reach it.

Changes

  • Clean cherry-pick of 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.
  • Both JSON similarity evaluators (current and legacy) call the helper.
  • Version 2.14.40 → 2.14.40.post1 in pyproject.toml and uv.lock.

Testing

  • tests/cli/evaluators and tests/cli/eval pass on this branch.
  • Peak memory for two fully different 2,000-character strings: 0.26 MB.

Merging publishes uipath 2.14.40.post1 to PyPI.

🤖 Generated with Claude Code

…40.post1]

Backport of #2022 (ae5120c) onto 2.14.40 for the s206 agents line.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime test:uipath-integrations labels Dec 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@ajay-kesavan
ajay-kesavan merged commit a91bfbb into release/v2.14.40.post1 Dec 2, 2026
50 checks passed
@ajay-kesavan
ajay-kesavan deleted the fix/json-similarity-memory-2.14.40.post1 branch December 2, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants