A lightweight version of the Chatbot Arena for comparing model outputs.
frontend/: React frontend applicationbackend/: FastAPI backend serverbackend_env/: Python virtual environment for the backend
- Navigate to the backend directory:
cd backend- Create and activate a virtual environment using UV:
python -m venv backend_env
source backend_env/bin/activate # On Linux/Mac
# OR
backend_env\Scripts\activate # On Windows- Install dependencies:
pip install -r requirements.txt- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Activate the virtual environment if not already activated:
source backend_env/bin/activate # On Linux/Mac
# OR
backend_env\Scripts\activate # On Windows- Start the backend server:
cd backend
python main.pyThe backend server will run on http://localhost:8000.
- In a new terminal, navigate to the frontend directory:
cd frontend- Start the frontend application:
npm startThe frontend application will run on http://localhost:3000.
- Compare outputs from different language models
- Vote for preferred responses
- Dashboard to view voting results (accessible at
/dashboard) - Database management (flush database with Ctrl+Alt+F on the dashboard)
GET /api/prompt?language={language}: Get a random prompt with model responsesPOST /api/vote: Submit a voteGET /api/languages: Get available languagesGET /api/results: Get all voting resultsDELETE /api/flush-database: Flush the database (remove all votes)