Skip to content

feat(extraction): add double and triple pass for Parse 3.5 - #2865

Merged
KyleZheng1284 merged 1 commit into
NVIDIA:mainfrom
KyleZheng1284:codex/parse35-multipass-pr
Nov 21, 2026
Merged

KyleZheng1284 merged 1 commit into
NVIDIA:mainfrom
KyleZheng1284:codex/parse35-multipass-pr

Conversation

@KyleZheng1284

@KyleZheng1284 KyleZheng1284 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds double- and triple-pass extraction for Nemotron 3.5 Parse. Single pass remains the default.

  • Double pass refines table and chart regions found by the full-page parse.
  • Triple pass adds layout detection and refines regions found by either stage.

Both modes use Hugging Face’s pinned DocumentParser for cropping and merging. NRL now uses the blocks it returns directly, removing duplicate postprocessing while preserving the existing table formatting and Markdown export.

Local inference uses the batched vLLM engine from #2862 with optional DFlash2. Remote inference uses NRL’s existing /v1/chat/completions client. The model and helper loader come from #2835.

DC10K benchmark

10,000 PDFs · 213,538 pages · 1,347 queries · 2× H200 NVL

Mode Extraction time Pages/s Recall@5 Recall@10 nDCG@10 Incomplete or failed pages
Single 1h 09m 05s 51.51 0.8114 0.8604 0.7106 936 truncated
Double 2h 38m 14s 22.49 0.8107 0.8589 0.7137 2,138 failed
Triple 2h 56m 19s 20.19 0.8151 0.8612 0.7156 2,238 failed

Extraction includes PDF rendering and Parse. Runs used one Parse actor per GPU, PDFium with a 200-DPI ceiling and a 1024 px fit, and DFlash2 draft length 16. Single used a 32-page batch. Double and triple used one page per batch to isolate failures and an opt-in override of 64 active calls per actor. The default remains 16. All pages were accounted for in each mode.

Retrieval was measured separately using page-level dense top-10 search with nvidia/Nemotron-3.5-Embed-1B-BF16, without a reranker.

Reproduction settings
  • Parse revision: 72ad4d71dd827135ee581502363e14748008900a
  • Embed revision: 31c680be8801b56d4376550c678301bbb2d18f31
  • Double/triple actor override: node_overrides={"NemotronParseActor": {"max_concurrency": 64}}

Validation

  • 596 focused tests passed, including offline checks against the pinned Hugging Face helper across all four table formats.
  • Repository hooks, strict MkDocs build, and git diff --check passed.
  • Full-corpus double and triple extraction and retrieval evaluation completed on H200s. Live remote inference remains to be validated.

@KyleZheng1284
KyleZheng1284 requested review from a team as code owners November 17, 2026 18:35
@copy-pr-bot

copy-pr-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@KyleZheng1284
KyleZheng1284 marked this pull request as draft November 17, 2026 18:35
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was established.

Summary

Adds double- and triple-pass Parse 3.5 extraction while keeping single pass as the default.

  • Parse 3.5 can refine page regions in two or three passes.
  • Ray keeps an explicitly chosen batch size for Parse actors.

The four earlier threads are addressed: local model names pass the mode check, actors preserve an unset prompt when rebuilt, documentation rejects explicit multi-pass prompts, and the new public functions document their arguments, returns, and errors. No new actionable issue was established.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Page image] --> B{Parse mode}
  B -->|single| C[Existing full-page parse]
  B -->|double| D[HF full-page parse]
  B -->|triple| E[HF full-page parse and region detection]
  D --> F[Parse table and chart crops]
  E --> F
  F --> G[HF merges blocks]
  C --> H[Existing content routing]
  G --> H
  H --> I[Text, tables, charts, and Markdown]
Loading

Reviews (6) · Last reviewed commit: "feat(extraction): add double and triple ..." · Reviewed by Greptile

@KyleZheng1284
KyleZheng1284 marked this pull request as ready for review November 18, 2026 19:26

@ChrisJar ChrisJar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm, thanks for working on this!

Signed-off-by: Kyle Zheng <126034466+KyleZheng1284@users.noreply.github.com>
@KyleZheng1284
KyleZheng1284 force-pushed the codex/parse35-multipass-pr branch from 24a3288 to a1cace7 Compare November 21, 2026 02:44
@KyleZheng1284
KyleZheng1284 merged commit 67457ef into NVIDIA:main Nov 21, 2026
11 of 12 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