Skip to content

fix(import): keep short pdfs, stitch long tables and stop doubled or dropped charts - #131

Merged
vishwajeet-13 merged 1 commit into
bwhtech:mainfrom
vishwajeet-13:fix/pdf-import-followups
Oct 10, 2026
Merged

vishwajeet-13 merged 1 commit into
bwhtech:mainfrom
vishwajeet-13:fix/pdf-import-followups

Conversation

@vishwajeet-13

@vishwajeet-13 vishwajeet-13 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #124. These fixes were merged in #129, but into the fix/nephrology-fidelity branch after #124 had already landed, so they never reached main. This is the same commit applied to current main.

  • Short PDFs with no page-sized section now keep their first section as the page instead of failing with a KeyError
  • Image tags the vision model made up no longer turn into full-page images
  • Tables that run over 3 or more pages are joined at every page break
  • Lettered sub-step rows (a), (b) stay separate from the numbered row above them
  • A numbered data table is no longer mistaken for a contents page
  • A chart followed by a table typed on the page is kept
  • Repeated section headings are no longer stripped as headers or footers

Screenshots

Same PDFs imported on main (before) and on this branch (after).

Short PDF: the whole wiki was empty, now the memo shows

Before After

Image tag the model made up: the full PDF page was pasted in, now only the chart is cropped

Before After

Table over 3 pages: split in two with the header repeated, now one table

Before After

Two-column paper: the chart was dropped, now it sits above its caption

Before After

…dropped charts

- page plan: a doc with no page-worthy section keeps its first section as the page, and children of a leading section fold with it instead of raising KeyError
- figures: image tags the vlm made up mark where crops go instead of turning into full-page images
- tables: a table over three or more pages is joined at every page break, and its section keeps the pages the rows came from
- tables: lettered sub-step rows are no longer merged into the numbered row above
- contents: a numbered data table under its own header is not read as a contents page
- figures: a chart followed by a table typed on the page is kept
- boilerplate: the low repeat threshold applies only to the outermost edge line, so repeated section headings survive

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@vishwajeet-13
vishwajeet-13 merged commit cde9a2c into bwhtech:main Oct 10, 2026
7 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.

1 participant