Skip to content

Commit

Permalink
Fix prompt for multichoice
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiazmel committed Jan 29, 2025
1 parent c791903 commit fa123e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions community_tasks/french_evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ def prompt_gpqa_fr(line, task_name: str = None):
# BAC-fr prompt function
def prompt_bac_fr(line, task_name: str = None):
prompt = f"Enoncé: {line['enonce']}\n{line['instruction']}\n"
if line["Choix"] is not None: # Multichoice evaluation
prompt += "\n".join([f"{LETTER_INDICES[ix]}.{choix}" for ix, choix in enumerate(line["choix"])])
if line["choix"] is not None: # Multichoice evaluation
# prompt += "\n".join([f"{LETTER_INDICES[ix]}.{choix}" for ix, choix in enumerate(line["choix"])])
return Doc(
task_name=task_name,
query=prompt,
choices=as_list(line["Choix"]),
gold_index=line["Choix"].index(line["Choix correct"]),
choices=as_list(line["choix"]),
gold_index=line["choix"].index(line["choix correct"]),
instruction="",
)
else:
Expand Down

0 comments on commit fa123e8

Please sign in to comment.