Skip to content

About

AI-powered Q&A assistant that answers questions from YouTube video transcripts using LangChain + Google Gemini

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

YouTube AI – Transcript Q&A Assistant

A simple but powerful Python tool that lets you ask questions about any YouTube video using its transcript.

Powered by LangChain + Google Gemini.

Features

  • Fetch transcripts from YouTube videos
  • Ask natural language questions about the video content
  • Get accurate answers based on the transcript
  • Lightweight and easy to run locally

Tech Stack

  • Python
  • LangChain
  • Google Gemini (via langchain-google-genai)
  • youtube-transcript-api

Installation

git clone https://github.com/ShayanAliProgrammer/youtube-ai.git
cd youtube-ai
pip install -r requirements.txt

Note: You will need a Google Gemini API key.

Usage

python main.py
  1. Paste a YouTube video URL
  2. Ask any question about the video
  3. Get the answer generated from the transcript

Example

Enter a YouTube video URL: https://www.youtube.com/watch?v=...
Prompt: What is the main topic of this video?
Answer: ...

License

MIT

About

AI-powered Q&A assistant that answers questions from YouTube video transcripts using LangChain + Google Gemini

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages