Skip to content

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฅ YouTube Chatbot with Streamlit + Gemini Embeddings

This project is a Streamlit-based chatbot that lets you ask questions about any YouTube video.
It uses:

  • YouTube Transcript API to fetch captions
  • Gemini (models/embedding-001) for free embeddings
  • FAISS for vector search
  • LangChain + Gemini LLM for conversational responses

๐Ÿš€ Features

  • Extracts YouTube video transcripts automatically
  • Splits transcripts into chunks for retrieval
  • Uses Gemini embeddings (free tier available)
  • Answers questions based only on the transcript content
  • Simple Streamlit interface
  • Deployable on Render for free hosting

๐Ÿ› ๏ธ Installation (Local)

  1. Clone this repo:
    git clone https://github.com/your-username/youtube-chatbot.git
    cd youtube-chatbot
    
  2. (Optional but recommended) Create a virtual environment & activate it:
    python -m venv venv
    source venv/bin/activate   # macOS/Linux
    venv\Scripts\activate      # Windows
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set up your environment variables: Create a .env file in the root directory and add:
    GOOGLE_API_KEY=your_gemini_api_key
  5. Run the Streamlit app:
    streamlit run app.py
    
    

About

This is a simple youtube chatbot/helper that can provide insights and answer user queries based on the transcript of the youtube video. (Currently supporting english and hindi languages only)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages