Skip to content

Conversation

radu-mocanu
Copy link
Contributor

@radu-mocanu radu-mocanu commented Oct 15, 2025

  • add support for custom evaluators
  • refactored coded evaluator files pushing to deduplicate code
  • push custom evaluators (.py files) and evaluators types files

Add and register custom evaluator

  1. (Optional) Add a new evaluator -> can be created manually in the evals/custom-evaluators directory
uipath add evaluator my_custom_evaluator
  1. Implement the logic

  2. Register the evaluator

uipath register evaluator my_custom_evaluator
  1. Apply it to any dataset

The custom evaluator is self registering when the code is pushed

@radu-mocanu radu-mocanu self-assigned this Oct 15, 2025
@radu-mocanu radu-mocanu force-pushed the feat/custom-evals branch 3 times, most recently from 11f04b6 to 17257c4 Compare October 15, 2025 15:08
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Oct 15, 2025
@radu-mocanu radu-mocanu requested a review from Copilot October 15, 2025 15:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for custom evaluators by introducing CLI commands to create and register user-defined evaluators. Users can now extend the evaluation framework with custom logic tailored to their specific needs.

Key changes:

  • Added uipath add evaluator command to scaffold new custom evaluators from a template
  • Added uipath register evaluator command to generate evaluator specifications and type definitions
  • Implemented dynamic loading of custom evaluators from the filesystem during evaluation runs

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/uipath/eval/coded_evaluators/init.py Exports base evaluator classes for custom evaluator implementation
src/uipath/_utils/constants.py Defines custom evaluator prefix constant for file-based evaluator identification
src/uipath/_cli/cli_register.py Implements registration command that parses custom evaluators and generates specs
src/uipath/_cli/cli_add.py Implements add command that scaffolds new custom evaluators from template
src/uipath/_cli/_utils/_resources.py Defines resource enum for CLI commands
src/uipath/_cli/_templates/custom_evaluator.py.template Template file for generating new custom evaluators
src/uipath/_cli/_evals/_runtime.py Fixed incorrect variable reference in eval execution
src/uipath/_cli/_evals/_evaluator_factory.py Extended factory to dynamically load custom evaluators from files
src/uipath/_cli/init.py Registers new CLI commands
samples/calculator/pyproject.toml Updated dependency to local development version
samples/calculator/main.py Added operator tracking for evaluation purposes
samples/calculator/evals/evaluators/types/correct-operator-evaluator-types.json Generated type definition for custom evaluator
samples/calculator/evals/evaluators/correct-operator-evaluator.json Generated spec for custom evaluator
samples/calculator/evals/eval-sets/default.json Added custom evaluator to evaluation set
samples/calculator/evals/custom-evaluators/correct_operator.py Example custom evaluator implementation
samples/calculator/README.md Documentation for using custom evaluators

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@radu-mocanu radu-mocanu force-pushed the feat/custom-evals branch 3 times, most recently from f5f90fd to 1731515 Compare October 15, 2025 15:29
@radu-mocanu radu-mocanu changed the title feat: add support for custom evaluators [WIP] feat: add support for custom evaluators Oct 15, 2025
@radu-mocanu radu-mocanu force-pushed the feat/custom-evals branch 2 times, most recently from 319c426 to 1b424a7 Compare October 16, 2025 11:54
@radu-mocanu radu-mocanu changed the title [WIP] feat: add support for custom evaluators feat: add support for custom evaluators Oct 16, 2025
@radu-mocanu radu-mocanu force-pushed the feat/custom-evals branch 2 times, most recently from 785474a to 1fb6650 Compare October 16, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant