Requires access to OpenAI API using an access token (https://platform.openai.com/)
- clone project
git clone https://github.com/gfoo/impulse_rag.git
cd impulse_rag- init project
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
echo 'OPENAI_API_KEY="xxxxxx"' > .env- download data
cd pdfs
./download_dir_UNIL.sh
cd ..- index pdfs
python indexing.py ./pdfs ./chroma_storage- retrieve context from index
python retrieval.py ./chroma_storage/- answer question using context and llm
python generation.py ./chroma_storage/