Application of Reinforcement Learning from Human Feedback for Localizing Quality Agricultural Advice using Generative AI
Recording
Abstract
Generative AI models have created new possibilities for delivering personalized, real-time agricultural advice to smallholder farmers. Yet, most large language models (LLMs) are trained on data from high-income countries and lack exposure to the diverse agroecologies, cropping systems, and languages that define smallholder farming. As a result, their responses often skew generic, irrelevant, or even unsafe when applied to the realities of low-resource contexts. For example, farmers in Bihar asking about yellowing wheat leaves might receive recommendations for chemicals unavailable in India, while missing low-cost local solutions such as neem-based sprays. Such gaps highlight a deeper misalignment between global AI systems and the lived experiences of smallholders.
To bridge this divide, Digital Green adapted Reinforcement Learning from Human Feedback (RLHF) to the agricultural domain through a tool called Farmer.Chat. Launched in 2023, Farmer.Chat is an AI-assistant that provides text, image, and voice-based advisory. By September 2025, more than 300,000 farmers and extension workers across India, Kenya, Ethiopia, and Nigeria had submitted over 4 million queries. While uptake was rapid, initial testing revealed a familiar challenge: state-of-the-art models were powerful but insufficiently grounded in local realities. RLHF offered a path forward.
The RLHF pipeline was designed to improve accuracy, tone, and contextual fit of AI-generated responses. At its core is Farmer.Chat Evaluate, a web-based platform where trained agronomists and extension experts score AI answers against farmer queries. Evaluation occurs in two modes: (1) absolute scoring across dimensions such as safety, clarity, and contextual relevance, and (2) comparative ranking when multiple model outputs exist. To strengthen reliability, the system employs redundancy, consistency checks, and feedback loops that allow reviewers to refine rubrics over time. This process not only corrects individual outputs but generates structured datasets—“Golden Q&A pairs”—for fine-tuning models and training reward functions.
By September 2025, more than 22,000 Q&A pairs had been reviewed, spanning over 20 crops and livestock systems. Results show consistent improvements across categories: high-quality responses for cereals rose from 48% to 73%, vegetables from 32% to 65%, and pulses from 41% to 70%. Gains were most notable when responses incorporated location-specific practices, cost-saving alternatives, or culturally resonant framing.
Beyond technical performance, the RLHF process surfaces deeper considerations of equity and sustainability. Many advisory gaps were identified in women’s crops, livestock, and indigenous practices, underscoring the importance of diverse reviewers. Embedding reviewer networks within extension systems can ensure governance, transparency, and adaptability as agricultural conditions evolve. Importantly, RLHF is not positioned as a stand-alone solution; rather, it complements retrieval-augmented systems and structured data pipelines by aligning tone, usability, and persuasion with farmer realities.
Digital Green’s experience shows that RLHF is both feasible and replicable in low-resource agricultural settings. It offers a pathway for governments, NGOs, and agritech actors to co-create systems that evolve alongside farmer needs. The next frontier lies in multimodal RLHF—integrating expert feedback on images, voice notes, and videos—to better serve farmers with limited literacy and capture the complexity of real-world communication. By pooling validated Q&A data across organizations, the agricultural community can build a federated ecosystem of locally grounded, continuously improving AI.
This work demonstrates that with the right feedback loops, generative AI can move beyond generic advice to deliver trusted, localized, and inclusive agricultural extension at scale.