BrainBrew is a Streamlit application that uses AI (Large Language Models) to help users learn. It takes user-provided topics and an API key to generate detailed notes, question/answer pairs, and interactive multiple-choice quizzes. The app manages user data and progress using session state across different features.
flowchart TD
A0["Streamlit Application Structure
"]
A1["Session State Management
"]
A2["LLM Communication Layer
"]
A3["Prompt Engineering
"]
A4["Structured Output Handling
"]
A5["Content Generation Pipelines (LangChain Chains)
"]
A6["Interactive Quiz Logic
"]
A7["User Configuration & Input
"]
A0 -- "Manages State" --> A1
A0 -- "Provides UI for Input" --> A7
A7 -- "Stores Configuration" --> A1
A7 -- "Supplies Topics" --> A5
A7 -- "Supplies API Key" --> A2
A5 -- "Interacts with LLM" --> A2
A5 -- "Applies Prompting" --> A3
A5 -- "Enforces Structure" --> A4
A5 -- "Saves Generated Content" --> A1
A5 -- "Generates Quiz Data for" --> A6
A6 -- "Updates Progress State" --> A1
- Streamlit Application Structure
- User Configuration & Input
- Session State Management
- LLM Communication Layer
- Content Generation Pipelines (LangChain Chains)
- Prompt Engineering
- Structured Output Handling
- Interactive Quiz Logic