Previous Article in Journal
Ship Model Identification Using Interpretable 4-DOF Maneuverability Models for River Combat Boat
Previous Article in Special Issue
Advancements in Predictive Analytics: Machine Learning Approaches to Estimating Length of Stay and Mortality in Sepsis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

A Generalizable Agentic AI Pipeline for Developing Chatbots Using Small Language Models: A Case Study on Thai Student Loan Fund Services

by
Jakkaphong Inpun
1,
Watcharaporn Cholamjiak
2,
Piyada Phrueksawatnon
1 and
Kanokwatt Shiangjen
1,*
1
School of Information and Communication Technology, University of Phayao, Phayao 56000, Thailand
2
School of Science, University of Phayao, Phayao 56000, Thailand
*
Author to whom correspondence should be addressed.
Computation 2025, 13(12), 297; https://doi.org/10.3390/computation13120297
Submission received: 10 November 2025 / Revised: 11 December 2025 / Accepted: 15 December 2025 / Published: 18 December 2025
(This article belongs to the Special Issue Generative AI in Action: Trends, Applications, and Implications)

Abstract

The rising deployment of artificial intelligence in public services is constrained by computational costs and limited domain-specific data, particularly in multilingual contexts. This study proposes a generalizable Agentic AI pipeline for developing question–answer chatbot systems using small language models (SLMs), demonstrated through a case study on the Thai Student Loan Fund (TSLF). The pipeline integrates four stages: OCR-based document digitization using Typhoon2-3B, agentic question–answer dataset construction via a clean–check–plan–generate (CCPG) workflow, parameter-efficient fine-tuning with QLoRA on Typhoon2-1B and Typhoon2-3B models, and retrieval-augmented generation (RAG) for source-grounded responses. Evaluation using BERTScore and CondBERT confirmed high semantic consistency (FBERT = 0.9807) and stylistic reliability (FBERT = 0.9839) of the generated QA corpus. Fine-tuning improved the 1B model’s domain alignment (FBERT: 0.8593 → 0.8641), while RAG integration further enhanced factual grounding (FBERT = 0.8707) and citation transparency. Cross-validation with GPT-5 and Gemini 2.5 Pro demonstrated dataset transferability and reliability. The results establish that Agentic AI combined with SLMs offers a cost-effective, interpretable, and scalable framework for automating bilingual advisory services in resource-constrained government and educational institutions.
Keywords: agentic artificial intelligence; small language models (SLMs); question–answer chatbot; retrieval-augmented generation (RAG); Thai Student Loan Fund (TSLF) agentic artificial intelligence; small language models (SLMs); question–answer chatbot; retrieval-augmented generation (RAG); Thai Student Loan Fund (TSLF)

Share and Cite

MDPI and ACS Style

Inpun, J.; Cholamjiak, W.; Phrueksawatnon, P.; Shiangjen, K. A Generalizable Agentic AI Pipeline for Developing Chatbots Using Small Language Models: A Case Study on Thai Student Loan Fund Services. Computation 2025, 13, 297. https://doi.org/10.3390/computation13120297

AMA Style

Inpun J, Cholamjiak W, Phrueksawatnon P, Shiangjen K. A Generalizable Agentic AI Pipeline for Developing Chatbots Using Small Language Models: A Case Study on Thai Student Loan Fund Services. Computation. 2025; 13(12):297. https://doi.org/10.3390/computation13120297

Chicago/Turabian Style

Inpun, Jakkaphong, Watcharaporn Cholamjiak, Piyada Phrueksawatnon, and Kanokwatt Shiangjen. 2025. "A Generalizable Agentic AI Pipeline for Developing Chatbots Using Small Language Models: A Case Study on Thai Student Loan Fund Services" Computation 13, no. 12: 297. https://doi.org/10.3390/computation13120297

APA Style

Inpun, J., Cholamjiak, W., Phrueksawatnon, P., & Shiangjen, K. (2025). A Generalizable Agentic AI Pipeline for Developing Chatbots Using Small Language Models: A Case Study on Thai Student Loan Fund Services. Computation, 13(12), 297. https://doi.org/10.3390/computation13120297

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop