Skip to content

[Bug]: [Bug]: Cross-page table highlights only show on the first page with MinerU backend when clicking a chunk in the preview. #16883

Description

@one985

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

16283

RAGFlow image version

0.26.1

Other environment information

Using MinerU as the OCR backend.

Actual behavior

When clicking a chunk that spans multiple PDF pages (e.g., a cross-page table on page 7 and page 8), the PDF preview on the left only highlights the first page. The subsequent page's text/table rows are not highlighted at all.

I have traced the entire data flow (Frontend -> RAGFlow Backend -> MinerU -> RAGFlow Backend -> Frontend) to debug this issue. The root cause is located in the RAGFlow backend's processing of the data provided by MinerU. MinerU outputs complete coordinates for all pages of the cross-page table in its raw _middle.json file, but the RAGFlow backend only extracts the coordinates of the first page when generating the chunk data. As a result, the frontend receives an incomplete positions array, which causes the highlights on the subsequent pages to be entirely missing.

Expected behavior

No response

Steps to reproduce

1. Upload a PDF file that contains a table spanning multiple pages.
2. Use MinerU as the OCR backend for parsing the document.
3. Go to the "Parsed Chunk" preview page (`/chunk/parsed`).
4. Find a chunk that contains the cross-page table.
5. Click on this chunk in the right sidebar.
6. Observe that only the first page's table content is highlighted in the left PDF viewer, while the rest of the pages are not highlighted.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions