Make product-data generation resumable
This commit is contained in:
@@ -50,7 +50,7 @@ cat input.json | python skills/product-data/scripts/<tool>.py
|
||||
|
||||
## 平台内使用方式
|
||||
|
||||
在 ZK Data Agent 里,前链路输入文本化和 review 状态机仍使用平台注册的 `data_agent_*` 工具;格式转换、校验和导出使用 `python_exec` 直接执行本目录 `scripts/` 下的 portable scripts。
|
||||
在 ZK Data Agent 里,前链路输入文本化和 review 状态机仍使用平台注册的 `data_agent_*` 工具;格式转换、校验和导出使用 `python_exec` 的 `script_path` 模式直接执行本目录 `scripts/` 下的 portable scripts。不要在 `python_exec.code` 里通过 subprocess 二次调用这些脚本。
|
||||
|
||||
通过 `python_exec` 运行时,脚本会根据 `PYTHON_EXEC_SCRATCHPAD` 自动把逻辑路径 `output/...` 路由到当前会话 output 目录。独立运行时,仍按当前目录下的 `output/` 输出。
|
||||
|
||||
@@ -65,3 +65,5 @@ cat input.json | python skills/product-data/scripts/<tool>.py
|
||||
```
|
||||
|
||||
最后从 `scratchpad/normalized_records.jsonl` 统一校验和导出。
|
||||
|
||||
为避免长时间连续生成导致模型请求超时,单轮最多连续生成 3 批;超过 24 条时先阶段性停顿,用户回复“继续生成”后先统计 `scratchpad/normalized_records.jsonl` 已有行数,再从下一批 append。
|
||||
|
||||
Reference in New Issue
Block a user