This app is designed to allow users to easily query PDF documents using OpenAI's GPT-3 language model. The app is designed to be run in Google Colab and utilizes Google Drive for storage and access to PDF documents.
Check out the tutorial below:
- To use the app, navigate to the run_query.ipynb notebook in the repository.
- Click on the "Open in Colab" button to open the notebook in Google Colab using this link.
- Run the cells in the notebook.
- When prompted, click on "Connect to Google Drive" and select your Google account. Click "Allow" to permit access to your Google Drive. This will mount your Google Drive in Google Colab.
- The app will begin downloading and installing any necessary packages.
- Next, you will be prompted to enter your OpenAI API key. Follow this tutorial to obtain your API key if you have not already done so.
- After entering your API key, you will be prompted to upload your PDF file. This file will be saved in your Google Drive in the following address:
/content/drive/MyDrive/repo_path
. - Finally, submit your queries (ask your questions) about the uploaded document. Make sure to type "stop" once you have no further questions.
Thank you for using this app! We hope you find it useful for your querying needs. Please don't hesitate to contact to Farhad Davaripour and Armin Norouzi with any questions or feedback.
This project is licensed under the MIT License. See the LICENSE file for details.