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.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_pdf_table-0.3.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25e24b531f61777b2e8d3bca73f5bfc6d52ba40ad1db8a8f0f9968adcfabee19 |
|
MD5 | 83deeaf946f9f452b7c1680815dcdd35 |
|
BLAKE2b-256 | fa4cb4e273d43d9d2fe145bfcc81eb277743f0cf0c731dacb48dbc7fd015087b |
File details
Details for the file llama_index_readers_pdf_table-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_pdf_table-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba177a7ef0c7cf1b31bee94509a870986ba97e224ac83a81e806257bc0fbab2c |
|
MD5 | f2ad973455d1dae98a35743699231f39 |
|
BLAKE2b-256 | cc7aee1af4c5a2933fbd5cf20d8c125018f84c6326ce736e14c97264c6aacf4b |