Conversation
pzp5700
commented
Apr 11, 2026
Collaborator
- 将 idea_gen workflow 拆分为节点、服务与状态模块,补齐路由和阶段状态管理,降低流程耦合度
- 新增 preset 配置、seed/evidence/report 链路优化、LLM 并发限流与线程池管理,提升检索与报告生成效率
- 修复报告引用与来源归一化处理,补充结构化输出、resume、seed discovery、并发优化等测试覆盖
- 同步优化前端列表、进度卡、状态徽标与时间线交互表现,提升运行态可视化反馈
- 代码清理
- 将 idea_gen workflow 拆分为节点、服务与状态模块,补齐路由和阶段状态管理,降低流程耦合度\n- 新增 preset 配置、seed/evidence/report 链路优化、LLM 并发限流与线程池管理,提升检索与报告生成效率\n- 修复报告引用与来源归一化处理,补充结构化输出、resume、seed discovery、并发优化等测试覆盖\n- 同步优化前端列表、进度卡、状态徽标与时间线交互表现,提升运行态可视化反馈
- 删除未使用的 schema、prompt 和 evidence/tool 兼容入口,收缩模块体积\n- 将 artifact 与状态相关调用切到 workflow_helpers 或真实实现,移除 workflow.py 中 6 个转手兼容壳\n- 合并重复的 tasks_to_topics 实现,补齐相关测试与 monkeypatch 目标迁移\n- 本次提交仅包含清理优化文件,未纳入正在进行中的 preset、router 与前端其他改动
- 创建统一的 paper_normalization.py 模块集中管理所有规范化逻辑 - 整合文本规范化、ArXiv ID 提取、作者规范化等重复实现 - 整合 OpenAlex 数据提取函数(PDF URL、作者、venue、institutions) - 移除 paper_relevance_scorer.py 中 250 行重复方法定义 - 迁移 7 个文件的重复代码到共享模块 - 删除 450+ 行重复代码,净减少 389 行 (-85.7%) - 维护点从 12 处降至 1 处 (-92%) 修改的文件: - 新增: paper_normalization.py (280+ 行统一规范化工具) - 重构: openalex_enricher.py, citation_expander.py, paper_reranker.py - 重构: result_formatter.py, report_builder.py, report_source_handler.py - 重构: query_utils.py, paper_relevance_scorer.py 所有修改已通过语法检查和功能测试验证
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.