UTubeBuddy is a powerful Chrome extension and backend API service that lets you ask questions about YouTube videos using transcript-based Retrieval-Augmented Generation (RAG). The system extracts video transcripts and intelligently answers your questions, leveraging advanced language models.
Chrome Extension:
- Minimal, elegant UI for asking questions about YouTube videos.
- Supports dark/light themes for better accessibility.
- Direct integration with backend API to provide real-time answers.
FastAPI Backend:
- Retrieves video transcripts from YouTube using
youtube-transcript-api
. - Processes and answers questions using a RAG pipeline powered by LangChain and Hugging Face models.
- Robust error handling and structured JSON responses.
-
Clone the repository:
git clone https://github.com/sumitnjmsingh/UTubeBuddy.git cd UTubeBuddy
-
Create and activate virtual environment:
python -m venv backend/venv source backend/venv/bin/activate # On Windows: backend\venv\Scripts\activate
-
Install dependencies::
pip install -r backend/requirements.txt
-
Run the backend::
python backend/app.py
-
Open Chrome Extensions page:
chrome://extensions/
-
Enable Developer Mode (top-right)
-
Load unpacked extension:
click "Load unpacked" and select the chrome-extension folder.
-
Use the Extension:
Go to any YouTube video page. Open the extension, enter your question, and click “Ask”. The extension sends the video ID and question to the backend and displays the answer!