Loading...
Loading...
Compare original and translation side by side
┌─────────────────────────────────────────────────────────────────────┐
│ Report Writing (組合能力) │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────┐ ┌────────────┐ ┌──────────────┐ ┌──────────┐ │
│ │ pdf-reader │ → │ note-writer│ → │content-valid.│ → │report-fmt│ │
│ │ (讀取) │ │ (撰寫) │ │ (驗證) │ │ (格式化) │ │
│ └────────────┘ └────────────┘ └──────────────┘ └──────────┘ │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ 原始文本 結構化筆記 驗證報告 最終報告 │
│ │
│ ┌──────────────────────────────────────────────────────────────┐ │
│ │ 🔄 迴圈處理多個 PDF │ │
│ └──────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘┌─────────────────────────────────────────────────────────────────────┐
│ Report Writing (组合能力) │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────┐ ┌────────────┐ ┌──────────────┐ ┌──────────┐ │
│ │ pdf-reader │ → │ note-writer│ → │content-valid.│ → │report-fmt│ │
│ │ (读取) │ │ (撰写) │ │ (验证) │ │ (格式化) │ │
│ └────────────┘ └────────────┘ └──────────────┘ └──────────┘ │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ 原始文本 结构化笔记 验证报告 最终报告 │
│ │
│ ┌──────────────────────────────────────────────────────────────┐ │
│ │ 🔄 循环处理多个PDF │ │
│ └──────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘| 順序 | 技能 | 路徑 | 迴圈 |
|---|---|---|---|
| 1 | | | 每個 PDF 一次 |
| 2 | | | 每個來源一次 |
| 3 | | | 單次 |
| 4 | | | 單次 |
| 顺序 | 技能 | 路径 | 循环 |
|---|---|---|---|
| 1 | | | 每个PDF一次 |
| 2 | | | 每个来源一次 |
| 3 | | | 单次 |
| 4 | | | 单次 |
Step 1: 收集來源材料
↓
PDF 檔案 / PMID 清單 / URL
↓
Step 2: 讀取來源 (pdf-reader) [🔄 迴圈]
↓
for each source:
content = pdf-reader.read(source)
checkpoint.update(source, "read")
↓
Step 3: 撰寫筆記 (note-writer) [🔄 迴圈]
↓
for each content:
note = note-writer.write(content)
checkpoint.update(source, "noted")
↓
Step 4: 整合筆記
↓
combined_notes = merge_notes(all_notes)
↓
Step 5: 驗證內容 (content-validator)
↓
validation_report = content-validator.validate(combined_notes, sources)
if validation_report.has_errors:
fix_errors()
↓
Step 6: 格式化 (report-formatter)
↓
final_report = report-formatter.format(combined_notes)
↓
Output: 最終報告 (.md)Step 1: 收集来源材料
↓
PDF文件 / PMID清单 / URL
↓
Step 2: 读取来源 (pdf-reader) [🔄 循环]
↓
for each source:
content = pdf-reader.read(source)
checkpoint.update(source, "read")
↓
Step 3: 撰写笔记 (note-writer) [🔄 循环]
↓
for each content:
note = note-writer.write(content)
checkpoint.update(source, "noted")
↓
Step 4: 整合笔记
↓
combined_notes = merge_notes(all_notes)
↓
Step 5: 验证内容 (content-validator)
↓
validation_report = content-validator.validate(combined_notes, sources)
if validation_report.has_errors:
fix_errors()
↓
Step 6: 格式化 (report-formatter)
↓
final_report = report-formatter.format(combined_notes)
↓
Output: 最终报告 (.md)undefinedundefined# Step 2: 撰寫筆記
note = note_writer.write(content)
# Step 3: 更新 checkpoint
checkpoint["processed"].append({
"file": pdf,
"status": "completed",
"note_path": note.path
})
save_checkpoint(checkpoint)
# 如果處理中斷,可從 checkpoint 恢復undefined# Step 2: 撰写笔记
note = note_writer.write(content)
# Step 3: 更新checkpoint
checkpoint["processed"].append({
"file": pdf,
"status": "completed",
"note_path": note.path
})
save_checkpoint(checkpoint)
# 如果处理中断,可从checkpoint恢复undefinedundefinedundefined建立日期: 2024-12-22 來源數量: 5 篇文獻 驗證狀態: ✅ 已驗證
建立日期: 2024-12-22 来源数量: 5篇文献 验证状态: ✅ 已验证
| 來源 | 驗證狀態 | 備註 |
|---|---|---|
| Paper 1 | ✅ | 所有數據已核實 |
| Paper 2 | ⚠️ | 統計值已修正 |
undefined| 来源 | 验证状态 | 备注 |
|---|---|---|
| Paper 1 | ✅ | 所有数据已核实 |
| Paper 2 | ⚠️ | 统计值已修正 |
undefined{
"capability": "report-writing",
"status": "in-progress",
"started_at": "2024-12-22T10:00:00",
"progress": {
"total_sources": 5,
"read": 3,
"noted": 2,
"validated": 0,
"formatted": 0
},
"currentSource": "paper3.pdf",
"currentStep": "reading",
"processed": [
{"file": "paper1.pdf", "status": "noted", "note": "notes/paper1.md"},
{"file": "paper2.pdf", "status": "noted", "note": "notes/paper2.md"},
{"file": "paper3.pdf", "status": "reading"}
],
"errors": []
}{
"capability": "report-writing",
"status": "in-progress",
"started_at": "2024-12-22T10:00:00",
"progress": {
"total_sources": 5,
"read": 3,
"noted": 2,
"validated": 0,
"formatted": 0
},
"currentSource": "paper3.pdf",
"currentStep": "reading",
"processed": [
{"file": "paper1.pdf", "status": "noted", "note": "notes/paper1.md"},
{"file": "paper2.pdf", "status": "noted", "note": "notes/paper2.md"},
{"file": "paper3.pdf", "status": "reading"}
],
"errors": []
}用戶:「讀取 paper.pdf 並寫成讀書報告」
執行:
1. pdf-reader: 讀取 PDF
2. note-writer: 撰寫結構化筆記
3. content-validator: 驗證準確性
4. report-formatter: 格式化輸出用戶:「整合這 5 篇 PDF 寫成綜述報告」
執行:
1. for each PDF:
- pdf-reader: 讀取
- note-writer: 筆記
- checkpoint: 記錄進度
2. 整合所有筆記
3. content-validator: 驗證
4. report-formatter: 格式化用戶:「根據這些 PMID 寫報告:38353755, 37864754」
執行:
1. 取得全文連結
2. pdf-reader: 讀取 PMC 全文
3. note-writer + validator + formatter用户:「读取paper.pdf并写成读书报告」
执行:
1. pdf-reader: 读取PDF
2. note-writer: 撰写结构化笔记
3. content-validator: 验证准确性
4. report-formatter: 格式化输出用户:「整合这5篇PDF写成综述报告」
执行:
1. for each PDF:
- pdf-reader: 读取
- note-writer: 笔记
- checkpoint: 记录进度
2. 整合所有笔记
3. content-validator: 验证
4. report-formatter: 格式化用户:「根据这些PMID写报告:38353755, 37864754」
执行:
1. 获取全文链接
2. pdf-reader: 读取PMC全文
3. note-writer + validator + formatterliterature-retrievalliterature-reviewliterature-retrievalliterature-review