Run the following commands to setup the environment
conda create --name rag python=3.10 -y
conda activate rag
pip install -r requirements.txt
conda install -c pytorch faiss-cpu=1.8.0
(For RagRetriever)
Get an API key for Gemini, and add it to a .env
file as GEMINI_API_KEY
I had to run export PYTORCH_ENABLE_MPS_FALLBACK=1
due to a torch issue running torch.argsort
on my M1 Macbook.
I hadn't seen that before, but it seems to have gotten past the issue