Documentation
README
sn-prepare-citations(引用渲染)
处理 sn-deep-research 的 stitched.md:从 evidence.json 收集 sources[],将正文中的 [^source_id] 转换为 [N] 编号引用,插入 L0/TOC,并追加参考文献。
推荐用法(sn-deep-research v2)
python3 scripts/prepare_citations.py \
--report <report_dir>/stitched.md \
--evidence <report_dir>/sub_reports/d1.evidence.json <report_dir>/sub_reports/d2.evidence.json \
--outline <report_dir>/outline.json \
--output <report_dir>/report.md
参数
| 参数 | 说明 |
|---|---|
--report |
输入 markdown。sn-deep-research 中通常是 stitched.md |
--evidence |
全部 d*.evidence.json,用于收集 source 元数据和修复 claim-id 泄漏 |
--outline |
可选但推荐。提供 L0、TOC 和标题结构信息 |
--output |
输出 markdown。sn-deep-research 中通常是 report.md |
--no-l0 |
关闭 L0 摘要层渲染 |
--no-toc |
关闭 TOC 渲染 |
处理逻辑
This is the opening of the README. Read the full README on GitHub.