Proof of concept for rag based chat application
- Set your
OPENAI_API_KEYenvironment variable - Download the PDF files you want to use as your data source and put them in the
ragsfolder (only PDF supported at the moment) - The system prompt is loaded from
system_prompt.txt. Edit the file as necessary.
- Create a python virtualenv using
python -m venv .venv - Activate the virtualenv using
. ./.venv/bin/activate - Install dependencies using
pip install -r requirements.txt - Launch the app with
python run.pywhich will start a webserver on port5000 - Open a browser to
http://localhost:5000and begin chatting