Skip to content

iportilla/ask-pdf

Repository files navigation

Ask PDF Demo

For details about using this service, see details.md

Building and Publishing

Note: Get and OpenAI API key and then:

  1. Connect to the AWS vm used in class
ssh ubuntu@XX.XXX.XXX.XXX

ssh azureuser@13.93.149.67
  1. Change directories to your own directory on this cloud VM
cd MYNAME_DIR
  1. Clone this repo with:
git clone https://github.com/iportilla/ask-pdf.git
  1. Change to the ask-pdf directory and Copy .env.sample to .env with:
cd ask-pdf/
cp .env.sample .env
  1. Get your own API key from openAI web site

https://platform.openai.com/account/api-keys

  1. Update .env file with your OpenAI Key value:
vi .env
API_KEY="YOUR_API_KEY"
  1. Update port number (range: 80-90) in Makefile file
vi Makefile
export PORT ?= 81 

#Any port value between 80-90
  1. Run
make clean
make build
make run

Notice that it will take 4-5 minutes to complete make build,

  1. Open a browser to

XX.XXX.XXX.XXX:PORT

  1. To try this app, Click on upload your PDF. (you can use the US Constitution provided in docs)

  2. Ask a question like: Who can be a representative?

See example

About

Parse PDF files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published