收藏切换
Intelligent Q&A Method for Crop Diseases and Pests Using LLM Augmented by Adaptive Hybrid Retrieval
收藏切换
Jun YANG1, Wanxia YANG1, Sen YANG1, Liang HE2, 3, Di ZHANG1
Smart Agriculture | 2026, 8(1) : 52 - 61
Less
收藏切换
Smart Agriculture | 2026, 8(1): 52-61
• Topic--Intelligent Identification and Diagnosis of Agricultural Diseases and Pests •
Intelligent Q&A Method for Crop Diseases and Pests Using LLM Augmented by Adaptive Hybrid Retrieval
Full
Jun YANG1, Wanxia YANG1, Sen YANG1, Liang HE2, 3, Di ZHANG1
Affiliations
  • 1.College of Electrical and Mechanical Engineering, Gansu Agricultural University, Lanzhou 730070, China
  • 2.School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China
  • 3.Beijing National Research Center for Information Science and Technology/ Department of Electronic Engineering, Tsinghua University, Beijing 100084, China
  • YANG Jun, E-mail:

About Author:

YANG Jun, E-mail:

Published: 2026-01-30 doi: 10.12133/j.smartag.SA202506026
Outline
收藏切换

[Objective] Extracting valuable knowledge from vast amounts of dispersed, heterogeneous, and unstructured agricultural big data, correlating and structuring it, and enhancing large models to form intelligent question-answering systems enables the effective delivery of services to all in agriculture. This approach can rapidly advance the scientific and precision-based development of agricultural production. Existing agricultural Q&A systems lack enough semantic understanding of complex symptoms, while general-purpose large language models (LLMs) produce factual hallucinations due to incomplete training data coverage. The research aims to address the issues of insufficient scale and low quality in the construction of knowledge bases in the agricultural field. [Methods] First, disease and pest data were collected along for five typical crops: wheat, rice, corn, potatoes, and cotton. Using manual verification methods, outliers were precisely identified and removed, ultimately yielding 87 901 unstructured data entries. Then, a few-shot learning model was employed to extract entities defined in the pattern layer, and these entities were aligned with the semantic vectors of Bert and LLM prompt engineering, ultimately yielding a triplet knowledge base of 916 239 entries for knowledge retrieval. A knowledge retrieval-augmented LLM approach for intelligent Q&A on crop diseases and pests was proposed, specifically the adaptive hybrid retrieval-augmented generation (AHR-RAG) approach. Firstly, an overlapping mechanism was introduced during fixed-length segmentation to mitigate semantic fragmentation. Simultaneously, vector semantic similarity was used to match highly related text blocks with the topic for optimization and storage. Then, single-hop and multi-hop retrieval were designed based on the complexity of the problem. Single-hop retrieval used the BM25 algorithm to match information extracted from the query with document content in the Elasticsearch index, feeding the results into the LLM to enhance answer generation. Multi-hop retrieval first converted user queries into structured conditions and semantic vector representations. Results retrieved from different knowledge bases were then fused using reciprocal rank fusion (RRF) and fed into the LLM. [Results and Discussions] The proposed method was experimentally compared with multiple baseline approaches, including different query types and complexity queries. The results demonstrated that the proposed method achieved accuracy and F1 improvements of 0.193 and 0.170, respectively, on the Qwen1.5-7B-Chat model. Compared to the improved methods Self-RAG and Adaptive-RAG, AHR-RAG maintained low response times while achieving F1 improvements of 0.05 and 0.021, respectively, with an accuracy as high as 0.896. For multi-type question-answering tasks, compared to the Naive-RAG method that relied solely on prior knowledge, the AHR-RAG approach achieved accuracy improvements of 0.231, 0.123, and 0.157 for comparison, judgment and selection query types, respectively. For parsing complex semantics, AHR-RAG also demonstrated significant advantages. In single-hop queries, its accuracy reached 0.921, representing a 0.029 improvement over Adaptive-RAG. In multi-hop query scenarios, its accuracy reached 0.748, achieving gains of 0.082 and 0.059 over Self-RAG and Adaptive-RAG respectively. In retrieval-augmented generation, AHR-RAG achieved a 0.013 increase in accuracy and a 0.009 improvement in F1 by optimizing prompt strategies, compared to directly feeding retrieval results to the model for output. [Conclusions] This research demonstrates strong adaptability to diverse query types and excels at reasoning complex queries such as multi-hop searches. It delivers significant advantages in answer generation accuracy, relevance, and comprehensiveness, producing responses with enhanced logical coherence and richer content. Future work will explore the integration of multimodal knowledge bases.

adaptive hybrid retrieval  /  text blocking  /  diseases and pests  /  intelligent Q&A
杨俊, 杨婉霞, 杨森, 何亮, 张娣. 自适应混合检索增强大模型的农作物病虫害智能问答方法. 智慧农业(中英文), 2026 , 8 (1) : 52 -61 . DOI: 10.12133/j.smartag.SA202506026
Jun YANG, Wanxia YANG, Sen YANG, Liang HE, Di ZHANG. Intelligent Q&A Method for Crop Diseases and Pests Using LLM Augmented by Adaptive Hybrid Retrieval[J]. Smart Agriculture, 2026 , 8 (1) : 52 -61 . DOI: 10.12133/j.smartag.SA202506026
  • The National Key R&D Program of China(2022ZD0115801)
Year 2026 volume 8 Issue 1
128
56
Cite this Article
BibTeX
Article Info
doi: 10.12133/j.smartag.SA202506026
  • Receive Date:2025-06-13
  • Online Date:2026-10-16
  • Published:2026-01-30
Article Data
Affiliations
History
  • Received:2025-06-13
Funding
The National Key R&D Program of China(2022ZD0115801)
Affiliations
    1.College of Electrical and Mechanical Engineering, Gansu Agricultural University, Lanzhou 730070, China
    2.School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China
    3.Beijing National Research Center for Information Science and Technology/ Department of Electronic Engineering, Tsinghua University, Beijing 100084, China

Corresponding:

YANG Wanxia, E-mail:
References
Share
https://castjournals.cast.org.cn/joweb/zhny/EN/10.12133/j.smartag.SA202506026
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT