This Streamlit application helps you in summarizing YouTube videos, making it easier to digest content efficiently. Additionally, it allows users to pose follow-up questions related to the video, and the application generates pertinent responses, enhancing engagement and understanding.
- Create and activate virtual environment
python3 -m venv .venv
source .venv
- Download all dependencies
pip install -r requirements.txt
- Run application
streamlit run main.py
-
Enter Youtube video link in left side bar.
-
Using Youtube Transcription api application will fetch transcriptions of Youtube video.
-
Fetched transcriptions are sent to
Mistral-7B-instruction
model for summarization. -
Embeddings of transcriptions are generated using
all-MiniLM-L6-v2
model -
Generated embeddings are stored in
Qdrant
in memory vector database. -
When you follow question relevant similar Youtube video context is fetched from vector database and that context is sent to
Mistral-7B-instruction
model along with question. -
Mistral-7B-instruction
uses fetched background context and gives answer of asked question.- Youtube videos larger that 30 minutes length are not supported.
- Youtube video only in english language are only supported.