Generate training data from Excel user instructions.
ENCNGenerate training data from instructions从用户指令生成训练数据Batch produce AI training samples批量生成AI训练样本Build dataset from Excel从Excel构建数据集
FeatureENCNExcel inputExcel file supportExcel文件输入JSONL outputJSONL outputJSONL格式输出Multi-tool supportMulti-tool support支持多种工具Customizable promptCustomizable prompt可自定义提示词
python
from data_generator import Generator
# Simple / 简单
gen = Generator()
result = gen.generate(
tool_name="dev_control",
commands=["打开空调", "关闭窗帘"],
excel_file="data.xlsx"
)
# With prompt / 自定义提示词
result = gen.generate(
tool_name="alarm_remind",
commands=["提醒我起床"],
prompt_template="自定义提示词模板"
)
ParameterTypeENCNtool_namestrTool name工具名称commandslistCommand list命令列表excel_filestrExcel file pathExcel文件路径prompt_templatestrCustom prompt自定义提示词(可选)
jsonl
{"conversations": [...], "system": "..."}
{"conversations": [...], "system": "..."}
bash
npx clawhub install data-generator-waai