# Ganda-Gemma 2G Platform
A comprehensive 2G AI platform that brings artificial intelligence to rural African communities through basic mobile phones. The solution leverages the ganda-gemma model to provide agricultural, health, and education services via USSD, SMS, and WhatsApp channels using Africa's Talking APIs.
## Features
- **Multi-Channel Access**: USSD (*123#), SMS, and WhatsApp support
- **AI-Powered Responses**: Integration with ganda-gemma model for Luganda/English responses
- **Domain Expertise**: Specialized services for agriculture, health, and education
- **2G Optimized**: Designed for low-bandwidth, unreliable networks
- **Session Management**: Redis-based session handling for conversation continuity
- **Analytics**: Usage tracking and performance monitoring
## Architecture
```
User Layer (2G Phones) → Africa's Talking APIs → Flask Application → AI Services
↓
Session Management (Redis)
↓
Domain Services (Agriculture/Health/Education)
```
## Quick Start
### Prerequisites
- Python 3.9+
- Redis server
- Africa's Talking account
- Ganda-Gemma API access
### Installation
1. Clone the repository:
```bash
git clone
cd ganda-gemma-2g-platform
```
2. Create virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
3. Install dependencies:
```bash
pip install -r requirements.txt
```
4. Configure environment:
```bash
cp .env.example .env
# Edit .env with your API keys and configuration
```
5. Start Redis (required for session management):
```bash
redis-server
```
6. Run the application:
```bash
python main.py
```
The application will start on `
localhost`
## Ollama and Ganda-Gemma Model Setup
### Enhanced, Repeatable Guide to Downloading and Setting Up the Ganda-Gemma Model
Based on successful implementation steps, this guide provides detailed, self-contained instructions for setting up the Ganda-Gemma model with Ollama. This version includes clear explanations, prerequisites …