Skip to content

πŸ”Š Chat with Your YouTube Video using LLMs πŸ€– πŸš€ Built an AI-powered app that lets you chat with YouTube videos using LLMs! I recently developed ChatAudio, a project that allows users to interact with YouTube video content in a conversational way β€” powered by LangChain, OpenAI, and Streamlit.

Notifications You must be signed in to change notification settings

Narendra8767/Chat_with_Audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Š Chat with Your YouTube Video using LLMs πŸ€–

πŸš€ Built an AI-powered app that lets you chat with YouTube videos using LLMs!
I recently developed ChatAudio, a project that allows users to interact with YouTube video content in a conversational way β€” powered by LangChain, OpenAI, and Streamlit.
🎯 Goal
Enable users to extract transcripts from YouTube videos and ask any question about the content β€” just like chatting with the video!

image alt

πŸ” Workflow Overview
1️⃣ User inputs a YouTube video URL
2️⃣ App fetches subtitles using YouTubeTranscriptAPI
βž• If subtitles are missing, you can optionally use AssemblyAI for speech-to-text
3️⃣ Transcript is saved and processed via LangChain:
Loaded with TextLoader
Split using CharacterTextSplitter
Embedded via OpenAIEmbeddings
Stored with FAISS for fast vector search
4️⃣ The query is passed to the LLM (ChatOpenAI) using a RetrievalQA chain
5️⃣ πŸ’¬ User receives a smart answer based on actual video content!

image alt

🧠 Tech Stack
βœ… Streamlit – UI & interaction
βœ… LangChain – Document processing & RAG
βœ… OpenAI GPT-3.5 – Question answering
βœ… FAISS – Vector storage
βœ… YouTubeTranscriptAPI – Subtitle extraction
βœ… AssemblyAI (Optional) – Audio transcription fallback
βœ… PyTube – For downloading audio from YouTube

πŸ“Œ Key Highlights
βœ”οΈ Converts YouTube content into a conversational AI interface
βœ”οΈ Real-time interaction with a smooth Streamlit frontend
βœ”οΈ Skip the full video – just ask what you want to know
βœ”οΈ Modular codebase with robust error handling and retrieval pipeline
βœ”οΈ Efficient, fast, and scalable for real-world use

🐳 Docker Deployment
To make it easy for anyone to run the app locally, I’ve also Dockerized the project and published it on
Docker Hub: https://lnkd.in/d-trNx98

About

πŸ”Š Chat with Your YouTube Video using LLMs πŸ€– πŸš€ Built an AI-powered app that lets you chat with YouTube videos using LLMs! I recently developed ChatAudio, a project that allows users to interact with YouTube video content in a conversational way β€” powered by LangChain, OpenAI, and Streamlit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published