Skip to content

Link in-catalog paper mentions in 解读 reviews - #25

Draft
znsoftm wants to merge 1 commit into
cursor/papers-catalog-snapshot-c8a7from
cursor/papers-review-crosslinks-1557
Draft

znsoftm wants to merge 1 commit into
cursor/papers-catalog-snapshot-c8a7from
cursor/papers-review-crosslinks-1557

Conversation

@znsoftm

@znsoftm znsoftm commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

When a paper 解读 mentions another work that is already in the catalog, that mention becomes a clickable link to that paper’s review. An Update references / 更新引用 button re-scans the existing review text against the current catalog and persists the links (no LLM regenerate).

Behavior

  • Matcher uses strong signals only: arXiv ids (2504.15585, arXiv:…, arxiv.org/abs/…, optional vN, old hep-th/9901001) and known catalog titles (length/word floor to avoid short false positives).
  • Only papers that exist in the catalog are linked; the review’s own paper is skipped; missing ids/titles are ignored.
  • Resolved refs (paper_id, title, arxiv_id, has_review, match) are stored on reviews/<id>.json and returned on GET /papers/review/{id}.
  • First generate also rematches and saves refs. Existing reviews get links after one Update click.
  • Review modal renders in-text links plus a related-papers list. Clicking opens the other paper’s 解读 (same as 查看解读 / 生成解读). Hash #review=<id> makes the link shareable.
  • Update status: working / done with count / error. Payload stays small (no abstracts on refs).

API

  • POST /papers/review/{id}/refs — rematch + persist
  • GET/generate review views include refs

Test plan

  • go test ./internal/api/ -count=1 (passed)
  • Matcher: extract modern/old/URL/versioned arXiv ids; title match; skip self, short titles, and out-of-catalog mentions.
  • HTTP: Update persists refs and GET still returns them after reload; generate writes refs; Update without a review returns 409.
  • Browser: open a review that cites another catalog paper → Update → mention becomes a link → click opens that paper’s review (#review=<id>). ZH/EN button labels.

Walkthrough

Catalog with 查看解读
Review after Update references
Clicked citation opens linked review
review-citation-links.mp4

Stacked on cursor/papers-catalog-snapshot-c8a7 (latest papers tip with the 解读 overlay).

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Extract arXiv ids and known titles from 解读 text, persist only
catalog matches on the review JSON, and render those mentions as
links that open the other paper's review. An Update button rematches
against the current catalog without regenerating the LLM write-up.

Co-authored-by: Daniel <znsoft@163.com>
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.

2 participants