https://github.com/ruteru/pdf2vectors
A package to vectorize pdf files and interact with Pinecone DB
https://github.com/ruteru/pdf2vectors
pdf pineconedb tensorflow tensorflow2 vector-database vectors
Last synced: 3 months ago
JSON representation
A package to vectorize pdf files and interact with Pinecone DB
- Host: GitHub
- URL: https://github.com/ruteru/pdf2vectors
- Owner: ruteru
- License: mit
- Created: 2024-03-02T20:45:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T18:39:32.000Z (over 2 years ago)
- Last Synced: 2025-12-01T19:16:43.181Z (7 months ago)
- Topics: pdf, pineconedb, tensorflow, tensorflow2, vector-database, vectors
- Language: Python
- Homepage: https://pypi.org/project/pdf2vectors/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
pip install pdf2vectors
```
## Usage
```python
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.