RAI is a web platform that allows users to create AI models and chat with them. It provides a simple interface to experiment with AI and explore conversational models. Think of it as your personal AI studio just like Instagram AI Studio.
- Create and manage AI models
- Chat with AI models in real-time
- Create user accounts with username and email
- Lightweight, easy to use, and open-source
- Frontend: HTML (Jinja2 templating), Tailwind CSS
- Backend: Python (Quart framework)
- AI: Ollama for AI models
-
Clone this repository:
git clone https://github.com/Rishiraj0100/RAI.git cd RAI -
Create Virtual Environment:
python3 -m venv .venv
-
Install Dependencies:
python3 -m pip install -r requirements.txt
-
Install Ollama:
- Download Ollama from Ollama's official website
- Pull some models using
ollama pull <model>ollama pull llama3.2
- Add the model names to routes/models.py (Line 29)
-
Setup database and run the project
python3 -m aerich init-db python3 run.py
- Now open http://localhost:8090/x to create admin user.
- You can change the credentials at run.py (Line 43).
Now your project is ready for production deployment.
Make necessary changes in run.sh (Line 2) and then run:
chmod +x run.sh
bash run.sh- The chat interface UI is inspired by ChatGPT.
- Interested in contributing? Contributions are welcome! Check out CONTRIBUTING.md and follow our CODE_OF_CONDUCT.md.