How recklore/entropy works
Entropy-Learning is a personalized learning application: student answers become a mastery estimate, a policy selects a skill, and retrieval supplies study content before another assessment. The graph also preserves the documented model-training path and the RAG knowledge-base setup. Source excerpts show the DKT/DQN internals and retrieval implementation; some app wiring and RAG storage details are represented only where the README or source index documents them.
Main entry points: app.py Learning app · DQN_agent/train.py DQN training · lightrag_setup.py Knowledge-base setup · DKTplus/train.py DKT training
Components 24
Learning experience
- Learning app
app.py - Assessment generation
src/RAG/retrieve.py - Interaction history
app.py
Knowledge tracing
- Data preprocessing
src/data_preprocessing.ipynb - Processed interactions
data/ASSISTments/ASSISTments_processed_data.json - Sequence dataset
src/DKTplus/dataset.py - DKT training
src/DKTplus/train.py - Knowledge tracer
src/DKTplus/model.py - Trained DKT model
models/DKT_model.pt
Skill policy
- DQN training
src/DQN_agent/train.py - Student simulator
src/DQN_agent/student_env.py - Exploration policy
src/DQN_agent/policy.py - Replay memory
src/DQN_agent/replay_memory.py - Q-network
src/DQN_agent/dqn.py - Trained DQN model
models/DQN_agent.pt
Learning content
- Knowledge-base setup
src/RAG/lightrag_setup.py - SL learning content
data/SL/sl.md - Content retrieval
src/RAG/retrieve.py - RAG graph and vectors
Other components
- Student
- Neo4j storage
- FAISS vector storage
- Groq LLM
- Gemini embeddings
Connections 29
- Student → Learning app: uses
README.md - Learning app → Assessment generation: requests questions
app.py - Assessment generation → Groq LLM: generates questions
src/RAG/retrieve.py - Learning app → Interaction history: records answers
app.py - Interaction history → Knowledge tracer: provides sequence
README.md - Learning app → Knowledge tracer: estimates mastery
app.py - Knowledge tracer → Learning app: returns mastery
app.py - Learning app → Q-network: selects skill
README.md - Learning app → Content retrieval: requests content
app.py - Content retrieval → RAG graph and vectors: queries knowledge
src/RAG/retrieve.py - RAG graph and vectors → Learning app: returns content
README.md - Student → Learning app: answers assessment
README.md - Data preprocessing → Processed interactions: produces sequences
README.md - Processed interactions → DKT training: trains on data
README.md - DKT training → Sequence dataset: uses dataset
src/DKTplus/train.py - DKT training → Knowledge tracer: trains model
src/DKTplus/train.py - DKT training → Trained DKT model: saves model
README.md - Trained DKT model → DQN training: simulates with
README.md - DQN training → Student simulator: uses environment
src/DQN_agent/train.py - DQN training → Exploration policy: selects actions
src/DQN_agent/train.py - DQN training → Replay memory: stores transitions
src/DQN_agent/train.py - DQN training → Q-network: trains network
src/DQN_agent/train.py - DQN training → Trained DQN model: saves policy
README.md - SL learning content → Knowledge-base setup: ingests content
README.md - Knowledge-base setup → RAG graph and vectors: builds index
src/RAG/lightrag_setup.py - Knowledge-base setup → Neo4j storage: configures graph
src/RAG/lightrag_setup.py - Knowledge-base setup → FAISS vector storage: configures vectors
src/RAG/lightrag_setup.py - Knowledge-base setup → Groq LLM: configures generation
src/RAG/lightrag_setup.py - Knowledge-base setup → Gemini embeddings: configures embeddings
src/RAG/lightrag_setup.py