Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORE: Sophisticated PDFReader with Image and Table extraction #127

Open
janaka opened this issue Oct 16, 2023 · 1 comment
Open

CORE: Sophisticated PDFReader with Image and Table extraction #127

janaka opened this issue Oct 16, 2023 · 1 comment

Comments

@janaka
Copy link
Contributor

janaka commented Oct 16, 2023

Current

The LlamaIndex PDFReader (part of the SimpleDirectoryReader) currently only handles simple (naive) text extraction. It uses the pypdf package. It iterates through pages (pypdf.pdfreader.pages) then uses the page.extract_text() method to grab to text for the document.

The following are ignored:

  • Images
  • Tables
  • PDF Metadata
  • Document structure such as headings

We should be able to improve retrieval by extracting information present in these components

Solution

Fork the standard LlamaiIndex PDFReader and customise it. Look into the various LlamaIndex Image readers.

Alternatives

Use readers from Unstructured.io

@janaka
Copy link
Contributor Author

janaka commented Oct 23, 2023

Also look into LayoutPDFReader by LLMSherpa

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

No branches or pull requests

1 participant