Liu, L., Li, S., Qi, J. et al. (2 more authors) (2026) TARAG: A time-aware retrieval-augmented generation framework for supporting precision crop pest and disease management through large language models. Computers and Electronics in Agriculture, 248. 111786. ISSN: 0168-1699
Abstract
Plant diseases and pests cause significant annual crop losses, severely threatening global food security. To mitigate crop losses, large language models (LLMs) demonstrate the ability to alleviate challenges in accessing precise farming support by acting as intelligent assistants that provide farmers with timely and precise decision support services. However, existing efforts still fall short in precision due to the neglect of time-sensitive nature in agricultural practices. They implicitly treat domain knowledge as time-irrelevant, ignoring the impact of crop phenology and pest life stages in their generated recommendations. To address this challenge, we propose a Time-Aware Retrieval-Augmented Generation framework (TARAG), comprising a time-aware knowledge base construction module, a hybrid retrieval module, and a time-based generation module to provide precise pest management suggestions. Firstly, the time-aware knowledge base construction module constructs a time-annotated knowledge base from unstructured documents to provide supplementary agricultural knowledge. Secondly, the hybrid retrieval module performs coarse-grained sparse retrieval to ensure relevance, with a time-sensitive re-ranking stage that refines the results to achieve both semantic relevance retrieval and time alignment with user queries. Finally, the time-aware generation module leverages the top-k retrieved documents and an instruction prompt to produce the final suggestion. To validate the effectiveness of the proposed framework, we contribute TAQA, the first bilingual, time-annotated agricultural question-answering dataset. Experiments demonstrate that TARAG significantly outperforms state-of-the-art RAG frameworks in retrieval precision and suggestion quality, with 99.14% retrieval recall and an F1 score of 66.85% for generated suggestions. The implementation and datasets for this work are available in https://github.com/lee-hash1/agri_rag
Metadata
| Item Type: | Article |
|---|---|
| Authors/Creators: |
|
| Copyright, Publisher and Additional Information: | © 2026 The Authors. Except as otherwise noted, this author-accepted version of a journal article published in Computers and Electronics in Agriculture is made available via the University of Sheffield Research Publications and Copyright Policy under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution and reproduction in any medium, provided the original work is properly cited. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ |
| Dates: |
|
| Institution: | The University of Sheffield |
| Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Department of Computer Science (Sheffield) |
| Date Deposited: | 23 Apr 2026 16:09 |
| Last Modified: | 29 Apr 2026 22:30 |
| Status: | Published |
| Publisher: | Elsevier |
| Refereed: | Yes |
| Identification Number: | 10.1016/j.compag.2026.111786 |
| Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:240241 |
Download
Filename: TARAG_without_highlights.pdf
Licence: CC-BY 4.0

CORE (COnnecting REpositories)
CORE (COnnecting REpositories)