Skip to content

fix(literature): keep every token when rebuilding inverted-index abstracts - #957

Merged
Aayam Bansal (aayambansal) merged 2 commits into
synthetic-sciences:mainfrom
longzhenren:fix/inverted-index-reconstruction
Oct 6, 2026
Merged

Aayam Bansal (aayambansal) merged 2 commits into
synthetic-sciences:mainfrom
longzhenren:fix/inverted-index-reconstruction

Conversation

@longzhenren

@longzhenren Zhibo Zhang (Amur) (longzhenren) commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Reconstructing an abstract with distinct words at the same position previously kept only the last word. Collect words by position and emit them in numeric order, preserving each distinct word without duplicating repeated postings. Sparse positions no longer require a sparse array; ordinary abstracts still use single-space separators.

Adds an Unreleased changelog entry and regression coverage for overlapping positions, repeated words, duplicate postings, very large sparse positions, invalid positions, and empty input.

Validation: 39 literature, literature-tool, arXiv, and shared-helper tests passed; backend typecheck, formatting, and diff checks passed. Small fix, no issue.

@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

Zhibo Zhang (Amur) (@longzhenren) is attempting to deploy a commit to the InkVell Team on Vercel.

A member of the Team first needs to authorize it.

@aayambansal
Aayam Bansal (aayambansal) merged commit 44d0334 into synthetic-sciences:main Oct 6, 2026
8 of 9 checks passed
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