(system_instruction, input, output)
| 31 | responses.append(data["system_response"]) |
| 32 | |
| 33 | def create_text_row(system_instruction, input, output): |
| 34 | text_row = f"""<s>[INST] <</SYS>>\\nSystem: {system_instruction}\\n<</SYS>>\\n\\nHuman: {input}[/INST] \nAssistant: \n{output}</s>""" |
| 35 | return text_row |
| 36 | |
| 37 | with open("data/hyperagent_traces.jsonl", "w") as f: |
| 38 | for prompt, input, output in zip(system, chat, responses): |