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.
- 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.
| 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. |
- 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