Skip to content

feat: 为论文检索增加 OA 全文发现能力 - #4

Closed
wdwd200 wants to merge 1 commit into
redmaplewww:mainfrom
wdwd200:feat/m05-paper-search
Closed

wdwd200 wants to merge 1 commit into
redmaplewww:mainfrom
wdwd200:feat/m05-paper-search

Conversation

@wdwd200

@wdwd200 wdwd200 commented Aug 23, 2026

Copy link
Copy Markdown

概要

实现 AR-004,为 M05 论文检索链路增加 Open Access(OA)全文发现能力。

  • 新增 OpenAccessRecord 和 OA 状态定义
  • 新增顺序执行的 OA Resolver,并只保留每篇论文最新一条 OA 记录
  • 配置了 Unpaywall 邮箱时优先使用 Unpaywall
  • Unpaywall 未命中时使用 OpenAlex fallback
  • 对去重并持久化后的论文执行统一 OA enrichment
  • 不修改 PaperRecord
  • 不绕过付费墙,不下载或解析 PDF

OA 状态语义

  • open_access:发现合法开放全文入口
  • no_open_fulltext_found:所有已尝试来源均正常完成,但未发现开放全文
  • unknown:由于查询失败或缺少必要信息,无法可靠判断 OA 状态

OA 记录使用:

  • kind: paper_open_access
  • record_id: paper_id

验证结果

  • OA 专项测试:7 passed
  • 全量测试:25 passed
  • pytest -W error -q -p no:cacheprovider:25 passed
  • Ruff:全部通过
  • Doctor:通过
  • 协作检查:valid,functional progress 8/8
  • git diff --check:无空白错误

说明:普通 pytest -W error -q 已完成 25 个测试,但 Windows 在最终写入 .pytest_cache 时出现权限错误;关闭 pytest cache provider 后测试完整通过。

@wdwd200

wdwd200 commented Aug 24, 2026

Copy link
Copy Markdown
Author

Superseded by #7. This new PR includes the previous OA full-text discovery work together with the completed M05 search-to-Reader pipeline.

@wdwd200 wdwd200 closed this Aug 24, 2026
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