Simple RAG CLI app to demonstrate RAG functionalities on Premier League files from Wikipedia (2013-14 to 2023-24)
git clone https://github.com/Grogu22/PL-RAG.git
cd PL-RAG
- Open up a virtual environment and activate it
- Install requirements
pip install -r requirements.txt
- Create a file named
env.py
openai_api_key = '<YOUR_OPENAI_API_KEY>'
- Create the DB
python create_db.py
- Query DB
python query_data.py '<YOUR_QUERY>'
Query = Which footballer has the record for a highest scorer in a single season?
Query = Which team won the Premier League in 2013?
I got all the PL data in markdown by using wikipedia-markdown-generator.