A browser-based RAG application leveraging YouTube transcripts, semantic retrieval (FAISS), and real-time LLM responses.
YouTube-RAG-QA is a full-stack generative AI application packaged as a Chrome extension. It allows users to ask natural language questions about any YouTube video, powered by:
- Transcript-based retrieval (using
youtube-transcript-api) - Semantic chunking and vector storage (via FAISS)
- LLM-powered answering (via Groq + Meta's LLaMA-3)
- Real-time communication with a Python backend (FastAPI)
Ever watched a long YouTube video and wished you could just ask, "What's this about?"
This tool extracts the transcript (if available), chunks and embeds it, and uses an LLM to answer your question accurately using only the video content.
| Layer | Technology |
|---|---|
| Frontend | HTML, CSS, JavaScript (Chrome Extension) |
| Backend | FastAPI (Python) |
| LLM Access | GroqCloud API (LLaMA 3 - 70B) |
| RAG Engine | LangChain + FAISS |
| Transcript | youtube-transcript-api |
| Embeddings | HuggingFace Sentence Transformers |
git clone https://github.com/ASWD13/youtube-RAG-QA.gitGROQ_API_KEY=your_groqcloud_api_key
pip install -r requirements.txt
python main.py
- Open Chrome and go to chrome://extensions
- Turn on Developer mode (top right)
- Click Load unpacked
- Select the extension folder inside this repo
- You should now see the extension in your toolbar
- Paste a YouTube URL (make sure it contains a transcript — auto or manual)
- Type your question
- Wait for a response from the AI (response time varies depending on transcript length)
- YouTube videos without transcripts will not work
- Multi-language transcript support is not implemented
- LLM responses may take a few seconds