Skip to content

Load a PDF file and ask questions via llama_index and GPT

Notifications You must be signed in to change notification settings

gabacode/chatPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatPDF

Load a PDF file and ask questions via llama_index and GPT

Instructions

  • Install the requirements
pip install -r requirements.txt
  • Get a GPT API key from OpenAI if you don't have one already.

  • Paste your API key in a file called .env in the root directory of the project.

OPENAI_API_KEY=<your key here>
  • Select a file from the menu or replace the default file file.pdf with the PDF you want to use.

  • Run the script.

python3 main.py
  • Ask any questions about the content of the PDF.

  • You can find other loaders at Llama Hub.

  • Enjoy!

About

Load a PDF file and ask questions via llama_index and GPT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages