llama-index readers pdf_table integration
Project description
PDF Table Loader
pip install llama-index-readers-pdf-table
This loader reads the tables included in the PDF.
Users can input the PDF file
and the pages
from which they want to extract tables, and they can read the tables included on those pages.
Usage
Here's an example usage of the PDFTableReader.
pages
parameter is the same as camelot's pages
. Therefore, you can use patterns such as all
, 1,2,3
, 10-20
, and so on.
from llama_index.readers.pdf_table import PDFTableReader
from pathlib import Path
reader = PDFTableReader()
pdf_path = Path("/path/to/pdf")
documents = reader.load_data(file=pdf_path, pages="80-90")
Example
This loader is designed to be used as a way to load data into LlamaIndex.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_readers_pdf_table-0.2.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_pdf_table-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63fa7eb1355c5d8a2b2b30f110cf967c57567ea0a711acf35b2e848e595088c6 |
|
MD5 | bbc4119739797932cf9c807b7e54a07a |
|
BLAKE2b-256 | 30c4230b960f66c6d2aca6ec9fa4d475e3d3174c98f624c6a4a12f92e65121ed |
File details
Details for the file llama_index_readers_pdf_table-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_pdf_table-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6029ddf828f5ac4c487f7fe2d3ac409548e79c5048519ea278e65f32188845a7 |
|
MD5 | 73fbcfa91eedd9abfcf57fb428f99d30 |
|
BLAKE2b-256 | 99e08afc3648b1a053e5c75b571abe870bc89a2b251b7851b2255bbd7f3c976e |