pdfgpt is a Python package that provides users with the ability to engage in natural language conversations with their PDF documents.
Reason this release was yanked:
Please update to the last version of pdfgpt >> pip install pdfgpt --upgrade
Project description
pdfgpt
pdfgpt is a Python package that provides users with the ability to engage in natural language conversations with their PDF documents.
Free software: MIT license
Documentation: https://pdfgpt.readthedocs.io.
Source: Openai - https://github.com/openai/openai-cookbook
How to install
Environments -> base (root) -> open terminal -> pip install pdfgpt
pip install pdfgpt
Example
from pdfgpt import *
d = PDFBot(openai_key='OPENAI_KEY')
print('Example')
extracted_text, num_pages = d.generateText(file_path='PDF_NAME.pdf')
df = d.generateEmbeddings(extracted_text)
print('USER')
prompt = d.generatePrompt(df, num_pages, 'what is the epanet?')
response = d.sendPrompt(prompt)
print('AI')
print(response)
print('USER')
prompt = d.generatePrompt(df, num_pages, 'Give me an example get the node elevations with matlab code?')
response = d.sendPrompt(prompt)
print('AI')
print(response)
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2023-05-11)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.