Skip to content

ThePhoenix77/1337-RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1337-RAG

A RAG system that answers questions about 1337 School, with both a clickable TUI and a classic CLI.

Quick setup

  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install the Python dependencies:
pip install -r requirements.txt
  1. Add your Pinecone API key in a .env file:
PINECONE_API_KEY=your_api_key_here
  1. Install Ollama and pull the Mistral model:
ollama pull mistral

Usage

python main.py

Ask 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 --classic

Useful commands inside the chat:

  • /help
  • /model mistral
  • /topk 5
  • /context your question here
  • /ingest
  • /reset
  • /exit

N.B

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.

About

A simple RAG system about the 1337 school, built with Python and Pinecone and powered with local LLM(Mistral).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages