OliveSensorAPI/datasets/processed/Book_QA_Process.md

22 lines
604 B
Markdown
Raw Normal View History

2024-05-09 02:18:07 +08:00
# Book_QA_process
共两个python文件分别为Book_QA_process_Step_1.py和Book_QA_process_Step_2.py
### Book_QA_process_Step_1.py
2024-05-09 02:18:07 +08:00
* 该代码是将我们生成的QA对jsonl数据转换为json格式
### Book_QA_process_Step_2.py
2024-05-09 02:18:07 +08:00
* 该代码是将第一步生成的json格式数据转化为可用于指令微调的数据格式并添加system
```json
{
"conversation": [
{
"system": "你由EmoLLM团队打造的心理健康助手......",
"input": "Question",
"output": "Answer"
}
]
2024-05-09 02:18:07 +08:00
}
```