This is a simple Python script that allows you to Chat with PDF files using the OpenAI GPT API. By running the script and providing a PDF file and a query, the system will extract relevant information from the PDF and generate a response to your query using the GPT API.
Before you can use this script, you will need to have the following installed:
- Python 3.7 or higher
You will also need to sign up for an:
- OpenAI API key,
- Pinecone API key,
- Pinecone Environment and
- Pinecone Index Name
To use this script, you will need to do the following:
git clone https://github.com/usmananwaar-de/mini-chatpdf
pip install -r requirements.txt
python readpdf.ipynb -query [your-query]
Contributions to this script are welcome! If you have any ideas for improving the system, please feel free to open an issue or submit a pull request.