Skip to main content

PineconePDFExtractor

PineconePDFExtractor is a Python library for extracting text from PDF files for pinecone.

Installation

Use the package manager pip to install PineconePDFExtractor.

pip install PineconePDFExtractor

Check the latest version here:

https://pypi.org/project/PineconePDFExtractor/

Usage

from pdf.PineconePDFExtractor import PdfProcessor

# Create a PineconePDFExtractor instance with a batch size of 200
extractor = PdfProcessor(200)

# Process a list of PDF files
result = extractor.process_files(['file1.pdf', 'file2.pdf'])

# The result is a dictionary with the batch size and a list of documents
# Each document is a dictionary with the id (file name without extension), metadata (number of pages), source (file path), and text (extracted text)

## Example result
# {
#   'batch_size': 200,
#   'documents': [
#     {
#       'id': 'file1',
#       'metadata': {
#         'pages': 1
#       },
#       'source': 'file1.pdf',
#       'text': 'This is the extracted text from file1.pdf'
#     },
#     {
#       'id': 'file2',
#       'metadata': {
#         'pages': 2
#       },
#       'source': 'file2.pdf',
#       'text': 'This is the extracted text from file2.pdf'
#     }
#   ]
# }

Release files for PineconePDFExtractor 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PineconePDFExtractor 0.1.8
File Size Uploaded
PineconePDFExtractor-0.1.8.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PineconePDFExtractor 0.1.8
File Interpreter ABI Platform
PineconePDFExtractor-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / PineconePDFExtractor-0.1.8.tar.gz

Download URL PineconePDFExtractor-0.1.8.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1406ef6566590c2da60a2186d0dbd47f58ae55a3e3bfab889503939daf3324bb
BLAKE2b-256 checksum
How to use checksums
8643cbc3117412ad9b70a4724ae7bb60f49309b431bbddfb99ddd9bd6dbb24db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / PineconePDFExtractor-0.1.8-py3-none-any.whl

Download URL PineconePDFExtractor-0.1.8-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bea71d4505f5361bd297de8fbccc8dd4d74f30b299d52e4913c9d6a8ef533257
BLAKE2b-256 checksum
How to use checksums
5c21dea542a1ed7ad2cee8151d7ba44511c7a815e8c5ddf4f75113d81e051358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page