How 4leena/note-it works
NOTE-IT is a local study app: a student submits rough psychology notes, gets structured study material and a diagram, then studies through quizzes or a notes-grounded chat. The Streamlit application also presents saved sessions and study history. The app is concentrated in app.py, while Gemma request handling and prompt/schema definitions live in the backend. Several app responsibilities are represented separately but share that source path. Persistence and some UI-to-backend details are documented in the README; unsampled implementation specifics are not inferred.
Main entry points: app.py Streamlit interface · gemma.py Notes rewriting · templates.py Prompts and schema
Components 14
Study app
- Streamlit interface
app.py - Note submission
app.py
Study materials
- Structured notes
app.py - Concept diagram
app.py - Flashcard quiz
app.py - Study Buddy
app.py
AI backend
- Notes rewriting
src/backend/gemma.py - Diagram generation
src/backend/gemma.py - Mode-based chat
src/backend/gemma.py - Prompts and schema
src/backend/templates.py
Study history
- Calendar and streak
app.py - Saved sessions
app.py
Other components
- Student
- Ollama / Gemma
Connections 19
- Student → Streamlit interface: uses
README.md - Streamlit interface → Note submission: submits notes
README.md - Note submission → Notes rewriting: requests rewrite
README.md - Notes rewriting → Prompts and schema: uses prompts
src/backend/gemma.py - Notes rewriting → Ollama / Gemma: sends prompts
src/backend/gemma.py - Notes rewriting → Structured notes: returns sections
README.md - Streamlit interface → Diagram generation: requests diagram
app.py - Diagram generation → Prompts and schema: uses prompts
src/backend/gemma.py - Diagram generation → Ollama / Gemma: sends prompts
src/backend/gemma.py - Diagram generation → Concept diagram: returns Mermaid
README.md - Streamlit interface → Flashcard quiz: presents quiz
app.py - Structured notes → Flashcard quiz: provides questions
app.py - Student → Study Buddy: asks questions
README.md - Study Buddy → Mode-based chat: requests reply
README.md - Mode-based chat → Prompts and schema: uses modes
src/backend/gemma.py - Mode-based chat → Ollama / Gemma: sends prompts
src/backend/gemma.py - Streamlit interface → Saved sessions: saves sessions
README.md - Calendar and streak → Saved sessions: reads sessions
README.md - Student → Calendar and streak: views progress
README.md