this is a demo for gpt reading pdf with llama_index.
you need python3. Then execute the command:
pip install -r requirements.txt
- put the pdfs in this project root path.
- create a .env file, and set
OPENAI_API_KEY
variable using your openai api key.
you can run main.py
. It's a CLI.
python3 main.py
or run the streamlit, It's a web app.
streamlit run streamlit_web.py
have fun!