This paper presents an approach to authoring a textbook titled Interactive OpenMP Programming with the assistance of Large Language Models (LLMs). The writing process utilized state-of-the-art LLMs, including Gemini Pro 1.5, Claude 3, and ChatGPT-4, to generate the initial structure and outline of the book, as well as the initial content for specific chapters. This content included detailed descriptions of individual OpenMP constructs and practical programming examples. The outline and content have then undergone extensive manual revisions to meet our book goals. In this paper, we report our findings about the capabilities and limitations of these LLMs. We address critical questions concerning the necessity of textbook resources and the effectiveness of LLMs in creating fundamental and practical programming content. Our findings suggest that while LLMs offer significant advantages in generating textbook content, they require careful integration with traditional educational methodologies to ensure depth, accuracy, and pedagogical effectiveness. The Interactive OpenMP Programming book is developed with the framework of Jupyter Book, enabling the execution of code within the book from the web browser, providing instant feedback and a dynamic learning experience that stands in contrast to traditional educational resources. The book represents a significant step towards modernizing programming education, offering insights into practical strategies for generating the textbook through advanced AI tools.
翻译:本文提出了一种在大型语言模型辅助下编写《交互式OpenMP编程》教材的方法。编写过程采用最先进的大型语言模型(包括Gemini Pro 1.5、Claude 3和ChatGPT-4)生成书籍的初步结构与大纲,以及特定章节的初始内容。这些内容包括对OpenMP各编程结构的详细说明和实际编程示例。随后,大纲与内容经过大量人工修订以满足教材编写目标。本文报告了我们对这些大型语言模型能力与局限性的研究发现,并探讨了关于教材资源的必要性以及大型语言模型在创建基础性与实践性编程内容方面的有效性等关键问题。研究表明,虽然大型语言模型在生成教材内容方面具有显著优势,但仍需与传统教学方法进行审慎整合,以确保内容的深度、准确性与教学有效性。《交互式OpenMP编程》教材基于Jupyter Book框架开发,支持在网页浏览器中直接执行书内代码,提供即时反馈和动态学习体验,这与传统教育资源形成鲜明对比。该教材代表了编程教育现代化的重要进展,为通过先进人工智能工具生成教材的实践策略提供了深刻见解。