How mihir1707/teaching-content-generator works
EduSlide AI is a teaching-material generator with a React interface and Flask API. Users choose topic-only, YouTube, article, document, or combined sources; the documented flow extracts and preprocesses material, chunks and indexes it, creates a plan for review, retrieves relevant context, then generates notes, summaries, MCQs, and PowerPoint slides. The combined pipeline’s excerpt and source index support its main service calls; several standalone source pipelines and frontend/API wiring are represented only at subsystem level where their implementations were not sampled.
Main entry points: main_combined.py Combined pipeline · App.tsx Web application · retriever.py Context retrieval · ppt_builder.py PowerPoint builder
Components 24
User interface
- Web application
frontend/src/App.tsx - Landing and selection
frontend/src/pages/Landing.tsx - Source workflows
frontend/src/pages/generate - Plan review
frontend/src/components/PlanViewer.tsx - API client
frontend/src/services/api.ts
Flask API
- Flask server
app/server.py - Source routes
app/routes - Source controllers
app/controllers
Source ingestion
- Combined pipeline
app/main/main_combined.py - YouTube transcripts
app/services/youtube.py - Article extraction
app/services/web_article.py - Document extraction
app/services/file_extractor.py - Translation
app/services/translate.py
Retrieval pipeline
- Text chunking
app/services/chunker.py - Embeddings
app/services/embeddings.py - Pinecone index
app/services/pinecone_index.py - Query generation
app/services/generate_queries.py - Context retrieval
app/services/retriever.py
Planning and outputs
- Plan generation
app/services/generate_plan.py - Teaching content
app/services/generator.py - Topic-only generation
app/main/main_topic_name.py - PowerPoint builder
app/services/ppt_builder.py - Presentation download
app/routes/download_helper.py
Other components
- Teacher or learner
Connections 25
- Teacher or learner → Web application: uses
- Web application → Landing and selection: routes to
frontend/src/App.tsx - Web application → Source workflows: routes to
frontend/src/App.tsx - Teacher or learner → Plan review: reviews plan
- Source workflows → API client: submits requests
- API client → Flask server: calls API
- Flask server → Source routes: registers
app/server.py - Source routes → Source controllers: dispatches
app/routes/combined_routes.py - Source controllers → Combined pipeline: runs pipeline
app/controllers/combined_controller.py - Combined pipeline → YouTube transcripts: gets transcript
app/main/main_combined.py - Combined pipeline → Article extraction: gets article
app/main/main_combined.py - Combined pipeline → Document extraction: extracts files
app/main/main_combined.py - Combined pipeline → Text chunking: chunks text
app/main/main_combined.py - Combined pipeline → Embeddings: embeds text
app/main/main_combined.py - Combined pipeline → Pinecone index: indexes chunks
app/main/main_combined.py - Combined pipeline → Query generation: generates queries
app/main/main_combined.py - Combined pipeline → Context retrieval: retrieves context
app/main/main_combined.py - Context retrieval → Embeddings: embeds queries
app/services/retriever.py - Context retrieval → Pinecone index: searches index
app/services/retriever.py - Combined pipeline → Teaching content: generates materials
app/main/main_combined.py - Combined pipeline → PowerPoint builder: builds slides
app/main/main_combined.py - Topic-only generation → PowerPoint builder: builds slides
app/main/main_topic_name.py - Plan generation → Plan review: provides plan
- PowerPoint builder → Presentation download: serves output
- Combined pipeline → Translation: may translate