How saniabansal007/studdy_buddy works
Study Buddy is a local Streamlit study app. Users upload PDF, PPTX, or TXT notes, then choose a study activity: summaries, quizzes, Q&A, Socratic tutoring, flashcards, concept graphs, or learning analytics. Uploaded text and activity history live in session state; Q&A and tutoring can retrieve relevant note chunks through a local Chroma index, while generation uses the Hugging Face model. The map follows documented capabilities and excerpted calls; unsampled utility internals are represented only where their use is shown.
Main entry points: app.py App and routing · utils.py Prompt and LLM · quiz.py Quiz workflow · chat.py Socratic tutor
Components 14
Notes and session
- App and routing
app.py - Uploaded notes
app.py
Study activities
- Notes summaries
summarizer.py - Quiz workflow
quiz.py - Q&A chat
chat.py - Socratic tutor
chat.py - Spaced flashcards
flashcards.py
Retrieval and generation
- Read and chunk files
utils.py - Prompt and LLM
utils.py - RAG retrieval
utils.py - Chroma index
utils.py
Learning insights
- Concept graph
analytics.py - Learning analytics
analytics.py
Other components
- Learner
Connections 21
- Learner → App and routing: uploads and navigates
README.md - App and routing → Read and chunk files: validates and reads
app.py - Read and chunk files → Uploaded notes: returns chunked text
app.py - App and routing → Notes summaries: routes to
app.py - App and routing → Quiz workflow: routes to
app.py - App and routing → Q&A chat: routes to
app.py - App and routing → Socratic tutor: routes to
app.py - App and routing → Spaced flashcards: routes to
app.py - App and routing → Concept graph: routes to
app.py - App and routing → Learning analytics: routes to
app.py - Notes summaries → Prompt and LLM: runs summary prompt
summarizer.py - Quiz workflow → Prompt and LLM: generates questions
quiz.py - Spaced flashcards → Prompt and LLM: generates cards
flashcards.py - Q&A chat → RAG retrieval: asks RAG answer
chat.py - Socratic tutor → RAG retrieval: retrieves context
chat.py - Socratic tutor → Prompt and LLM: invokes tutor
chat.py - RAG retrieval → Chroma index: indexes and searches
utils.py - RAG retrieval → Prompt and LLM: generates grounded answer
utils.py - Concept graph → Prompt and LLM: extracts concepts
analytics.py - Quiz workflow → Learning analytics: records quiz history
quiz.py - Spaced flashcards → Learning analytics: records review history
flashcards.py