Related Experiment Videos
Knowledge-enhanced large language model construction for garlic cultivation using GraphRAG
Kai Zhou1, Mengyao Dong1, Xinkai Meng1
1College of Mechanical and Electronic Engineering, Shandong Agricultural University, Tai'an, China.
Introduction:
Rapid advances in smart agriculture have highlighted the potential of large language models (LLMs), while practical applications remain limited by privacy risks, high training costs, and hallucinations. Focusing on garlic cultivation, this study proposes a knowledge-graph-enhanced framework that improves domain-specific LLMs through graph-based retrieval.
Methods:
A hybrid clustering algorithm with intra-cluster multidimensional ranking is employed to identify ten core entity types from garlic-related corpora. Few-shot learning and chain-of-thought prompting are further integrated to optimize entity and relation extraction using Qwen 2.5:32B, leading to the construction of a structured garlic cultivation knowledge graph. The knowledge graph is integrated with LLMs via GraphRAG, while prompt reconstruction strategies are adopted to enrich contextual information and constrain generation, thereby improving domain grounding and reducing hallucinations.
Results:
Experimental results demonstrate absolute improvements of 13.0, 37.0, and 28.2 percentage points in precision, recall, and F1-score, respectively, for triple extraction compared with the baseline LLM, along with a 37.5 percentage point increase in retrieval-based question-answering accuracy.
Discussion:
The proposed approach is interpretable and locally deployable without dependence on commercial APIs, offering a transferable methodological reference for domain-specific knowledge graph construction and intelligent question answering across diverse crop systems.