KIẾN TRÚC THỐNG NHẤT TÍCH HỢP RAG VÀ CƠ CHẾ GỌI HÀM TUÂN THỦ AN TOÀN VÀ BẢO VỆ CHO CÁC HỆ THỐNG CHATBOT NGÂN HÀNG TẠI VIỆT NAM

Các tác giả

  • Trần Hoàng Hải
  • Ngô Văn Nam
  • Vũ Văn Thiệu

Từ khóa

RAG, Function calling, LLM guardrails, Vietnamese NLP, Banking customer service, Gọi hàm, Kiểm soát an toàn, Xử lý tiếng Việt, Hệ thống chatbot ngân hàng

DOI:

https://doi.org/10.34238/tnu-jst.15914

Tóm tắt

Các hệ thống chatbot ngân hàng tại Việt Nam gặp nhiều thách thức lớn khi sử dụng các mô hình ngôn ngữ lớn khi cần đồng thời cung cấp thông tin chính xác, thực thi các tác vụ dịch vụ bảo đảm an toàn cũng như tuân thủ quy định. Những yêu cầu này trở nên phức tạp hơn trong bối cảnh các hệ thống này sử dụng ngôn ngữ tiếng Việt do một số vấn đề như thiếu dấu, phân tách từ không rõ và ngôn ngữ truy vấn phi chuẩn dẫn đến làm suy giảm hiệu quả truy xuất thông tin. Bài báo đề xuất một kiến trúc thống nhất, tích hợp RAG và cơ chế gọi hàm thông qua công cụ và cơ chế kiểm soát an toàn nhiều lớp trong cùng một quy trình hội thoại. Hệ thống mô hình hóa truy xuất tài liệu và thao tác dịch vụ như các công cụ có thể được mô hình ngôn ngữ lớn điều phối động. Mô-đun truy xuất sử dụng phương pháp lai, kết hợp cơ chế BM25 và biểu diễn nhúng ngữ nghĩa thông qua hợp nhất xếp hạng tương hỗ và áp dụng các bước tiền xử lý chuyên biệt cho tiếng Việt như chuẩn hóa, khôi phục dấu và ánh xạ thuật ngữ ngân hàng. Kết quả đánh giá trên bộ dữ liệu thử nghiệm cho thấy phương pháp truy xuất lai vượt trội hơn các phương pháp đơn lẻ. Thực nghiệm cũng chỉ ra rằng việc loại bỏ dấu tiếng Việt làm suy giảm đáng kể chất lượng truy xuất, trong khi khôi phục dấu dựa trên từ điển chỉ mang lại cải thiện hạn chế. Các kết quả này cho thấy việc kết hợp kiến trúc tích hợp thống nhất với xử lý đặc thù ngôn ngữ là yếu tố quan trọng để xây dựng chatbot ngân hàng tiếng Việt có tính thực tiễn cao.

Lượt tải

Chưa có dữ liệu tải xuống.

Tài liệu tham khảo

P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W. Yih, T. Rocktäschel, S. Riedel, and D. Kiela, “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 33, pp. 9459-9474, 2020.

V. Karpukhin, B. Oğuz, S. Min, P. Lewis, L. Wu, S. Edunov, D. Chen, and W. Yih, “Dense passage retrieval for open-domain question answering,” in Proc. 2020 Conf. Empirical Methods in Natural Language Processing (EMNLP), Online, 2020, pp. 6769-6781, doi: 10.18653/v1/2020.emnlp-main.550.

L. Gao, X. Ma, J. Lin, and J. Callan, “Precise zero-shot dense retrieval without relevance labels,” in Proc. 61st Annual Meeting of the Association for Computational Linguistics (ACL), Toronto, Canada, 2023, pp. 1762-1777, doi: 10.18653/v1/2023.acl-long.99.

