Files
reader/plans/article-summary-prompt-independent.md
T
wdm ed0e3a9c7d feat: make article summary prompt independent from daily digest
- Add outputs/prompts/article-summary-prompt.txt with deep knowledge
  note schema (core_conclusion, main_argument, key_methods, etc.)
- Add ArticleSummaryResult Pydantic model for the new schema
- Add validate_article_summary_payload() validator
- Add optional validator param to run_loop_payload(); defaults to
  existing validate_llm_result_payload so daily digest is unaffected
- Update article_summary.py: new prompt path, new validator, new
  Markdown output with Chinese section headers
2026-03-29 16:49:05 +08:00

41 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 规划:单篇文章总结 Prompt 独立化
## 背景
单篇精读总结(article_summary.py)目前复用日报摘要的同一份 prompt,
导致输出是 2-3 句短摘要卡片,没有体现正文深度。
目标是让单篇精读总结彻底独立,输出知识沉淀笔记。
## 已确认决策
- Validator 方案:方案 B,新增 ArticleSummaryResult 模型 + 专用校验函数
- 输出语言:中文
- 无技术内容时 key_methods / important_details 返回空数组 []
- run_loop_payload 新增可选 validator 参数,None 时保持原有行为,日报链路不受影响
## 涉及文件
- outputs/prompts/article-summary-prompt.txt 新建
- src/summary_mcp/models/article_summary_result.py 新建
- src/summary_mcp/validators/article_summary.py 新建
- src/summary_mcp/core/summary_loop.py 修改
- src/summary_mcp/workflows/article_summary.py 修改
## 新增字段(ArticleSummaryResult)
- core_conclusion:核心结论,1-2 句
- main_argument:主要论点
- key_methods:关键方法,无内容返回 []
- important_details:重要细节,无内容返回 []
- reusable_insights:可复用启发
- keywords / topics / category / worth_keeping / reason
## Markdown 输出格式
核心结论 / 主要论点 / 关键方法 / 重要细节 / 可复用启发 / 关键词 / 主题
## 约束
- freshrss_pipeline.py 不变
- summary_loop.py 只加参数,默认行为不变