This program allows you to select a PDF, divides it into chunks readable by GPT3, and creates a summary of it next to the original PDF.
- GPT3 may have a hard time interpreting paragraphs that bleed from one chunk to another
- Text output can sometimes contain badly formatted text, which can usually be deleted easily with no harm to comprehension
- To edit the python file, make sure you have the right libraries installed.
sys
,math
, andos
should be local to your computer. Here are links for theopenai
,PyPDF2
, andtkinter
libraries. - You'll need to get your API key from OpenAI (ask chat GPT how to do that), then copy it into the script where indicated
- The output is both printed on the command line and saved to
summary of <your document name>.txt
- Navigate to your
./dist/<your operating system>_version_pdf_extract/<your operating system>_version_pdf_extract.<extension>
file - Double click to run the file and you're done!
There are probably more elegant ways to create summaries from long PDFs, so if you have them, please share!