Skip to content

compile_events.py

作用

index.json 的章节顺序拼接 by_chapter JSONL,做严格校验后输出。

调用示例

bash
uv run memory_bench/scripts/compile_events.py
uv run memory_bench/scripts/compile_events.py --chapters ch01,ch02

参数

参数说明
--chapters仅拼接指定章节(逗号分隔,按 index 顺序过滤)
--out输出 JSONL 路径
--mode输出模式(默认 preserve

输入 / 输出

  • 输入memory_bench/data/events/by_chapter/{conv_id}.jsonl
  • 输出memory_bench/data/events/compiled/all.jsonl(默认)

魔女の实验室