How arinbuilds/learnflow works
Learnflow combines a Next.js learning interface with a FastAPI service. Learners choose or create a course, import a video’s captions and supporting materials, then ask timestamp-aware questions or use learning actions; answers include citations and exclude future transcript content. A separate workflow parses candidate profiles, conducts personalized mock interviews, and produces a scorecard. The graph preserves ingestion, retrieval, persistence, and provider capabilities documented by the README. The API entry point is unsampled, so its internal dispatch links are shown as unverified rather than asserted.
Main entry points: main.py FastAPI API · Assistant.tsx Learning Assistant · embeddings.py Embedding Providers · ingestion.py Resource Ingestion
Components 18
Learner Interface
- Learning Assistant
frontend/components/Assistant.tsx - Lesson Player
frontend/components/LessonPlayer.tsx - Video Source Parser
frontend/lib/video-source.ts - API Proxy
frontend/app/api/[...path]/route.ts
API Workflows
- FastAPI API
backend/app/main.py - YouTube Import
backend/app/youtube.py
Learning Content
- Resource Ingestion
backend/app/ingestion.py - Timestamped Retrieval
backend/app/retrieval.py - Embedding Providers
backend/app/embeddings.py - Course and Chat Store
backend/app/storage.py - Learning Data Models
backend/app/domain.py
Interview Practice
- Interview Workflow
backend/app/interview.py
Runtime Services
- LLM Adapters
backend/app/providers.py - Runtime Settings
backend/app/config.py
Other components
- Learner
- PostgreSQL / Supabase
- YouTube Captions
- Hosted Model Services
Connections 22
- Learner → Learning Assistant: uses
README.md - Learning Assistant → Lesson Player: renders
frontend/components/Assistant.tsx - Learning Assistant → Video Source Parser: parses URLs
frontend/components/Assistant.tsx - Learning Assistant → API Proxy: requests API
frontend/components/Assistant.tsx - API Proxy → FastAPI API: forwards requests
README.md - FastAPI API → YouTube Import: dispatches import
- YouTube Import → YouTube Captions: fetches captions
- FastAPI API → Resource Ingestion: dispatches uploads
- Resource Ingestion → Embedding Providers: embeds chunks
backend/app/ingestion.py - Resource Ingestion → Learning Data Models: creates chunks
backend/app/ingestion.py - FastAPI API → Timestamped Retrieval: dispatches questions
- Timestamped Retrieval → Embedding Providers: embeds query
backend/app/retrieval.py - Timestamped Retrieval → Course and Chat Store: searches chunks
backend/app/retrieval.py - Course and Chat Store → Learning Data Models: stores models
backend/app/storage.py - Course and Chat Store → PostgreSQL / Supabase: persists data
- FastAPI API → Interview Workflow: dispatches interviews
- Interview Workflow → LLM Adapters: generates turns
backend/app/interview.py - Interview Workflow → Learning Data Models: uses interview model
backend/app/interview.py - LLM Adapters → Hosted Model Services: calls provider
backend/app/providers.py - Embedding Providers → Hosted Model Services: calls provider
backend/app/embeddings.py - Embedding Providers → Runtime Settings: reads settings
backend/app/embeddings.py - LLM Adapters → Runtime Settings: reads settings
backend/app/providers.py