Thai Question-Answering System Using Similarity Search and LLM

dc.contributor.authorJearanaitanakij, Kietikul
dc.contributor.authorSrithongdee, Chananchida
dc.contributor.authorKetkham, Sirinoot
dc.contributor.authorArdsana, Onwanya
dc.contributor.authorKullawan, Tiwat
dc.contributor.authorYongpiyakul, Chankit
dc.date.accessioned2026-08-06T10:46:27Z
dc.date.available2026-08-06T10:46:27Z
dc.date.issued2024-07-01
dc.description.abstractA question-answering (QA) system is essential to an organization where numerous QA pairs respond to customer queries. Choosing the right pair corresponding to the query is a complex task. Although the QA system from a commercial product like ChatGPT provides an excellent solution, it is costly, and the fine-tuned Large Language Model (LLM) cannot be downloaded for private use at the local site. In addition, the cost of using such LLM may significantly increase when the number of users grows. We propose a Thai QA system that can swiftly respond and correctly match the user query to the reference answer in the QA dataset. The proposed system encodes both QA pairs and a query into individual embeddings and finds a couple of QA pairs that are most related to the query by using the fast similarity search called Faiss (Facebook AI Similarity Search.) Afterward, the relevant QA pairs and the query are fed to the fine-tuned LLM (WangchanBERTa-pretraining multilingual transformer-based) to choose the single best match QA pair. The fine-tuned WangchanBERTa can retrieve the correct answer and respond to the query naturally. The experiment conducted on the Thai Wiki QA dataset indicates the superior ROUGE values, precision, recall, F1-score, and runtime of the proposed system against other strategies.
dc.identifier.citationEcti Transactions on Computer and Information Technology, 18(3), 406-416, 2024
dc.identifier.doi10.37936/ecti-cit.2024183.256043
dc.identifier.issn22869131
dc.identifier.other2-s2.0-85201721475
dc.identifier.urihttps://dspace.kmitl.ac.th/handle/123456789/15742
dc.sourceEcti Transactions on Computer and Information Technology
dc.subjectFaiss
dc.subjectLSTM
dc.subjectmDeBERTa
dc.subjectQuestion-answering
dc.subjectRetrieval-Augmented Generation
dc.subjectSen-tenceTransformers
dc.subjectWangchanBERTa
dc.titleThai Question-Answering System Using Similarity Search and LLM
dc.typeArticle

Files

Collections