Avoid draft files in product-data generation
This commit is contained in:
@@ -53,3 +53,15 @@ cat input.json | python skills/product-data/scripts/<tool>.py
|
||||
在 ZK Data Agent 里,前链路输入文本化和 review 状态机仍使用平台注册的 `data_agent_*` 工具;格式转换、校验和导出使用 `python_exec` 直接执行本目录 `scripts/` 下的 portable scripts。
|
||||
|
||||
通过 `python_exec` 运行时,脚本会根据 `PYTHON_EXEC_SCRATCHPAD` 自动把逻辑路径 `output/...` 路由到当前会话 output 目录。独立运行时,仍按当前目录下的 `output/` 输出。
|
||||
|
||||
大批量生成时,不要先写 `draft_part*.txt`。推荐每批最多 8 条,通过 stdin 调用 `normalize_dataset_draft.py`,并设置:
|
||||
|
||||
```json
|
||||
{
|
||||
"records_output_path": "scratchpad/normalized_records.jsonl",
|
||||
"append": true,
|
||||
"return_records": false
|
||||
}
|
||||
```
|
||||
|
||||
最后从 `scratchpad/normalized_records.jsonl` 统一校验和导出。
|
||||
|
||||
Reference in New Issue
Block a user