Question and answering using unsupervised cluster rag methods and Phidata Assistant on the bible
- Install Python 3.10 or higher
- Install the required packages using pip:
pip install -r requirements.txt
- Set environment variables:
export PINECONE_API_KEY=YOUR_PINECONE_API_KEY
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY
- Run the following scripts in order:
python 01_upload.py
python 02_cluster.py
python 03_query.py
- The script will output the answer to the user question.