Skip to content

Commit

Permalink
Merge branch 'latency-cost-in-eval' of https://github.com/Agenta-AI/a…
Browse files Browse the repository at this point in the history
…genta into latency-cost-in-eval
  • Loading branch information
bekossy committed Mar 29, 2024
2 parents 52fb907 + 1a94867 commit 9eec347
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions agenta-backend/agenta_backend/tasks/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,9 @@ def evaluate(
for evaluator_config_db in evaluator_config_dbs:
logger.debug(f"Evaluating with evaluator: {evaluator_config_db}")
if correct_answer_column in data_point:
output_value = (
app_output.result.value["output"]
if isinstance(app_output.result.value, dict)
else app_output.result.value
)
result = evaluators_service.evaluate(
evaluator_key=evaluator_config_db.evaluator_key,
output=output_value,
output=app_output.result.value,
correct_answer=data_point[correct_answer_column],
settings_values=evaluator_config_db.settings_values,
app_params=app_variant_parameters,
Expand Down

0 comments on commit 9eec347

Please sign in to comment.