Skip to main content

SmartPDF: AI powered pdf reader.

Project description

SmartPDF

A simple python library for AI-powered PDF documents processing.

Requirements

  • Linux, Windows, MacOS
  • Python 3.8.+
  • OpenAI API Key

Install package

pip install smart_pdf

Install the latest version

git clone https://github.com/bes-dev/smart_pdf.git
cd smart_pdf
pip install -r requirements.txt
pip install .

Install the latest version

git clone https://github.com/bes-dev/random_face.git
cd random_face
pip install -r requirements.txt
python download_model.py
pip install .

Demo

python -m smart_pdf.smart_pdf --help

Example

from smart_pdf import SmartPDF
smart_doc = SmartPDF(
    path=<path_to_pdf>,
    openai_api_key=<openai_api_key>
)
print(smart_doc)
print(f"Summary: {smart_doc.summary()}")
print("Press q! to exit")
while True:
    request = input("> ")
    if request == "q!":
        break
    print(smart_doc.smart_search(request))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

smart_pdf-2023.9.11.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file smart_pdf-2023.9.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_pdf-2023.9.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 845e715c27d077c94e6e549ce15278ab774bc63ae69a3808b3e6e228dbf65ae1
MD5 5e5e69f31c95c88232629bd538a0b00e
BLAKE2b-256 b2d807b4ca7c2e2bc4323fd18d22574934bb333f5d79d2511585a43634db160a

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