feat: Plumb kwargs through to evaluate and evaluate_dataframe #9786
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.
evaluate
andasync_evaluate
methodsevaluate_dataframe
witheval_kwargs
, a mapping from evaluator names to kwarg dictionariesNote
Adds **kwargs passthrough to evaluator evaluate/async methods and dataframe evaluators (with per-evaluator eval_kwargs), forwarding them to LLM classification calls.
Evaluator.evaluate
/async_evaluate
now accept**kwargs
and forward to_evaluate
/_async_evaluate
(including thread-wrapper path)._evaluate
/_async_evaluate
signatures updated across base, LLM, and decorator-generated evaluators to accept**kwargs
.ClassificationEvaluator
forwards**kwargs
toLLM.generate_classification
/async_generate_classification
.evaluate_dataframe
andasync_evaluate_dataframe
accepteval_kwargs
(per-evaluator) and**kwargs
(global); merged and passed to each evaluator during task execution.Written by Cursor Bugbot for commit 3d1dd97. This will update automatically on new commits. Configure here.