How rahulshamra/ai_audio_video_assistant works
AI Video Assistant accepts a YouTube URL or uploaded audio, transcribes it in the selected language, returns a summary and meeting details, and enables transcript-grounded questions. The frontend submits both input modes through its API client, while the FastAPI routes orchestrate audio processing, transcription, summarization, detail extraction, and RAG setup. Chat requests use the active in-memory RAG chain backed by Pinecone. Evidence is limited to the README and the sampled files listed in the source index; audio-processing internals were not inspected.
Main entry points: main.py FastAPI routes · question_answer.py RAG chain setup · App.jsx App state · api.js API client
Components 18
User interface
- Input form
Frontend/src/components/VideoForm.jsx - App state
Frontend/src/App.jsx - Insight results
Frontend/src/components/Result.jsx - Chat panel
Frontend/src/components/Chat.jsx - API client
Frontend/src/services/api.js
API orchestration
- FastAPI routes
Backend/main.py
Audio and transcript
- Audio preparation
Backend/utils/audio_processor.py - Transcription
Backend/core/transcriber.py
Meeting insights
- Summary generation
Backend/core/summarizer.py - Meeting detail extraction
Backend/core/summarizer.py
Transcript Q&A
- RAG chain setup
Backend/core/question_answer.py - Pinecone vectors
- Question answering
Backend/main.py
Other components
- User
- Video or audio
- Groq language model
- Speech services
- Hugging Face embeddings
Connections 25
- User → Input form: enters input
Frontend/src/components/VideoForm.jsx - Input form → App state: submits
Frontend/src/App.jsx - App state → API client: requests processing
Frontend/src/App.jsx - API client → FastAPI routes: sends HTTP request
Frontend/src/services/api.js - FastAPI routes → Video or audio: accepts URL or file
Backend/main.py - FastAPI routes → Audio preparation: processes input
Backend/main.py - Audio preparation → Transcription: provides chunks
Backend/main.py - FastAPI routes → Transcription: transcribes chunks
Backend/main.py - FastAPI routes → Summary generation: generates summary
Backend/main.py - FastAPI routes → Meeting detail extraction: extracts details
Backend/main.py - Summary generation → Groq language model: invokes
Backend/core/summarizer.py - Meeting detail extraction → Groq language model: invokes
Backend/core/summarizer.py - Transcription → Speech services: sends Hindi audio
Backend/core/transcriber.py - FastAPI routes → RAG chain setup: creates chain
Backend/main.py - RAG chain setup → Pinecone vectors: stores and retrieves
Backend/core/question_answer.py - RAG chain setup → Hugging Face embeddings: embeds transcript
Backend/core/question_answer.py - RAG chain setup → Groq language model: configures answer model
Backend/core/question_answer.py - FastAPI routes → Question answering: invokes active chain
Backend/main.py - Question answering → RAG chain setup: queries transcript
Backend/main.py - FastAPI routes → App state: returns insights
- App state → Insight results: renders insights
Frontend/src/App.jsx - User → Chat panel: asks question
Frontend/src/components/Chat.jsx - Chat panel → API client: requests answer
Frontend/src/components/Chat.jsx - API client → FastAPI routes: posts question
Frontend/src/services/api.js - FastAPI routes → Chat panel: returns answer