A RAG system that answers questions about 1337 School, with both a clickable TUI and a classic CLI.
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate- Install the Python dependencies:
pip install -r requirements.txt- Add your Pinecone API key in a
.envfile:
PINECONE_API_KEY=your_api_key_here- Install Ollama and pull the Mistral model:
ollama pull mistralpython main.pyAsk your 1337 related question:
"What is 1337 school?"
"How does the 1337 school work?"
"Tell me more about the 1337 school campuses?"
To use the CLI mode if you want:
python main.py --classicUseful commands inside the chat:
- /help
- /model mistral
- /topk 5
- /context your question here
- /ingest
- /reset
- /exit
This project isn't a perfect production level RAG, just a learning personal project for me to better understand and experiment with RAGs. And further improvements and modifications are coming soon to better upgrade it.
If you're interested about RAG systems and how they work under the hood, check my latest article RAG - Complete Practical Guide.