RetLLM-E: Retrieval-Prompt Strategy for Question-Answering on Student Discussion Forums

Abstract

This paper focuses on using Large Language Models to support teaching assistants in answering questions on large student forums such as Piazza and EdSTEM. Since student questions on these forums are often closely tied to specific aspects of the institution, instructor, and course delivery, general-purpose LLMs do not directly do well on this task. We introduce RetLLM-E, a method that combines text-retrieval and prompting approaches to enable LLMs to provide precise and high-quality answers to student questions. When presented with a student question, our system initiates a two-step process. First, it retrieves relevant context from (i) a dataset of student questions addressed by course instructors (Q&A Retrieval) and (ii) relevant segments of course materials (Document Retrieval). RetLLM-E then prompts LLM using the retrieved text and an engineered prompt structure to yield an answer optimized for the student question. We present a set of quantitative and human evaluation experiments, comparing our method to ground truth answers to questions in a test set of actual student questions. Our results demonstrate that our approach provides higher-quality responses to course-related questions than an LLM operating without context or relying solely on retrieval-based context. RetLLM-E can easily be adopted in different courses, providing instructors and students with context-aware automatic responses.

Cite

Text

Mitra et al. "RetLLM-E: Retrieval-Prompt Strategy for Question-Answering on Student Discussion Forums." AAAI Conference on Artificial Intelligence, 2024. doi:10.1609/AAAI.V38I21.30368

Markdown

[Mitra et al. "RetLLM-E: Retrieval-Prompt Strategy for Question-Answering on Student Discussion Forums." AAAI Conference on Artificial Intelligence, 2024.](https://mlanthology.org/aaai/2024/mitra2024aaai-retllm/) doi:10.1609/AAAI.V38I21.30368

BibTeX

@inproceedings{mitra2024aaai-retllm,
  title     = {{RetLLM-E: Retrieval-Prompt Strategy for Question-Answering on Student Discussion Forums}},
  author    = {Mitra, Chancharik and Miroyan, Mihran and Jain, Rishi and Kumud, Vedant and Ranade, Gireeja and Norouzi, Narges},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2024},
  pages     = {23215-23223},
  doi       = {10.1609/AAAI.V38I21.30368},
  url       = {https://mlanthology.org/aaai/2024/mitra2024aaai-retllm/}
}