Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamarunbrahma/youtube-ai-assistant

AI Assistant to get summarized text from Youtube video and also get instant answers to your queries related to video
https://github.com/iamarunbrahma/youtube-ai-assistant

chatbot gradio langchain openai summarization youtube

Last synced: 14 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Youtube AI Assistant
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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](https://huggingface.co/spaces/heliosbrahma/ai-youtube-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:

```python
pip install -r requirements.txt
```

Now, run the app from the terminal:
```python
gradio app.py
```

_If you like this project, please ⭐ this repository._