This project implements a simple Retrieval-Augmented Generation (RAG) system using:
- Hugging Face Transformers (LLM - Mistral)
- SerpAPI (Google Search for retrieval)
git clone https://github.com/cheikne/rag-llm.git cd rag-llm
python -m venv venv source venv/bin/activate
pip install --upgrade pip pip install torch torchvision torchaudio pip install -r requirements.txt
export SERPAPI_API_KEY="your_serpapi_key"
export HF_TOKEN="your_hf_token"
echo 'export SERPAPI_API_KEY="your_serpapi_key"' >> ~/.zshrc echo 'export HF_TOKEN="your_hf_token"' >> ~/.zshrc source ~/.zshrc
python main.py