llama-index readers pdf_table integration
Project description
PDF Table Loader
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_hub.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 and/or subsequently used as a Tool in a LangChain Agent.
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
Close
Hashes for llama_index_readers_pdf_table-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b7d29e148440b8205c59878d7fb1eda640b0c2800cb6ba48f70e75aac02b2b |
|
MD5 | f2cbb6348e6eb09465584ba833d56c6a |
|
BLAKE2b-256 | b940f1f5120250e3c619a0bb8945e308d5e28689ef5aea57b1d6d27c1dd65be3 |
Close
Hashes for llama_index_readers_pdf_table-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e35a32644342e612efe75496e2b0845fed529e20c0ebc438f9ab423d53b0122 |
|
MD5 | c67ccb573153419add0fa42e7c1c56b7 |
|
BLAKE2b-256 | 770355092024207969c9fa22d0d5df5d0079ad1e91e452ae566dcfa8b5b8a761 |