Engineering Access, Volume 12, Issue 2, Pages 309-317 , 01/07/2026
Development of Generative Chatbot towards Thai Rice Knowledge Using Retrieval-Augmented Generation
Abstract
This paper presents the development of a generative chatbot to support Thai rice farmers by extending rice-relevant knowledge from reliable external sources. The developed chatbot system is based on a lightweight pretrained large language model and is improved through fine-tuning using collected documents related to Thai rice farming. In addition, approved Thai rice information is utilized as an external knowledge base within a retrieval-augmented generation framework to enable responses to domain-specific and technical questions related to Thai rice cultivation. Experimental evaluation compares chatbot systems with and without the application of retrieval-augmented generation. The results indicate that the generative chatbot incorporating retrieval-augmented generation performs better than the baseline system in terms of response relevance and factual reliability. User-driven evaluation shows that the RAG-based chatbot produces 91.43% acceptable responses and 8.57% partially acceptable responses, with no unacceptable responses observed. To further assess system reliability, a grounding-based evaluation was conducted using a controlled query set with document-level reference attribution. The proposed system achieves document-level grounding recall of 0.896 (micro-average) and 0.983 (macro-average), indicating effective utilization of the external knowledge base. These findings suggest that retrieval-augmented generation is an effective approach for developing generative chatbots in domain-specific and localized agricultural advisory contexts, where accuracy, grounding, and trustworthiness of information are essential.
Document Type
Article
Source Type
Journal
Keywords
advisory conversational systemGenerative Chatbotretrieval-augmented generationThai rice knowledge
ASJC Subject Area
Engineering : Engineering (all)