AgAsk: An Agent to Help Answer Farmer's Questions From Scientific Documents

Bevan Koopman, Ahmed Mourad, Hang Li, Anton van der Vegt, Shengyao Zhuang, Simon Gibson, Yash Dang, David Lawrence, Guido ZucconarXiv 2022 · arXiv

TL;DR

AgAsk is a domain-specific question-answering agent designed to help farmers and agronomists extract precise, digestible answers from a massive corpus of scientific literature. By introducing a novel, expert-curated agricultural test collection (Ag-valuate) and evaluating state-of-the-art neural information retrieval models, the authors demonstrate a highly accurate, CPU-friendly pipeline ready for real-world deployment via Telegram.

What Problem Does This Paper Address?

Modern agriculture is increasingly data-driven, yet critical scientific insights remain locked away in unstructured, free-text formats like academic journals, manuals, and technical reports. Existing agricultural chatbots are highly limited—they are typically restricted to specific regions or single crops, and they rely on manually curated, non-scalable Q&A databases rather than primary scientific evidence.

Furthermore, farmers face unique search challenges. They often describe problems via visible symptoms (e.g., "brown spots on leaves") rather than exact technical terms, meaning standard keyword search engines fail to find the right documents. When a system does find a relevant 25-page scientific paper, a busy farmer doesn't have the time to read it; they need focused, passage-level answers.

Methods

To bridge this gap, the authors developed AgAsk, an end-to-end conversational search agent. The core methodology consists of:

  • User Requirements Survey: The authors surveyed agricultural experts to understand their information-seeking habits, preferred answer formats, and the urgency of their queries.
  • Passage Retrieval Formulation: Instead of retrieving whole documents, the system breaks texts into three-sentence passages to provide highly focused answers.
  • Two-Stage Retrieval Pipeline: They evaluated traditional term-based baselines (BM25 and BM25-RM3) against deep learning approaches. Specifically, they tested monoBERT (a powerful cross-encoder neural reranker) and TILDEv2 (an efficient neural reranker that utilizes document expansion at indexing time).
  • System Architecture: AgAsk integrates the Macaw conversational framework with a Telegram messaging frontend. To make the system practical on commodity hardware, they deployed TILDEv2 on the backend, allowing fast, CPU-only inference without requiring expensive GPUs.

Datasets

The paper introduces Ag-valuate, a new domain-specific information retrieval test collection compiled by agricultural scientists rather than web crawlers or crowdsourcing:

  • The Corpus: Consists of 86,846 scientific documents (4,003 agricultural reports from the Grain Research Development Corporation and Australian State Departments, plus 82,843 articles from 33 agricultural journals). This corpus was processed into 9,441,693 three-sentence passages.
  • The Topics: Features 210 rich, multi-faceted search topics (160 for training, 50 for testing). Each topic includes a natural language question, multiple keyword query variations, an expert-authored summary answer, and graded human relevance assessments for the text passages.

Key Insights and Ideas

  • Natural Language Beats Keywords: In contrast to general web search where short keyword queries are standard, neural models in this expert domain performed significantly better when given full, verbose natural language questions.
  • Recall vs. Precision: Traditional BM25 is highly effective at pulling relevant passages into the top 100 results (high recall), but terrible at ranking them at the very top (low precision). This strongly justifies a two-stage architecture: use BM25 to filter the corpus quickly, then apply a neural ranker to sort the top results.
  • Give Me the Snippet and the Link: The user survey revealed that agricultural experts overwhelmingly prefer short-to-medium paragraph-length answers accompanied by a direct hyperlink to the source document for further reading and verification.
Fig. 3: Answer length (percentage)

Key Results

  • Neural Superiority: Neural rankers (monoBERT and TILDEv2) vastly outperformed the BM25 baseline on early precision metrics like nDCG@5 ($p < 0.01$).
  • Near-Perfect Top Rankings: The monoBERT model achieved a Success@3 of 0.96, meaning that for 48 out of the 50 test topics, a highly relevant answer passage was placed within the top 3 results.
  • Efficiency-Effectiveness Tradeoff: While monoBERT was the most accurate model, its query latency is too high for interactive applications. TILDEv2 struck the best balance, delivering a massive speedup with only a minor drop in retrieval effectiveness, while running entirely on CPU hardware.

Limitations and Future Work

  • Naive Text Extraction: The current pipeline splits documents strictly into three-sentence chunks, completely ignoring structural document context such as paragraphs, sections, tables, and figures.
  • Lack of Contextualization: AgAsk currently treats every query identically. The authors note that true utility in the field requires personalization based on the farmer's specific geographic location, local weather/climate forecasts, and technical literacy level. Integrating these variables into neural rerankers remains an open area of research.

Summary updated

Abstract

Decisions in agriculture are increasingly data-driven; however, valuable agricultural knowledge is often locked away in free-text reports, manuals and journal articles. Specialised search systems are needed that can mine agricultural information to provide relevant answers to users' questions. This paper presents AgAsk -- an agent able to answer natural language agriculture questions by mining scientific documents. We carefully survey and analyse farmers' information needs. On the basis of these needs we release an information retrieval test collection comprising real questions, a large collection of scientific documents split in passages, and ground truth relevance assessments indicating which passages are relevant to each question. We implement and evaluate a number of information retrieval models to answer farmers questions, including two state-of-the-art neural ranking models. We show that neural rankers are highly effective at matching passages to questions in this context. Finally, we propose a deployment architecture for AgAsk that includes a client based on the Telegram messaging platform and retrieval model deployed on commodity hardware. The test collection we provide is intended to stimulate more research in methods to match natural language to answers in scientific documents. While the retrieval models were evaluated in the agriculture domain, they are generalisable and of interest to others working on similar problems. The test collection is available at: \url{https://github.com/ielab/agvaluate}.
BibTeX
@misc{koopman2022agask,
  author = {Bevan Koopman and Ahmed Mourad and Hang Li and Anton van der Vegt and Shengyao Zhuang and Simon Gibson and Yash Dang and David Lawrence and Guido Zuccon},
  title = {{AgAsk: An Agent to Help Answer Farmer's Questions From Scientific Documents}},
  year = {2022},
  eprint = {2212.10762},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.10762},
}
Figure