RANCANG BANGUN CHATBOT REKOMENDASI PRODUK SKINCARE BERBASIS RETRIEVAL-AUGMENTED GENERATION PADA TIDB SERVERLESS
Abstract
Abstrak. Pemilihan produk skincare sering menjadi masalah karena pengguna memiliki jenis kulit, kebutuhan, preferensi, dan batasan harga yang berbeda. Pencarian manual melalui marketplace atau media sosial sering tidak terstruktur, kurang personal, dan membutuhkan waktu lama, sedangkan layanan admin tidak selalu mampu merespons pertanyaan pelanggan secara cepat. Penelitian ini bertujuan merancang dan membangun chatbot rekomendasi produk skincare berbasis Retrieval-Augmented Generation (RAG) pada TiDB Serverless. Metode pengembangan sistem menggunakan Extreme Programming (XP) dengan tahapan planning, design, coding, dan testing. Sistem dikembangkan sebagai aplikasi web menggunakan Next.js, React, TypeScript, Drizzle ORM, TiDB Serverless, Ollama, model LLM Qwen2.5:7B, dan embedding BAAI/BGE-M3. Pendekatan hybrid retrieval diterapkan dengan menggabungkan vector search dan structured query agar sistem mampu memahami pertanyaan berbasis bahasa alami sekaligus menangani filter seperti harga. Hasil pengujian black box terhadap 15 skenario menunjukkan seluruh fungsi utama berhasil berjalan, meliputi rekomendasi produk, penolakan pertanyaan di luar topik, filter harga, login admin, pengelolaan produk, inventori, pesanan, chat logs, dan cache response. Sistem ini menunjukkan bahwa integrasi RAG, hybrid retrieval, dan TiDB Serverless dapat mendukung rekomendasi skincare secara lebih interaktif, kontekstual, efisien, dan berbasis data.
Abstract. Selecting skincare products is often difficult because users have different skin types, needs, preferences, and price ranges. Manual searching through marketplaces or social media is often unstructured, less personalized, and time-consuming. This study aims to design and build a skincare product recommendation chatbot based on Retrieval-Augmented Generation (RAG) using TiDB Serverless. The system development method used Extreme Programming (XP), consisting of planning, design, coding, and testing stages. The system was developed as a web application using Next.js, React, TypeScript, Drizzle ORM, TiDB Serverless, Ollama, Qwen2.5:7B LLM, and BAAI/BGE-M3 embedding model. A hybrid retrieval approach was implemented by combining vector search and structured query so the system can understand natural language questions while handling filters such as price. Black box testing on 15 scenarios showed that all main functions worked successfully, including product recommendation, out-of-topic rejection, price filtering, admin login, product management, inventory, order management, chat logs, and response caching. The system supports skincare recommendation delivery in a more interactive, contextual, and data-driven manner.
Downloads
References
A. Sindhu, A. Suresh, S. G. Shaila, B. Bindu, B. Akshaya, and P. Priyanka, “Personalized Skincare Recommender System Using Deep Learning,” in 2025 3rd International Conference on Advancements in Electrical, Electronics, Communication, Computing and Automation (ICAECA), 2025. doi: 10.1109/ICAECA63854.2025.11012227.
J. Lee, H. Yoon, S. Kim, C. Lee, J. Lee, and S. Yoo, “Deep learning-based skin care product recommendation: A focus on cosmetic ingredient analysis and facial skin conditions,” Journal of Cosmetic Dermatology, vol. 23, pp. 2066–2077, 2024. doi: 10.1111/jocd.16218.
S. Nurhaliza, B. Bustami, and H. A. K. Aidilof, “Implementasi Chatbot AI untuk Rekomendasi Produk Skincare Menggunakan Natural Language Processing,” Jurnal Ilmiah Global Education, vol. 6, no. 2, pp. 294–303, 2025. doi: 10.55681/JIGE.V6I2.3802.
N. Shrivastava, P. Tewari, S. Sujatha, S. R. Bogireddy, N. Varshney, and V. Sharma, “Natural Language Processing for Conversational AI: Chatbots and Virtual Assistants,” in 2025 IEEE International Conference on Interdisciplinary Approaches in Technology and Management for Social Innovation (IATMSI), 2025. doi: 10.1109/IATMSI64286.2025.10984818.
Z. Ji et al., “Survey of Hallucination in Natural Language Generation,” ACM Computing Surveys, vol. 55, no. 12, 2023. doi: 10.1145/3571730.
S. Gupta, “Retrieval-Augmented Generation and Hallucination in Large Language Models: A Scholarly Overview,” Scholars Journal of Engineering and Technology, vol. 13, no. 05, pp. 328–330, 2025. doi: 10.36347/SJET.2025.V13I05.003.
Y. Gao et al., “Retrieval-Augmented Generation for Large Language Models: A Survey,” in Proceedings - 2024 Conference on AI, Science, Engineering, and Technology (AIxSET), pp. 166–169, 2024. doi: 10.1109/AIxSET62544.2024.00030.
S. Sobhan and M. A. Haque, “LLM-Assisted Question-Answering on Technical Documents Using Structured Data-Aware Retrieval Augmented Generation,” 2025. [Online]. Available: https://arxiv.org/pdf/2506.23136
K. Sawarkar, A. Mangal, and S. R. Solanki, “Blended RAG: Improving RAG (Retriever-Augmented Generation) Accuracy with Semantic Search and Hybrid Query-Based Retrievers,” in Proceedings of the International Conference on Multimedia Information Processing and Retrieval (MIPR), pp. 155–161, 2024. doi: 10.1109/MIPR62202.2024.00031.
Y. Wan, Z. Chen, Y. Liu, C. Chen, and M. Packianather, “Empowering LLMs by hybrid retrieval-augmented generation for domain-centric Q&A in smart manufacturing,” Advanced Engineering Informatics, vol. 65, 2025. doi: 10.1016/J.AEI.2025.103212.
C.-C. Lin et al., “A Review of AI-Driven Conversational Chatbots Implementation Methodologies and Challenges (1999–2022),” Sustainability, vol. 15, no. 5, 2023. doi: 10.3390/SU15054012.
S. Singh and A. Mahmood, “The NLP Cookbook: Modern Recipes for Transformer Based Deep Learning Architectures,” IEEE Access, vol. 9, pp. 68675–68702, 2021. doi: 10.1109/ACCESS.2021.3077350.
M. A. K. Raiaan et al., “A Review on Large Language Models: Architectures, Applications, Taxonomies, Open Issues and Challenges,” IEEE Access, vol. 12, pp. 26839–26874, 2024. doi: 10.1109/ACCESS.2024.3365742.
D. S. Asudani, N. K. Nagwani, and P. Singh, “Impact of word embedding models on text analytics in deep learning environment: a review,” Artificial Intelligence Review, vol. 56, no. 9, pp. 10345–10425, 2023. doi: 10.1007/S10462-023-10419-1.
J. Johnson, M. Douze, and H. Jégou, “Billion-scale similarity search with GPUs,” IEEE Transactions on Big Data, vol. 7, no. 3, pp. 535–547, 2021. doi: 10.1109/TBDATA.2019.2921572.
Z. Fayyaz, M. Ebrahimian, D. Nawara, A. Ibrahim, and R. Kashef, “Recommendation Systems: Algorithms, Challenges, Metrics, and Business Opportunities,” Applied Sciences, vol. 10, no. 21, 2020. doi: 10.3390/APP10217748.
A. Shrivastava, I. Jaggi, N. Katoch, D. Gupta, and S. Gupta, “A Systematic Review on Extreme Programming,” Journal of Physics: Conference Series, vol. 1969, 2021. doi: 10.1088/1742-6596/1969/1/012046.
G. D. Albert and A. Voutama, “Pengembangan Chatbot Berbasis Pdf Menggunakan Local Retrieval-Augmented Generation (Rag) Dan Ollama,” Jurnal Informatika Dan Teknik Elektro Terapan, vol. 13, no. 2, pp. 2830–7062, 2025. doi: 10.23960/JITET.V13I2.6361.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.



