Skip to content

Commit fd7e721

Browse files
author
Andrei Bratu
committed
PR feedback
1 parent c66b3e5 commit fd7e721

File tree

1 file changed

+3
-4
lines changed
  • src/humanloop/eval_utils

1 file changed

+3
-4
lines changed

src/humanloop/eval_utils/run.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def _overloaded_log(
168168
**kwargs,
169169
}
170170
)
171-
# Log has been added to evaluation, reset the context for current Thread
172171

173172
return response
174173

@@ -412,7 +411,7 @@ def run_eval(
412411
def process_datapoint(dp: Datapoint, file_id: str, file_path: str, run_id: str):
413412
def upload_callback(log: dict):
414413
# OTel exporter will call this after the Log is uploaded
415-
_add_log_to_evaluation(
414+
_run_local_evaluators(
416415
client=client,
417416
log=log,
418417
datapoint_target=dp.target,
@@ -492,7 +491,7 @@ def process_datapoint(dp: Datapoint, file_id: str, file_path: str, run_id: str):
492491
)
493492
logger.warning(msg=f"\nYour {type_}'s `callable` failed for Datapoint: {dp.id}. \n Error: {str(e)}")
494493

495-
_add_log_to_evaluation(
494+
_run_local_evaluators(
496495
client=client,
497496
log=log,
498497
datapoint_target=dp.target,
@@ -714,7 +713,7 @@ def _check_evaluation_improvement(
714713
raise ValueError(f"Evaluator {evaluator_path} not found in the stats.")
715714

716715

717-
def _add_log_to_evaluation(
716+
def _run_local_evaluators(
718717
client: "BaseHumanloop",
719718
log: dict,
720719
datapoint_target: typing.Optional[typing.Dict[str, DatapointResponseTargetValue]],

0 commit comments

Comments
 (0)