Skip to content

fix: 修复粗读报告 LLM 返回占位符假内容#9

Merged
Color2333 merged 2 commits intomainfrom
dev
Mar 20, 2026
Merged

fix: 修复粗读报告 LLM 返回占位符假内容#9
Color2333 merged 2 commits intomainfrom
dev

Conversation

@Color2333
Copy link
Copy Markdown
Owner

Summary

  • prompts.py: 去掉 prompt 示例中的字面占位符值
  • pipelines.py: 增加占位符检测,过滤 "创新点1" 等假内容,fallback 到原文

问题根因

prompt 示例值 "innovations":["创新点1","创新点2","创新点3"] 被 LLM 忠实返回,代码未检测直接入库,导致日报出现大量占位符内容。

修复内容

  1. prompt 示例改为描述性文本,引导 LLM 提取真实内容
  2. pipelines.py 增加过滤:检测 "创新点1/2/3"、"一句话总结" 等占位符,关键字段为空时 fallback 到 llm_text 原文

@Color2333 Color2333 merged commit bf0e985 into main Mar 20, 2026
3 checks passed
@github-actions
Copy link
Copy Markdown

🔍 OpenCode PR Review Required

这是一个受保护的分支,merge 前需要进行 code review。

请运行以下命令进行 OpenCode review:

/oc review https://github.com/Color2333/PaperMind/pull/$PR_NUM

或者在 PR 页面评论 /oc 来触发 OpenCode review。


This is an automated reminder from PR Review Gate.

@Color2333 Color2333 deleted the dev branch March 20, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant