Skip to main content

A package to interact with vectors DB

Project description

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.

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

pdf2vectors-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf2vectors-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pdf2vectors-0.1.2.tar.gz.

File metadata

  • Download URL: pdf2vectors-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for pdf2vectors-0.1.2.tar.gz
Algorithm Hash digest
SHA256 956609e290be67e0364599749d7e3ad4fddae902d094bb7e9c3ebef1645db563
MD5 963c1f2db69c61e7dba0afbf7b4bd586
BLAKE2b-256 68be4f4b03a58dd4d7ea49cf12b8290c5c41be9052264c6b87d1292538d0d755

See more details on using hashes here.

File details

Details for the file pdf2vectors-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdf2vectors-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for pdf2vectors-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bbdb33c406d171fa69baaaef7ae49b60dc2dbaf0c78988ac880530539834662
MD5 fdf20c86f812592433cef115b6f8894f
BLAKE2b-256 f3aa1c5cb484413e7aca2332b48cf4077039db8be926aa1c3e3f0399a09b15df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page