Knowledge-enhanced large language model construction for garlic cultivation using GraphRAG
Abstract
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…
Read the paper
Related studies
- Knowledge Management Perspective of Generative Artificial Intelligence
- Navigating Generative Artificial Intelligence Promises and Perils for Knowledge and Creative Work
- Characterizing the evolving research on enterprise content management
- Large language models and multimodal foundation models for precision oncology
- From Generative AI to Extended Reality: Multidisciplinary Perspectives on the Challenges, Opportunities, and Future of Educational Computing
- Generative Artificial Intelligence: A New Engine for Advancing Environmental Science and Engineering
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.