def convert(data): # 質問と回答を作成 question = data['title'] answer = data['summary'] # Gemma-3形式に変換 return f"""<start_of_turn>user {question}<end_of_turn> <start_of_turn>model {answer}<end_of_turn>"""