G. V. Cormack, C. L. A. Clarke, and S. Büttcher, “Reciprocal rank fusion outperforms condorcet and individual rank learning methods,” in Proc. 32nd Int. ACM SIGIR Conf. Research and Development in Information Retrieval, Boston, MA, USA, 2009, pp. 758-759, doi: 10.1145/1571941.1572114.

R. Pradeep, R. Nogueira, and J. Lin, “The expandomono-duo design pattern for text ranking with pretrained sequence-to-sequence models,” arXiv:2101.05667, 2021, doi: 10.48550/arXiv.2101.05667.

N. F. Liu, K. Lin, J. Hewitt, A. Paranjape, M. Bevilacqua, F. Petroni, and P. Liang, “Lost in the middle: How language models use long contexts,” Transactions of the Association for Computational Linguistics, vol. 12, pp. 157-173, 2024, doi:10.1162/tacl_a_00638.

T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, L. Zettlemoyer, N. Cancedda, and T. Scialom, “Toolformer: Language models can teach themselves to use tools,” In Proc. 37th International Conference on Neural Information Processing Systems, Dec. 2023, pp. 68539-68551, doi: 10.5555/3666122.3669119.

S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, “ReAct: Synergizing reasoning and acting in language models,” in Proc. 11th International Conf. Learning Representations (ICLR), arXiv:2210.03629, 2023, doi: 10.48550/arXiv.2210.03629.

Y. Liu, G. Deng, Y. Li, K. Wang, Z. Wang, X. Wang, T. Zhang, Y. Liu, H. Wang, Y. Zheng, and Y. Liu, “Prompt injection attack against LLM-integrated applications,” arXiv preprint arXiv:2306.05499, 2023, doi: 10.48550/arXiv.2306.05499.

P. Manakul, A. Liusie, and M. J. F. Gales, “SelfCheckGPT: Zero-resource black-box hallucination detection for generative large language models,” in Proc. 2023 Conf. Empirical Methods in Natural Language Processing (EMNLP), Singapore, 2023, pp. 9004-9017, doi: 10.18653/v1/2023.emnlp-main.557.

OWASP Foundation, “OWASP Top 10 for Large Language Model Applications,” Version 1.1, 2023. [Online]. Available: https://owasp.org/www-project-top-10-for-large-language-model-applications/. [Accessed May 15, 2026].

T. Vu, D. Q. Nguyen, D. Q. Nguyen, M. Dras, and M. Johnson, “VnCoreNLP: A Vietnamese natural language processing toolkit,” in Proc. NAACL-HLT 2018: Demonstrations, New Orleans, LA, USA, 2018, pp. 56-60, doi: 10.18653/v1/N18-5012.

D. Q. Nguyen and A. T. Nguyen, “PhoBERT: Pre-trained language models for Vietnamese,” in Findings of the Association for Computational Linguistics: EMNLP 2020, 2020, pp. 1037-1042, doi: 10.18653/v1/2020.findings-emnlp.92.

S. Robertson and H. Zaragoza, “The probabilistic relevance framework: BM25 and beyond,” Foundations and Trends in Information Retrieval, vol. 3, no. 4, pp. 333-389, 2009, doi: 10.1561/1500000019.

J. Chen, S. Xiao, P. Zhang, K. Luo, D. Lian, and Z. Liu, “M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation,” in Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand, 2024, pp. 2318-2335, doi: 10.18653/v1/2024.findings-acl.137.

Y. A. Malkov and D. A. Yashunin, “Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs,” IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 42, no. 4, pp. 824-836, 2020, doi: 10.1109/TPAMI.2018.2889473.

W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica, “Efficient memory management for large language model serving with PagedAttention,” in Proc. 29th Symp. Operating Systems Principles (SOSP), Koblenz, Germany, 2023, pp. 611-626, doi: 10.1145/3600006.3613165.

Lượt tải xuống

Đã Xuất bản

2026-06-30

Số

Chuyên mục

Công nghệ thông tin và Truyền thông