Skip to main content

Enhancing Python Learning Through Retrieval-Augmented Generation: A Theoretical and Applied Innovation in Generative AI Education

  • Conference paper
  • First Online:
Innovative Technologies and Learning (ICITL 2024)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14786))

Included in the following conference series:

  • 745 Accesses

Abstract

Our study presents an innovative learning tool that leverages the synergy between Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs) to redefine Python programming skill acquisition. This research explores how integrating RAG with LLMs like ChatGPT can overcome traditional learning barriers by providing precise, contextually relevant responses, streamlining learning, and boosting learner confidence. Implementing RAG-enhanced LLMs resulted in decreased cognitive load and enhanced grasp and application of complex programming concepts. Our findings suggest that this RAG-based tool improves information reliability and enriches learning experiences, fostering more profound understanding and robust confidence in tackling programming challenges. This study contributes to the discourse on AI-assisted learning by showcasing RAG’s potential to enhance programming learning efficacy and satisfy learners ethically and at scale.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Darsih, E.: Learner-centered teaching: what makes it effective. Indonesian EFL J. 4(1), 33–42 (2018)

    Article  Google Scholar 

  2. Gao, Y., et al.: Retrieval-augmented generation for large language models: a survey. arXiv preprint arXiv:2312.10997 (2023)

  3. Hadi, M.U., et al.: A survey on large language models: applications, challenges, limitations, and practical usage. Authorea Preprints (2023)

    Google Scholar 

  4. Kasneci, E., et al.: ChatGPT for good? On opportunities and challenges of large language models for education. Learn. Individ. Differ. 103, 102274 (2023)

    Article  Google Scholar 

  5. Nelli, F.: Python data analytics: data analysis and science using PANDAs, Matplotlib, and the Python Programming Language. Apress (2015)

    Google Scholar 

  6. Pataranutaporn, P., Danry, V., Leong, J., et al.: AI-generated characters for supporting personalized learning and well-being. Nat. Mach. Intell. 3, 1013–1022 (2021)

    Article  Google Scholar 

  7. Tsai, Y.: Empowering learner-centered instruction: integrating ChatGPT Python API and tinker learning for enhanced creativity and problem-solving skills (2023)

    Google Scholar 

  8. Zheng, Y.: ChatGPT for teaching and learning: an experience from data science education. In: SIGITE 2023: Proceedings of the 24th Annual Conference on Information Technology Education, pp. 66–72 (2023)

    Google Scholar 

  9. Amatriain, X.: Prompt design and engineering: introduction and advanced methods. arXiv preprint arXiv:2401.14423 (2024)

  10. Gupta, A., et al.: RAG vs fine-tuning: pipelines, tradeoffs, and a case study on agriculture. arXiv preprint arXiv:2401.08406 (2024)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yun-Cheng Tsai .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ko, HT., Liu, YK., Tsai, YC., Suen, S. (2024). Enhancing Python Learning Through Retrieval-Augmented Generation: A Theoretical and Applied Innovation in Generative AI Education. In: Cheng, YP., Pedaste, M., Bardone, E., Huang, YM. (eds) Innovative Technologies and Learning. ICITL 2024. Lecture Notes in Computer Science, vol 14786. Springer, Cham. https://doi.org/10.1007/978-3-031-65884-6_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-65884-6_17

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-65883-9

  • Online ISBN: 978-3-031-65884-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics