# AgriAssist: A Reliable Multi-Agent System for Farmers
🌾 **An intelligent agricultural advisory system powered by Google Gemini, LangChain, and LangGraph**
## Overview
AgriAssist is a production-ready multi-agent AI system designed to provide farmers with verified, localized agricultural advice. It combines:
- **5 Google Gemini-based agents** (ADK framework) for domain-specific expertise
- **1 LangChain-based RAG agent** for knowledge retrieval
- **LangGraph orchestration** for intelligent workflow coordination
- **Hallucination prevention** through fact-checking and citation enforcement
- **Multilingual support** (English ↔ Hindi) using Helsinki-NLP models
- **Comprehensive logging** with structured callbacks and event tracking
---
## System Architecture
```
┌─────────────────────────────────────────────────────────────┐
│ FARMER INTERFACE │
│ (Hindi/English queries and responses) │
└────────────────────┬────────────────────────────────────────┘
│
┌────────────────────▼────────────────────────────────────────┐
│ LangGraph Orchestrator │
│ (Coordinates all agents and workflows) │
└─────┬──────┬──────┬──────┬──────┬──────┬──────┬────────────┘
│ │ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼ ▼
┌──────┬──────┬──────┬──────┬──────┬──────┬──────┐
│Router│ Crop │Fert. │Weath.│Market│ RAG │ Fact │
│Agent │Agent │Agent │Agent │Agent │Agent │Check │
└──────┴──────┴──────┴──────┴──────┴──────┴──────┘
↓ ↓ ↓ ↓ ↓ ↓ ↓
[Google Gemini (ADK)] [LangChain] [Validation]
↓
┌──────────┐
│ Chroma │
│ Vector DB│
└──────────┘
↓
Knowledge Base
(ICAR, KVK data)
```
---
## Features
### ✅ Multi-Agent Architecture
- **Router Agent**: Intent classification and workflow routing
- **Crop Agent**: Soil & climate-based crop recommendations
- **Fertilizer Agent**: NPK ratio and fertilizer suggesti …