How captain-sabahat/dynamic-ai-quiz-generator works
This is a Streamlit AI quiz generator. A student selects a class, subject, language, and question count; the app uses performance data to identify weak subjects, generates questions, collects answers, and presents personalized feedback while updating performance. The LangGraph workflow coordinates generation, evaluation, and optional RAG updates. The README also identifies LangGraph and RAG as product capabilities. Some app sections are omitted from the excerpts, so the RAG initialization link is shown as unverified.
Main entry points: rag_engine.py RAG retrieval and indexing · quiz_agent.py Answer evaluation · app.py Streamlit quiz app · quiz_core.py Quiz and prompt services
Components 12
Quiz interface
- Streamlit quiz app
app.py
Quiz workflow
- LangGraph workflow
quiz_agent.py - Question generation
quiz_agent.py - Answer evaluation
quiz_agent.py - RAG feedback update
quiz_agent.py
Performance
- Student performance
quiz_core.py
AI and retrieval
- Quiz and prompt services
quiz_core.py - FAISS vector store
rag_engine.py - RAG retrieval and indexing
rag_engine.py - Model and RAG settings
config.py
Other components
- Student
- Google Gemini
Connections 19
- Student → Streamlit quiz app: uses
README.md - Streamlit quiz app → LangGraph workflow: invokes workflow
app.py - Streamlit quiz app → Student performance: loads performance
app.py - Streamlit quiz app → RAG retrieval and indexing: initializes index
- LangGraph workflow → Question generation: dispatches
quiz_agent.py - Question generation → RAG retrieval and indexing: retrieves context
quiz_agent.py - Question generation → Quiz and prompt services: generates and parses
quiz_agent.py - LangGraph workflow → Answer evaluation: dispatches
quiz_agent.py - Answer evaluation → Quiz and prompt services: requests feedback
quiz_agent.py - Answer evaluation → Student performance: updates scores
quiz_agent.py - LangGraph workflow → RAG feedback update: dispatches
quiz_agent.py - RAG feedback update → RAG retrieval and indexing: adds feedback
quiz_agent.py - Question generation → Answer evaluation: routes to
quiz_agent.py - Answer evaluation → RAG feedback update: routes to
quiz_agent.py - Quiz and prompt services → Google Gemini: calls model
quiz_core.py - RAG retrieval and indexing → FAISS vector store: searches and updates
rag_engine.py - RAG retrieval and indexing → Google Gemini: embeds text
rag_engine.py - Quiz and prompt services → Model and RAG settings: reads model settings
quiz_core.py - RAG retrieval and indexing → Model and RAG settings: reads chunk settings
rag_engine.py