Home > Published Issues > 2025 > Volume 16, No. 10, 2025 >
JAIT 2025 Vol.16(10): 1430-1441
doi: 10.12720/jait.16.10.1430-1441

Enhancing Automated Exam Creation with Retrieval-Augmented Generation for Scalable Educational Assessment

Charaf Hamidi 1, Mohamed Badiy 2, Salma Gaou 1, Fatima Amounas 2, Mourade Azrour 2,*, Hicham Tribak 3, Abdullah M. Alnajim 4, and Abdulatif Alabdulatif 5
1. Laboratory of Engineering Sciences, Faculty of Science Agadir, University Ibn Zohr, Agadir, Morocco
2. MSIA Team, IMIA Laboratory, Faculty of Sciences and Techniques, Moulay Ismail University of Meknes, Errachidia, Morocco
3. Physics, Energy, and Information Processing, Multidisciplinary Faculty, University Ibn Zohr, Ouarzazate, Morocco
4. Department of Information Technology, College of Computer, Qassim University, Buraydah, Saudi Arabia
5. Department of Computer Science, College of Computer, Qassim University, Buraydah, Saudi Arabia
Email: charaf.hamidi.24@edu.uiz.ac.ma (C.H.); badiy.mohamed2@gmail.com (M.B.); S.gaou@uiz.ac.ma (S.G.); f.amounas@umi.ac.ma (F.A.); mo.azrour@umi.ac.ma (M.A.); h.tribak@uiz.ac.ma (H.T.); najim@qu.edu.sa (A.M.A.); ab.alabdulatif@qu.edu.sa (A.A.)
*Corresponding author

Manuscript received February 24, 2025; revised April 30, 2025; accepted May 20, 2025; published October 14, 2025.

Abstract—The integration of Artificial Intelligence (AI) into educational assessment has led to significant advancements in automated exam generation. This study proposes a novel Retrieval-Augmented Generation (RAG)-based system designed to automate the creation of exam questions while ensuring contextual accuracy and adaptability to pedagogical needs. By leveraging state-of-the-art Natural Language Processing (NLP) techniques, including LangChain, Facebook AI Similarity Search (FAISS), and Large Language Model Meta AI (LLaMA) 3.2, the system retrieves domain-specific knowledge and generates multiple-choice and open-ended questions dynamically. The framework incorporates an interactive user interface built with Next.js, enabling customizable quiz settings, real-time answer verification, and performance tracking. A structured knowledge base is developed through automated web scraping and PDF content extraction using LLaMA Parse, ensuring the generation of precise and curriculum-aligned questions. The proposed system enhances educational assessment by reducing manual effort, ensuring scalability, and providing immediate feedback to learners. Experimental evaluations demonstrate its effectiveness in producing pedagogically sound Structured Query Language (SQL) assessments in French, highlighting the potential for broader applications in automated exam generation. This research contributes to the growing field of AI-driven educational tools, paving the way for future enhancements in adaptive learning and intelligent assessment methodologies.
 
Keywords—retrieval-augmented generation, natural language processing, Artificial Intelligence (AI) in education, automated exam generation, LangChain, Facebook AI Similarity Search (FAISS), Large Language Model Meta AI (LLaMA) 3, educational assessment

Cite: Charaf Hamidi, Mohamed Badiy, Salma Gaou, Fatima Amounas, Mourade Azrour, Hicham Tribak, Abdullah M. Alnajim, and Abdulatif Alabdulatif, "Enhancing Automated Exam Creation with Retrieval-Augmented Generation for Scalable Educational Assessment," Journal of Advances in Information Technology, Vol. 16, No. 10, pp. 1430-1441, 2025. doi: 10.12720/jait.16.10.1430-1441

Copyright © 2025 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions