Skip to content

Commit

Permalink
Merge pull request #14 from dankolesnikov/keep_descriptive_outputs
Browse files Browse the repository at this point in the history
Keep descriptive outputs
  • Loading branch information
benisgold authored Apr 21, 2023
2 parents ee98441 + 506725e commit 1b5a1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/evaluator_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def run_evaluator(
d['latency'] = latency

# Summary statistics
d['answerScore'] = [1 if "INCORRECT" not in text else 0 for text in d['answerScore']]
d['retrievalScore'] = [1 if "Context is relevant: True" in text else 0 for text in d['retrievalScore']]
d['answerScoreBinary'] = [1 if "INCORRECT" not in text else 0 for text in d['answerScore']]
d['retrievalScoreBinary'] = [1 if "Context is relevant: True" in text else 0 for text in d['retrievalScore']]

# Convert dataframe to dict
d_dict = d.to_dict('records')
Expand Down

1 comment on commit 1b5a1d7

@vercel
Copy link

@vercel vercel bot commented on 1b5a1d7 Apr 21, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

evaluator-ui – ./

evaluator-ui-git-main-evaluator.vercel.app
evaluator-ui.vercel.app
evaluator-ui-evaluator.vercel.app

Please sign in to comment.