yoruba conversational AI
# Yoruba AI Chatbot
A text-based AI chatbot that responds fluently in the Yoruba language. Built with Next.js, FastAPI, and fine-tuned transformer models.
**Status:** β
Production Ready - Using real fine-tuned models (no mock data)
## π Quick Start
### One-Command Setup (Recommended)
```bash
cd /home/alien/yorubaai
bash train_and_deploy.sh all
```
This automatically:
1. Sets up Python environment
2. Collects Yoruba training data from public sources
3. Fine-tunes a model on Yoruba text
4. Tests the complete system
5. Starts backend & frontend servers
### Manual Setup
**Terminal 1 - Backend:**
```bash
cd backend
source env/bin/activate
pip install -r requirements.txt
python main.py
```
**Terminal 2 - Frontend:**
```bash
cd frontend
npm install
npm run dev
```
Then open **
http://localhost:3000**
## π Features
β
**Real Yoruba AI** - Fine-tuned on actual Yoruba text (not mock)
β
**Text Chat Interface** - Beautiful, responsive UI
β
**Conversation History** - Maintains context
β
**GPU Support** - Auto-detects CUDA
β
**Production Ready** - Fully tested and documented
β
**Easy Deployment** - Multiple hosting options
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββ
β Next.js Frontend (React) β localhost:3000
β - Chat interface β
β - Real-time messaging β
β - Error handling β
ββββββββββββββββββ¬βββββββββββββββββββββββββ
β HTTP/REST
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β FastAPI Backend β localhost:8000
β - /chat endpoint β
β - /health check β
β - CORS enabled β
ββββββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β Fine-Tuned Yoruba Model (GPT-2) β
β - Trained on real Yoruba texts β
β - Bio: Collects from multiple sources β
β - Uses LoRA for efficiency β
ββββββββββββββββββββββββββββββββββββββββββ β¦