It is an intelligent Chrome extension powered by a FastAPI backend and a Retrieval-Augmented Generation (RAG) pipeline. It extracts YouTube video transcripts, converts them into vector embeddings using Sentence Transformers, stores them in ChromaDB, retrieves the most relevant context using LangChainβs retrievers, and generates high-quality, tutor-style answers to your questions using an LLM.
π₯ AI Tutor for YouTube β understands video context
π RAG-powered answer generation
β‘ FastAPI backend for fast responses
π§ LangChain retriever (k=4 relevant chunks)
π¬ Modern floating chat UI injected directly on YouTube
π Supports long transcripts through chunking
π§ Works on all YouTube video pages automatically
Clone the repository
git clone https://github.com/aaryagodbole/AskTube.git
cd AskTube/backend
Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # WindowsInstall dependencies
pip install -r requirements.txtRun the FastAPI server
uvicorn main:app --host 0.0.0.0 --port 8000 --reloadBackend now runs at:
http://127.0.0.1:8000Load the extension in Chrome
- Open Chrome
- Go to:
chrome://extensions/- Enable Developer Mode (top-right)
- Click Load unpacked
- Select the folder:
AskTube/extensionDone!
Now open YouTube, and the AskTube floating chatbot will appear automatically.
π€ Aarya Godbole
- Github: @aaryagodbole
- LinkedIn: @aarya-godbole
If you like this project, give it a star! Your support motivates further updates and improvements π
