Open
Conversation
Add LegacyCSVExactMatchEvaluator for comparing specific CSV columns with support for: - Single and multiple column comparison - Case-insensitive column name matching - Line-by-line evaluation with header preservation - Automatic job attachment download - Sample project demonstrating CSV evaluation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
03e8afb to
7437cb2
Compare
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
Add LegacyCSVExactMatchEvaluator for comparing specific CSV columns in agent evaluation outputs.
Features
✅ Single and multiple column comparison - Compare one or more CSV columns (e.g., "Name" or "Name,Age")
✅ Case-insensitive column name matching - "Name", "NAME", "name" all match
✅ Line-by-line evaluation - Evaluate each CSV row separately with header preservation
✅ Automatic job attachment download - Seamlessly handles attachment URIs via base class
✅ Detailed error messages - Clear feedback for missing columns or invalid CSV format
Implementation Details
New Evaluator
src/uipath/eval/evaluators/legacy_csv_exact_match_evaluator.pyLegacyEvaluatorType.CSVColumnExactMatch(type 10)targetSubOutputKeyfor column names (comma-separated)Key Implementation Features
_get_actual_output()for proper extraction withtargetOutputKeycsv.DictReaderfor reliable parsingSample Project
New sample:
samples/csv_employee_generator/BaseModelfor Input/Output schemas[tool.uv.sources]Test Coverage
✅ All 1702 tests pass including 22 new CSV evaluator tests
Test Results
Files Changed
Core Implementation:
src/uipath/eval/evaluators/legacy_csv_exact_match_evaluator.py(419 lines)tests/cli/evaluators/test_legacy_csv_exact_match_evaluator.py(639 lines)evaluator.pydiscriminator mappingmodels.pywith new enum valueSample Project:
samples/csv_employee_generator/main.py- CSV generator agentsamples/csv_employee_generator/evaluations/- 3 evaluators, 6 test casessamples/csv_employee_generator/pyproject.toml- Local package dependenciesBreaking Changes
None - This is a new evaluator type.
Related Issues
Implements CSV column comparison evaluator for agent evaluation framework.
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com