🔄 データ変換の流れ

入力(生データ)
{ "title": "新種発見", "summary": "発見した" }
出力(Gemma-3形式)
<start_of_turn>user 新種発見<end_of_turn> <start_of_turn>model 発見した<end_of_turn>
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>"""