AI-Powered YouTube Learning Assistant
YT Buddy is an end-to-end AI application that transforms YouTube videos into interactive learning experiences. Users can generate intelligent summaries, chat with video content using RAG (Retrieval-Augmented Generation), translate summaries into multiple languages, and export results as PDFs. https://ytbuddy-learnaccordingtoyou.streamlit.app/
- Extracts transcripts directly from YouTube videos.
- Handles long-form educational videos and podcasts.
-
Direct summarization for short videos.
-
Map-Reduce summarization for long videos.
-
Generates:
- Short Summary
- Detailed Explanation
- Key Takeaways
- Important Concepts
- Actionable Insights
-
Automatically detects transcript length.
-
Switches between:
- Direct Processing
- Chunk-Based Processing
-
Uses overlapping chunks to preserve context.
-
Ask questions about video content.
-
Uses:
- Sentence Transformers
- FAISS Vector Database
- Groq LLM
-
Retrieves relevant transcript chunks before generating answers.
Translate summaries and answers into:
- English
- Hindi
- Bengali
- French
- Spanish
Export:
- Video Summary
- Key Concepts
- Chat History
Displays:
- Video Title
- Channel Name
- Publish Date
- Duration
- Thumbnail
- Streamlit Cloud Deployment
- GitHub Actions CI/CD Pipeline
YouTube URL
↓
Transcript Extraction
↓
Smart Chunking Engine
↓
Short Video?
↓
Direct Summary
Long Video?
↓
Chunking
↓
Map-Reduce Summarization
↓
FAISS Vector Store
↓
Question Answering (RAG)
↓
Groq LLM
↓
Answer Generation
Transcript
↓
Chunking
↓
Embeddings
↓
FAISS
↓
Similarity Search
↓
Top-K Relevant Chunks
↓
Groq LLM
↓
Answer
- Streamlit
- Groq
- Llama 3.1 8B Instant
- Sentence Transformers
- LangChain
- FAISS
- YouTube Transcript API
- PyTube
- FPDF2
- Streamlit Community Cloud
- GitHub Actions
Clone the repository:
git clone https://github.com/sarkarshrayan2-max/yt_buddy.git
cd yt_buddyCreate a virtual environment:
python -m venv venvActivate it:
Windows:
venv\Scripts\activateLinux / Mac:
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a .env file:
GROQ_API_KEY=your_groq_api_keystreamlit run app.py- Playlist Summarization
- Timestamp-Based Citations
- Multi-Video Knowledge Base
- Audio Upload Support
- User Authentication
- Persistent Chat Memory
- Advanced PDF Formatting
- Support for More Languages
Shrayan Sarkar
B.Tech – Electronics & Computer Science Engineering
Machine Learning & AI Enthusiast
GitHub: https://github.com/sarkarshrayan2-max
LinkedIn: Add your LinkedIn profile here