How tearcake/nlp-mini works
LensAI turns a YouTube recording or local media path into a saved, searchable meeting workspace, then supports transcript-based questions. The main workflow runs from the dashboard through authenticated meeting processing, transcription and insight extraction, vector indexing, and persistence; chat retrieves from that index and saves answers. The graph also includes account flows and meeting-history operations. Relationships are limited to excerpted calls/imports and README statements; some documented provider and summary details lack sampled implementation evidence.
Main entry points: chat.py Chat endpoints · database.py Database sessions · App.jsx Route shell · main.py Processing pipeline
Components 25
Web interface
- Route shell
frontend/src/App.jsx - Meeting dashboard
frontend/src/pages/Dashboard.jsx - Meeting sidebar
frontend/src/components/Sidebar.jsx - Auth state
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/api.js - Landing page
frontend/src/pages/landingPage.jsx - Login page
frontend/src/pages/login.jsx - Signup page
frontend/src/pages/signup.jsx
API and identity
- FastAPI application
backend/app.py - Auth endpoints
backend/routes/auth1.py - Meeting endpoints
backend/routes/meeting.py - Chat endpoints
backend/routes/chat.py - JWT and passwords
backend/auth/auth.py
Meeting intelligence
- Processing pipeline
backend/main.py - Media preparation
backend/utils/audio_processor.py - Transcription
backend/core/transcriber.py - Insight extraction
backend/core/extractor.py - Summarization
backend/core/summarize.py - RAG question answering
backend/core/rag_engine.py
Persistence
- Vector index
backend/core/vector_store.py - Database sessions
backend/database/database.py - User and meeting records
backend/models/models.py - Meeting database
Other components
- Meeting user
- Groq model service
Connections 36
- Meeting user → Route shell: uses
frontend/src/App.jsx - Route shell → Landing page: routes to
frontend/src/App.jsx - Route shell → Login page: routes to
frontend/src/App.jsx - Route shell → Signup page: routes to
frontend/src/App.jsx - Route shell → Meeting dashboard: routes to
frontend/src/App.jsx - Meeting dashboard → Meeting sidebar: renders
frontend/src/pages/Dashboard.jsx - Meeting dashboard → API client: requests
frontend/src/pages/Dashboard.jsx - Auth state → API client: requests
frontend/src/context/AuthContext.jsx - Meeting dashboard → Auth state: uses
frontend/src/pages/Dashboard.jsx - Login page → Auth state: uses
frontend/src/pages/login.jsx - Signup page → Auth state: uses
frontend/src/pages/signup.jsx - API client → FastAPI application: calls API
README.md - FastAPI application → Auth endpoints: registers
backend/app.py - FastAPI application → Meeting endpoints: registers
backend/app.py - FastAPI application → Chat endpoints: registers
backend/app.py - Auth endpoints → JWT and passwords: uses
backend/routes/auth1.py - Auth endpoints → Database sessions: queries
backend/routes/auth1.py - Auth endpoints → User and meeting records: queries
backend/routes/auth1.py - JWT and passwords → Database sessions: uses
backend/auth/auth.py - JWT and passwords → User and meeting records: loads user
backend/auth/auth.py - Meeting endpoints → Processing pipeline: runs
backend/routes/meeting.py - Meeting endpoints → Database sessions: uses
backend/routes/meeting.py - Meeting endpoints → User and meeting records: stores meetings
backend/routes/meeting.py - Processing pipeline → Media preparation: prepares media
backend/main.py - Processing pipeline → Transcription: transcribes
backend/main.py - Processing pipeline → Insight extraction: extracts insights
backend/main.py - Processing pipeline → RAG question answering: indexes transcript
backend/main.py - RAG question answering → Vector index: retrieves and indexes
backend/core/rag_engine.py - Chat endpoints → RAG question answering: answers questions
backend/routes/chat.py - Chat endpoints → Vector index: builds index
backend/routes/chat.py - Chat endpoints → Database sessions: saves chat
backend/routes/chat.py - Chat endpoints → User and meeting records: uses records
backend/routes/chat.py - Chat endpoints → JWT and passwords: authenticates
backend/routes/chat.py - RAG question answering → Groq model service: prompts
backend/core/rag_engine.py - Database sessions → Meeting database: connects
backend/database/database.py - User and meeting records → Database sessions: uses base
backend/models/models.py