Leveraging Lecture Content for Improved Feedback: Explorations with GPT-4 and Retrieval Augmented Generation
Sven Jacobs, Steffen Jaschke

TL;DR
This paper explores using Retrieval Augmented Generation with GPT-4 and lecture transcripts to enhance programming feedback, aiming to reduce hallucinations and connect feedback to lecture content for better student guidance.
Contribution
It introduces a novel approach combining RAG with GPT-4 for context-aware feedback in programming education, integrating lecture transcripts with timestamps as external knowledge.
Findings
RAG improves feedback quality according to student evaluations
Students prefer RAG-enhanced feedback in certain situations
RAG-based feedback is slower but more contextually relevant
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIntelligent Tutoring Systems and Adaptive Learning
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Linear Layer · Multi-Head Attention · Dense Connections · Attention Dropout · Position-Wise Feed-Forward Layer · Weight Decay · Dropout · Label Smoothing · Residual Connection
