RAG models are seq2seq models with access to a retrieval mechanism providing relevant context documents at training and evaluation time.
- Install Python 3.12.5. Install Ollama and pull down Llama3.1 using following command on Terminal:
ollama pull llama3.1
- Clone the repo
https://github.com/faranak-cs/rag.git
- Creat virtual envrionment
python3 -m venv rag.env
- Activate virtual environment
source rag.env/bin/activate
- Install packages
python -m pip install -r requirements.txt
- Populate database
python populate_database.py
- Ask questions
python query_data.py "How many players are there in monopoly?"