PHƯƠNG PHÁP XÂY DỰNG ỨNG DỤNG HỖ TRỢ HỌC TẬP DỰA TRÊN CHATGPT API

Các tác giả

  • Hoàng Ngọc Long Trường Đại học Quốc tế Hồng Bàng
  • Nguyễn Đức Thịnh Trường Đại học Quốc tế Hồng Bàng
  • Lê Danh Thưởng Trường Đại học Quốc tế Hồng Bàng
  • Võ Hải Đăng Trường Đại học Quốc tế Hồng Bàng
  • Tô Hoài Việt Trường Đại học Quốc tế Hồng Bàng
DOI: https://doi.org/10.59294/HIUJS.KHQG.2024.003

Từ khóa:

hệ thống hỗ trợ học tập, ChatGPT, ChatGPT API, prompt engineering

Tóm tắt

Trong thời gian gần đây, ChatGPT, một mô hình ngôn ngữ lớn (large language model) được phát triển bởi OpenAI, đã thu hút sự quan tâm trong nhiều lĩnh vực khác nhau, và giáo dục không phải là ngoại lệ. Việc sử dụng ChatGPT trong quá trình học tập đã trở nên phổ biến và công cụ này có tiềm năng nhất định trong quá trình học tập của sinh viên ở trường đại học. Tuy nhiên, việc tìm kiếm và truy vấn kiến thức của các môn học cơ sở ngành hay chuyên ngành ở bậc đại học dựa trên ChatGPT đôi khi sẽ cho kết quả không như mong đợi. Để khai thác tối đa tiềm năng của ChatGPT, điều quan trọng là cần hiểu rõ cách tinh chỉnh các lời nhắc đầu vào (prompt engineering), các kỹ thuật tinh chỉnh, và hoạt động của API (Application Programming Interface)  được cung cấp bởi OpenAI để tạo ra phản hồi mong muốn từ mô hình AI hiện đại này. Nghiên cứu này sử dụng các kỹ thuật như prompting, pre-prompt, function call và fine-tuning để giải quyết một số hạn chế thường gặp khi sử dụng trực tiếp ChatGPT. Tiến đến, bài báo sẽ trình bày thiết kế và triển khai ứng dụng web có tích hợp ChatGPT API hỗ trợ học tập kiến thức một môn học cơ sở ngành Công nghệ thông tin.

Abstract

In recent times, ChatGPT, a large language model developed by OpenAI, has attracted attention in various fields, and education is no exception. The use of ChatGPT in the learning process has become common, and this tool has certain potential in the learning process of university students. However, searching for and querying knowledge of fundamental or specialized subjects at the university level using ChatGPT may sometimes yield unexpected results. To maximize the potential of ChatGPT, it is important to understand how to fine-tune input prompts and how to use the API provided by OpenAI to elicit desired responses from this modern AI model. This research employs techniques such as prompting, pre-prompt, function call, and fine-tuning to address some common limitations encountered when directly using ChatGPT. Moving forward, the paper will present the design and implementation of a web application integrated with the ChatGPT API to support knowledge learning of a fundamental course in the field of Information Technology.

Tài liệu tham khảo

[1] Memarian, B., & Doleck, T. (2023), “ChatGPT in education: Methods, potentials, and limitations”, Computers in Human Behavior: Artificial Humans, vol. 1, no. 2, p. 100022, Oct. 2023. DOI: https://doi.org/10.1016/j.chbah.2023.100022

DOI: https://doi.org/10.1016/j.chbah.2023.100022

[2] Md. M. Rahman and Y. Watanobe, “ChatGPT for Education and Research: Opportunities, Threats, and Strategies”, Applied Sciences, vol. 13, no. 9, p. 5783, May 2023, DOI: https://doi.org/10.3390/app13095783.

DOI: https://doi.org/10.3390/app13095783

[3] Huynh Cong Bang, Cao Mỹ Lệ, and L. Cao, “Sử dụng Chatgpt trong Dạy và Học Toán ở Trường Trung học Phổ thông”, Jul. 2023, DOI: https://doi.org/10.35542/osf.io/ay9fg.

[4] C. H. Thu, H. C. Bang and L. Cao, “Integrating ChatGPT into Online Education System in Vietnam: Opportunities and Challenges”, 03-Jul-2023. [Trực tuyến]. Địa chỉ: https://osf.io/preprints/edarxiv/hqyut. [Truy cập ngày 02/09/2023].

[5] Altexsoft, “Prompt Engineering: The Guide to Mastering the Art of Talking to AI”. [Trực tuyến]. Địa chỉ: https://www.altexsoft.com/blog/prompt-engineering/ [Truy cập ngày 12/09/2023]

[6] Isa Fulford, “ChatGPT Prompt Engineering for Developers”. [Trực tuyến]. Địa chỉ: https://learn.deeplearning.ai/ [Truy cập ngày 20/09/2023].

[7] Sunil Ramlochan, “Role-Playing in Large Language Models like ChatGPT”. [Trực tuyến]. Địa chỉ: https://promptengineering.org/role-playing-in-large-language-models-like-chatgpt/ [Truy cập ngày 12/09/2023].

[8] Veronica Schmilinsky, “Your Brand, Your Voice: How to Use Seed Prompts and Pre-Prompts for Authentic AI Content”. [Trực tuyến]. Địa chỉ: https://marketingmastery.ai/your-brand-your-voice-how-to-use-seed-prompts-and-pre-prompts-for-authentic-ai-content/ [Truy cập ngày 20/09/2023].

[9] OpenAI, “Function calling”, [Trực tuyến]. Địa chỉ: https://platform.openai.com/ [Truy cập ngày 02/12/2023].

Tải xuống

Số lượt xem: 110
Tải xuống: 66

Đã xuất bản

24.05.2024

Cách trích dẫn

[1]
H. N. L. Hoàng Ngọc Long, N. Đức T. Nguyễn Đức Thịnh, L. D. T. Lê Danh Thưởng, V. H. Đăng Võ Hải Đăng, và T. H. V. Tô Hoài Việt, “PHƯƠNG PHÁP XÂY DỰNG ỨNG DỤNG HỖ TRỢ HỌC TẬP DỰA TRÊN CHATGPT API”, HIUJS, số p.h ĐẶC BIỆT, tr 28–39, tháng 5 2024.

Số

Chuyên mục

KHOA HỌC KỸ THUẬT - CÔNG NGHỆ