Leveraging Retrieval-Augmented Generation for Swahili Language Conversation Systems
Open Access
- 8 January 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 15 (2) , 524
Abstract
A conversational system is an artificial intelligence application designed to interact with users in natural language, providing accurate and contextually relevant responses. Building such systems for low-resource languages like Swahili presents significant challenges due to the limited availability of large-scale training datasets. This paper proposes a Retrieval-Augmented Generation-based system to address these challenges and improve the quality of Swahili conversational AI. The system leverages fine-tuning, where models are trained on available Swahili data, combined with external knowledge retrieval to enhance response accuracy and fluency. Four models—mT5, GPT-2, mBART, and GPT-Neo—were evaluated using metrics such as BLEU, METEOR, Query Performance, and inference time. Results show that Retrieval-Augmented Generation consistently outperforms fine-tuning alone, particularly in generating detailed and contextually appropriate responses. Among the tested models, mT5 with Retrieval-Augmented Generation demonstrated the best performance, achieving a BLEU score of 56.88%, a METEOR score of 72.72%, and a Query Performance score of 84.34%, while maintaining relevance and fluency. Although Retrieval-Augmented Generation introduces slightly longer response times, its ability to significantly improve response quality makes it an effective approach for Swahili conversational systems. This study highlights the potential of Retrieval-Augmented Generation to advance conversational AI for Swahili and other low-resource languages, with future work focusing on optimizing efficiency and exploring multilingual applications.Keywords
This publication has 26 references indexed in Scilit:
- A Systematic Review of Testing and Evaluation of Healthcare Applications of Large Language Models (LLMs)medRxiv, 2024
- Development of a liver disease–specific large language model chat interface using retrieval-augmented generationHepatology, 2024
- Can large language models reason about medical questions?Patterns, 2024
- Robotics in Healthcare: A SurveySN Computer Science, 2024
- Large language models encode clinical knowledgeNature, 2023
- An ensemble model for classifying idioms and literal texts using BERT and RoBERTaInformation Processing & Management, 2022
- Domain-Specific Language Model Pretraining for Biomedical Natural Language ProcessingACM Transactions on Computing for Healthcare, 2021
- A multi-objective approach to determining the usefulness of papers in academic searchData Technologies and Applications, 2021
- Chatbots as Conversational Healthcare ServicesIEEE Internet Computing, 2020
- High-performance medicine: the convergence of human and artificial intelligenceNature Medicine, 2019