Skip to content

feat: Claude-vision extractor + pivotal finding (retrieval, not extraction, is the bottleneck)#30

Open
Ven-Z8 wants to merge 3 commits into
mainfrom
feat/claude-vision-extractor
Open

feat: Claude-vision extractor + pivotal finding (retrieval, not extraction, is the bottleneck)#30
Ven-Z8 wants to merge 3 commits into
mainfrom
feat/claude-vision-extractor

Conversation

@Ven-Z8

@Ven-Z8 Ven-Z8 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a ClaudeVisionExtractor (renders pages → Claude transcribes full-page markdown incl. chart/figure descriptions) behind the Extractor protocol, wired as --extractor claude. More importantly, it produced the key finding of the extraction phase.

Pivotal result (10-doc representative set)

Extractor page-Recall@5
Standard Docling 0.67
granite-docling VLM 0.59 (worse)
Claude-vision 0.67 (identical, incl. per-source: Chart .79 / Text .78 / Figure .47 / Layout .33)

Claude richly transcribes every chart/figure, yet the same pages rank top-5. → Extraction is not the bottleneck; single-shot retrieval ranking is. The evidence is in the index; the retriever just doesn't surface the gold page for Figure/Layout questions.

Implication

Stop extraction work. The lever is retrieval intelligence — query reformulation / iterative / tree-guided (agentic) retrieval — which is exactly sub-projects #2/#3 of the original architecture. See updated docs/benchmarks-mmlongbench.md.

Test Plan

  • 1-doc smoke 0.88, 10-doc 0.67, 0 empty, page-tagged blocks
  • ruff clean; extractor unit-testable behind protocol

Ven-Z8 and others added 2 commits June 15, 2026 11:40
…ievable text)

Renders each page to an image and has Claude transcribe full-page markdown
including chart/figure/table descriptions, tagged per page. Targets the visual
evidence gap (Figure 0.47 / Layout 0.33) that the text pipeline and the small
granite VLM both missed. Concurrent per-page calls; wired as --extractor claude.
1-doc smoke: 0.88@5, blocks page-tagged, 0 empty.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…bottleneck

Standard/granite-VLM/Claude-vision extraction all give ~0.67 page-Recall@5
(identical per-source). Strong figure/chart transcription doesn't move the number
-> the gold page isn't being ranked top-5 by single-shot retrieval. Next lever is
retrieval (expansion/rerank/biasing/agentic), not extraction.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@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.

Ven-Z8 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

…tractor

# Conflicts:
#	docs/benchmarks-mmlongbench.md
#	scripts/eval_mmlongbench.py

@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.

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