A Response-by-Retrieval Chatbot for Enhancing Horticulture Extension Services in Tanzania
Why this work is in the frame
A frame that forgets how it found something cannot be audited. These are the routes that admitted this work.
Bibliographic record
Abstract
Horticulture, which encompasses the cultivation of flowers, fruits, herbs, and vegetables, is a key contributor to Tanzania’s export revenue generation. Smallholder farmers are the primary producers of these crops, and they rely heavily on extension services for critical information that shapes both their economic success and long-term sustainability. However, the delivery of such services from the government and other stakeholders faces challenges, including constraints in human capital, geographic barriers, misaligned information needs, as well as issues with the timeliness of information dissemination. To address these challenges, this study developed a Swahili-language chatbot designed to provide timely, context-specific information tailored to the needs of farmers. To ensure credibility and relevance, key private and public stakeholders were consulted, and comprehensive farming guides were collected to build a custom dataset. This dataset consisted of 307 passages and 2,231 question-answer pairs. Four multilingual models, Multilingual Bidirectional Encoder Representations from Transformers (mBERT), Cross-lingual Language Model Pretraining RoBERTa (XLM-R), Multilingual Decoding-Enhanced BERT with Disentangled Attention (mDeBERTa), and Afro Cross-lingual Language Model Pretraining RoBERTa (AfroXLMR), were finetuned on this dataset for a question-answering task. Among them, the mDeBERTa model achieved the strongest performance, with an Exact Match (EM) score of 62.69% and an F1 score of 75.35%. These results demonstrate the potential of adapting advanced language models for specialized, low-resource language tasks in agriculture. The deployment of mDeBERTa in a prototype chatbot highlights a promising pathway to bridge information gaps and enhance the accessibility of extension services for Tanzania’s smallholder farmers.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.005 | 0.001 |
| Meta-epidemiology (narrow) | 0.000 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.000 |
| Bibliometrics | 0.003 | 0.011 |
| Science and technology studies | 0.000 | 0.000 |
| Scholarly communication | 0.000 | 0.000 |
| Open science | 0.003 | 0.001 |
| Research integrity | 0.000 | 0.001 |
| Insufficient payload (model declined to judge) | 0.000 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from it