How gahyun0121/jeongcheogi-agent works
This is a Streamlit and terminal-based study agent for the Korean Information Processing Engineer practical exam. Its main workflow selects weak topics from Notion wrong-answer records, generates questions grounded in concept notes, reviews them (executing code questions), collects and grades answers, and saves wrong answers for future sessions. LangGraph owns the branching and retry loop; the main internal layer is the quiz-node implementation. The README documents concept browsing and exam information as additional UI capabilities. Some web source is excerpted only partially, so its finer internal wiring is not represented.
Main entry points: graph.py Quiz graph · web.py Study web app · rag.py Concept retrieval · nodes.py Question generation
Components 19
User interfaces
- Terminal runner
app/main.py - Study web app
app/web.py - Exam information
app/exam_info.py
Quiz workflow
- Quiz graph
app/graph.py - Weakness analysis
app/nodes.py - Question generation
app/nodes.py - Question review
app/nodes.py - Answer prompt
app/nodes.py - Answer grading
app/nodes.py - Meaning confirmation
app/nodes.py - Wrong-answer save
app/nodes.py
Question knowledge
- Concept notes
data/concepts - Concept retrieval
app/rag.py - Chroma index
app/rag.py - Code runner
app/tools.py
External services
- Notion MCP adapter
app/notion.py - Notion wrong-answer store
- OpenAI models
Other components
- Learner
Connections 24
- Learner → Terminal runner: answers via
app/main.py - Learner → Study web app: uses
README.md - Terminal runner → Quiz graph: builds and invokes
app/main.py - Study web app → Quiz graph: builds and resumes
README.md - Study web app → Exam information: displays
app/web.py - Study web app → Concept retrieval: browses concepts
app/web.py - Quiz graph → Weakness analysis: dispatches
app/graph.py - Quiz graph → Question generation: dispatches
app/graph.py - Quiz graph → Question review: dispatches
app/graph.py - Quiz graph → Answer prompt: dispatches
app/graph.py - Quiz graph → Answer grading: dispatches
app/graph.py - Quiz graph → Meaning confirmation: dispatches
app/graph.py - Quiz graph → Wrong-answer save: dispatches
app/graph.py - Weakness analysis → Notion MCP adapter: reads wrong records
app/nodes.py - Question generation → Concept retrieval: retrieves concepts
app/nodes.py - Question generation → OpenAI models: generates questions
app/nodes.py - Question review → OpenAI models: reviews theory
app/nodes.py - Question review → Code runner: executes code
app/nodes.py - Answer prompt → Learner: requests answer
README.md - Meaning confirmation → Learner: asks judgment
README.md - Wrong-answer save → Notion MCP adapter: saves wrong answer
app/nodes.py - Concept retrieval → Concept notes: loads notes
app/rag.py - Concept retrieval → Chroma index: builds and searches
app/rag.py - Notion MCP adapter → Notion wrong-answer store: queries and writes
app/notion.py