include: "_default_template_yaml"
tag:
  - french_bench
  - french_bench_gen
description: "D'après l'information dans le contexte donné, quelle question a été posée pour obtenir la réponse donnée ?"
task: french_bench_fquadv2_genq
dataset_path: manu/fquad2_test
output_type: generate_until
validation_split: valid_hasAns
test_split: test_hasAns
fewshot_split: valid_hasAns
doc_to_text: "\nContexte: {{context}}\n\nRéponse: {% if answers.text| length > 0 %}{{answers.text[0]}}{% else %}{{['Impossible']}}{% endif %}\n\nQuestion:"
doc_to_target: "{{question}}"
target_delimiter: " "
should_decontaminate: true
doc_to_decontamination_query: question
generation_kwargs:
  until:
    - "\n"
# filter_list:
#   - name: remove_whitespace
#     filter:
#       - function: remove_whitespace
#       - function: take_first
metric_list:
  - metric: !function utils.rouge1
    higher_is_better: true
    aggregation:  !function utils.rouge1_agg
  - metric: !function utils.f1
    aggregation: mean
    higher_is_better: true
