AI-powered checkpoint learning platform with adaptive assessment, Feynman-style remediation, and Streamlit UI.
- Python 3.10+
- Ollama installed and running
Pull a model:
ollama pull llama3.1# Windows (PowerShell)
.\.venv\Scripts\activate
pip install -r requirements.txt# Copy example env
copy .env.example .envUpdate .env as needed (model, LangSmith keys, etc.).
For Streamlit secrets, use:
copy .streamlit\secrets.toml.example .streamlit\secrets.tomlFor cloud-friendly model routing, set:
LLM_PROVIDER=auto
HF_TOKEN=your_hf_token
HF_MODEL=HuggingFaceH4/zephyr-7b-betastreamlit run app.pyTo auto-start Ollama first (Windows):
powershell -ExecutionPolicy Bypass -File .\scripts\start_streamlit_with_ollama.ps1App URL (default): http://localhost:8501
- Web UI:
streamlit run app.py - CLI flow:
python -m src.multi_checkpoint
- Checkpoint-based progression through a learning path
- Optional user file upload (
.pdf,.docx,.md,.txt) - Dynamic material generation + context processing
- Assessment per checkpoint with enforced question mix:
- 5 MCQ
- 3 short-answer
- 2 long-answer
- 70% threshold to pass a checkpoint
- Feynman teaching fallback when score is below threshold
Tracing is optional. The UI has a LangSmith Status panel showing current runtime status.
Set these in .env:
LANGSMITH_TRACING_ENABLED=true
LANGCHAIN_API_KEY=your_key
LANGCHAIN_PROJECT=Learning-Agent-System
LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
# EU accounts:
# LANGCHAIN_ENDPOINT=https://eu.api.smith.langchain.comAfter updating env values, restart Streamlit.
ollama serve
ollama listIf deploying on Streamlit Community Cloud, local Ollama cannot run inside that environment. Use one of these:
LLM_PROVIDER=auto+HF_TOKEN(recommended): auto-falls back to Hugging Face- A reachable remote Ollama URL in
OLLAMA_BASE_URL
- Confirm Ollama is running on
http://localhost:11434 - Verify
OLLAMA_MODELexists locally (ollama list)
Optional: set HF_TOKEN in .env.
app.py- Streamlit applicationsrc/- core workflow, LLM, context, and evaluation modules.env.example- sample environment configurationcustom_topics.json- custom learning pathsDocumentation.md- detailed technical docs
MIT - see LICENSE