Skip to content

Commit

Permalink
Fix bug in ordering code.
Browse files Browse the repository at this point in the history
  • Loading branch information
liffiton committed Jun 23, 2024
1 parent 3a195d7 commit 5ada325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/model_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def show_all_evals(args):
JOIN response_set ON response_set.id=eval_set.response_set_id
JOIN prompt_set ON prompt_set.id=response_set.prompt_set_id
"""
+ "ORDER BY prompt_set.prompt_func, prompt_set.created, response_set.model" if args.by_prompt
else "ORDER BY prompt_set.prompt_func, response_set.model, prompt_set.created"
+ ("ORDER BY prompt_set.prompt_func, prompt_set.created, response_set.model" if args.by_prompt
else "ORDER BY prompt_set.prompt_func, response_set.model, prompt_set.created")
).fetchall()

for row in eval_set_rows:
Expand Down

0 comments on commit 5ada325

Please sign in to comment.