For details about using this service, see details.md
Note: Get and OpenAI API key and then:
- Connect to the AWS vm used in class
ssh ubuntu@XX.XXX.XXX.XXX
ssh azureuser@13.93.149.67- Change directories to your own directory on this cloud VM
cd MYNAME_DIR- Clone this repo with:
git clone https://github.com/iportilla/ask-pdf.git- Change to the
ask-pdfdirectory and Copy.env.sampleto.envwith:
cd ask-pdf/
cp .env.sample .env- Get your own
API keyfrom openAI web site
https://platform.openai.com/account/api-keys
- Update
.envfile with your OpenAI Key value:
vi .env
API_KEY="YOUR_API_KEY"- Update port number (range: 80-90) in
Makefilefile
vi Makefile
export PORT ?= 81
#Any port value between 80-90- Run
make clean
make build
make runNotice that it will take 4-5 minutes to complete make build,
- Open a browser to
XX.XXX.XXX.XXX:PORT
-
To try this app, Click on
upload your PDF. (you can use the US Constitution provided in docs) -
Ask a question like:
Who can be a representative?
