Skip to main content

pdf2vectors

Description

This package provides a convenient way to interact with a vectors database using Pinecone, allowing you to upload data in the form of vectors to your Pinecone index.

Installation

You can install the package via pip:

pip install pdf2vectors

Usage

from pdf2vectors import PineconeUploader, read_pdf, upsert_files

PineconeUploader(api_key="YOUR_PINECONE_API_KEY", host="YOUR_PINECONE_HOST")

directory = "YOUR_PDF_FILE_PATH"
texts = read_pdf(directory)

response = upsert_files(texts)

print(response)

Features

Simplified Interaction: Easily upload vectorized data to your Pinecone index with just a few lines of code. Automatic Vectorization: The package automatically vectorizes text content extracted from PDF files. Flexible Configuration: Customize the package by providing your Pinecone API key and host.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests to enhance the functionality or fix any bugs in the package. Your contributions help improve the overall quality of the package and make it more valuable for the community.

Metadata

Release files for pdf2vectors 0.1.2

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

Source distribution (sdist)

Source distribution for pdf2vectors 0.1.2
File Size Uploaded
pdf2vectors-0.1.2.tar.gz 3.7 kB Details

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / pdf2vectors-0.1.2.tar.gz

Download URL pdf2vectors-0.1.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
956609e290be67e0364599749d7e3ad4fddae902d094bb7e9c3ebef1645db563
BLAKE2b-256 checksum
How to use checksums
68be4f4b03a58dd4d7ea49cf12b8290c5c41be9052264c6b87d1292538d0d755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release files / pdf2vectors-0.1.2-py3-none-any.whl

Download URL pdf2vectors-0.1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bbdb33c406d171fa69baaaef7ae49b60dc2dbaf0c78988ac880530539834662
BLAKE2b-256 checksum
How to use checksums
f3aa1c5cb484413e7aca2332b48cf4077039db8be926aa1c3e3f0399a09b15df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1

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