Skip to content

About

A chatbot that lets you ask questions about any YouTube video using its transcript. Built with LangChain and Hugging Face, it leverages retrieval-augmented generation (RAG) to provide accurate answers from video content.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

YouTube RAG Chatbot

Ever get bored watching long YouTube videos — podcasts, lectures, or study videos? 🎧
Now imagine you could chat with the video itself and get instant answers using AI!

This project is my first Retrieval-Augmented Generation (RAG) application, built with LangChain and Hugging Face. Paste any YouTube link, and the AI will answer your questions using the video transcript.


🚀 Features

  • Paste any YouTube link and fetch its transcript.
  • Ask questions about the video and get context-aware answers.
  • Uses RAG to retrieve relevant transcript chunks for accurate responses.
  • Interactive Streamlit frontend for easy usage.

🧰 Tech Stack

Component Purpose
LangChain Orchestrates the RAG workflow (retriever + LLM).
DeepSeek (Hugging Face) Language model generating human-like answers.
YouTube Transcript API Fetches captions from YouTube videos.
RecursiveCharacterTextSplitter Splits transcripts into smaller chunks for efficient retrieval.
Hugging Face Embeddings (all-MiniLM-L6-v2) Converts text chunks into vector representations for semantic search.
Chroma Stores embeddings and retrieves relevant transcript chunks.
Streamlit Provides an interactive web interface.
Python Core programming language.
dotenv Manages environment variables like API keys or proxy settings.

⚡ Installation

  1. Clone this repository:
git clone https://github.com/yourusername/youtube-rag-chatbot.git
cd youtube-rag-chatbot
pip install -r requirements.txt
streamlit run app.py

About

A chatbot that lets you ask questions about any YouTube video using its transcript. Built with LangChain and Hugging Face, it leverages retrieval-augmented generation (RAG) to provide accurate answers from video content.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages