Skip to content

shreesriv12/Youtube-ChatBot-using-Langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 YouTube AI Transcript Assistant πŸ”πŸ€– A Chrome Extension + AI Backend that allows users to ask questions about any YouTube video. It fetches the video's transcript, chunks it, embeds it with SentenceTransformers, stores it in FAISS, and uses Gemini AI to answer questions contextually.

πŸš€ Ask anything about the video β€” no need to scrub through the timeline!

πŸ“Ή Demo

screen-recording-2025-06-15-150244_QvE2gRoQ.mp4

🧠 Tech Stack

🧩 Frontend: Chrome Extension (HTML, JS, CSS) βš™οΈ Backend: FastAPI πŸ“Ό Transcript Fetching: yt-dlp, .vtt conversion 🧠 Embeddings: sentence-transformers πŸ”Ž Vector Store: FAISS 🧠 LLM: langchain-google-genai using Gemini

πŸ› οΈ Features

🌐 Chrome Extension to interact with any YouTube video πŸ“„ Automatic transcript download + parsing πŸ” Vector-based semantic search using FAISS 🧠 Context-aware AI answers via Gemini API πŸͺ„ Seamless integration between frontend & backend ⚑ Real-time processing with loading states 🎨 Modern glassmorphism UI design πŸ“± Responsive extension popup interface

πŸš€ Running the Project πŸ”§ 1. Backend Setup bashcd backend python -m venv venv source venv/bin/activate # or venv\Scripts\activate on Windows pip install -r requirements.txt uvicorn main:app --reload Make sure .env contains: envGOOGLE_API_KEY=your_google_gemini_api_key 🌐 2. Chrome Extension Setup

Open chrome://extensions/ Enable Developer mode Click Load unpacked Select the extension/ folder Click the extension icon on YouTube, ask a question!

πŸ”‘ API Setup Get Google Gemini API Key

Go to Google AI Studio Create a new API key Add to .env file in backend folder

🎯 Usage

Navigate to any YouTube video Click the extension icon in your browser Type your question about the video content Get AI-powered answers based on the transcript!

Example Questions: "What are the main points discussed?" "Summarize the video in 3 bullet points" "What does the speaker say about [specific topic]?" "At what timestamp is [specific topic] mentioned?"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published