Leveraging Lecture Content for Improved Feedback: Explorations with GPT-4 and Retrieval Augmented Generation
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
This paper presents the use of Retrieval Augmented Generation (RAG) to improve the feedback generated by Large Language Models for programming tasks. For this purpose, corresponding lecture recordings were transcribed and made available to the Large Language Model GPT-4 as external knowledge source together with timestamps as metainformation by using RAG. The purpose of this is to prevent hallucinations and to enforce the use of the technical terms and phrases from the lecture. In an exercise platform developed to solve programming problems for an introductory programming lecture, students can request feedback on their solutions generated by GPT-4. For this task GPT-4 receives the students' code solution, the compiler output, the result of unit tests and the relevant passages from the lecture notes available through the use of RAG as additional context. The feedback generated by GPT-4 should guide students to solve problems independently and link to the lecture content, using the time stamps of the transcript as meta-information. In this way, the corresponding lecture videos can be viewed immediately at the corresponding positions. For the evaluation, students worked with the tool in a workshop and decided for each feedback whether it should be extended by RAG or not. First results based on a questionnaire and the collected usage data show that the use of RAG can improve feedback generation and is preferred by students in some situations. Due to the slower speed of feedback generation, the benefits are situation dependent.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 16 of its 24 references that are in the map. First posted on arXiv 5 May 2024.
Builds on
16 of 24 references.
Closest ancestors · 1
Same direction, newest first
Other references · 15
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 4,057
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 329
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 84
- 2023Exploring the Responses of Large Language Models to Beginner Programmers' Help Requestscited by 46
- 2023Automating Human Tutor-Style Programming Feedback: Leveraging GPT-4 Tutor Model for Hint Generation and GPT-3.5 Student Model for Hint Validationcited by 29
- 2023Exploring the Potential of Large Language Models to Generate Formative Programming Feedbackcited by 28
3 more
- 2022Learning to Retrieve Videos by Asking Questionscited by 18
- 2024Supporting Student Decisions on Learning Recommendations: An LLM-Based Chatbot with Knowledge Graph Contextualization for Conversational Explainability and Mentoringcited by 11
- 2024Evaluating the Application of Large Language Models to Generate Feedback in Programming Educationcited by 10
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 3.
6 papers.
- 2024RAMO: Retrieval-Augmented Generation for Enhancing MOOCs Recommendationscited by 6
- 2024Unimib Assistant: designing a student-friendly RAG-based chatbot for all their needscited by 4
- 2025GenAI Voice Mode in Programming Educationcited by 0
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug Referencescited by 0
- 2026Enhancing LLMs through human feedback: a journey towards self-improvementcited by 0
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoningcited by 0
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning1 Oct 2026
- 2026Enhancing LLMs through human feedback: a journey towards self-improvement13 Jul 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2025GenAI Voice Mode in Programming Education12 Sep 2025
- 2024Unimib Assistant: designing a student-friendly RAG-based chatbot for all their needs29 Nov 2024
- 2024RAMO: Retrieval-Augmented Generation for Enhancing MOOCs Recommendations6 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?
- 2024Evaluating the Effectiveness and Efficiency of Demonstration Retrievers in RAG for Coding Tasks
- 2026An LLM -Powered Assessment Retrieval-Augmented Generation (RAG) For Higher Education
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systems
- 2024Faculty Perspectives on the Potential of RAG in Computer Science Higher Education
- 2024Retrieval-Augmented Test Generation: How Far Are We?
- 2025Retrieval-Augmented Code Review Comment Generation
- 2025OmniBench-RAG: A Multi-Domain Evaluation Platform for Retrieval-Augmented Generation Tools