Ethiopian OpenAgriNet AI API.
# OpenAgriNet AI API
OpenAgriNet is part of Maharashtra's smart farming Digital Public Infrastructure (DPI) initiative. OAN powers oan-api, an AI-driven agricultural assistant that brings expert farming knowledge to every farmer in simple language.
For more information about OpenAgriNet, visit:
openagrinet.global
## Features
- Location-based market prices for crops
- Current and upcoming weather information
- Nearest storage facility lookup
- Crop selection guidance by region
- Pest and disease management advice
- Best practices for specific crops
## Benefits
- Multi-language support (Marathi and English)
- 24/7 accessibility via mobile or computer
- Integration with trusted agricultural sources
- Location-specific personalized advice
- Continuous improvement based on farmer feedback
## Data Sources
- Agricultural universities' Package of Practices (PoP)
- IMD (India Meteorological Department) weather data
- APMC (Agricultural Produce Market Committee) market prices
- Registered warehouse database
---
## Getting Started
### Prerequisites
- Ollama installed locally (for the LLM)
- Docker running (for all supporting services)
- `conda activate protean` (Python environment with all dependencies)
---
### Step 1 — Start Required Services
**Create a shared Docker network (first time only):**
```bash
docker network create oannetwork
```
**Redis (session cache):**
```bash
docker run -d --name redis-stack --network oannetwork \
-p 6379:6379 -p 8001:8001 redis/redis-stack:latest
```
**PostgreSQL (market data):**
```bash
docker compose up postgres -d
```
**Ollama (LLM):**
```bash
ollama serve
ollama pull qwen2.5:7b # first time only
```
**faster-whisper (voice STT):**
```bash
docker run -d -p 8000:8000 fedirz/faster-whisper-server:latest-cpu
```
**Coqui XTTS (voice TTS):**
```bash
docker run -d -p 8020:8020 daswer123/xtts-api-server
```
**Nominatim (geocoding, optional):**
For detailed setup instructions, system requirements, and troubleshootin …