Skip to content

iamarunbrahma/youtube-ai-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube AI Assistant

License: MIT

This project is built for the purpose of getting summarized text specifically for long-duration YouTube videos and also to chat with an AI assistant to get instant answers to your queries related to that YouTube video.
If we stumble upon an interesting video, it's usually not possible to watch the entire video due to time constraints. Hence, we can use this app to get summarized knowledge about that specific video.

This project is hosted on HuggingFace Spaces: Live Demo of Youtube AI Assistant.

Steps:-

  • Extract transcript from video using Langchain's YoutubeLoader and then split it into chunks of text using RecursiveCharacterTextSplitter
  • Upload chunks of text into Qdrant Vector DB
  • Generate summarized text using Langchain's load_summarize_chain
  • Retrieve the top 3 similar chunks for each user query using RetrievalQA and using a custom prompt by PromptTemplate, answer those queries

How to run it locally:-

If you want to run this app locally, first clone this repo using git clone.

Now, install all libraries by running the following command in the terminal:

pip install -r requirements.txt

Now, run the app from the terminal:

gradio app.py

If you like this project, please ⭐ this repository.

About

AI Assistant to get summarized text from Youtube video and also get instant answers to your queries related to video

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages