This directory contains the YouTube Summarizer example for the Atomic Agents project. This example demonstrates how to extract and summarize knowledge from YouTube videos using the Atomic Agents framework.
To get started with the YouTube Summarizer:
-
Clone the main Atomic Agents repository:
git clone https://github.com/BrainBlend-AI/atomic-agents
-
Navigate to the YouTube Summarizer directory:
cd atomic-agents/atomic-examples/youtube-summarizer
-
Install the dependencies using Poetry:
poetry install
-
Set up environment variables:
Create a
.env
file in theyoutube-summarizer
directory with the following content:OPENAI_API_KEY=your_openai_api_key YOUTUBE_API_KEY=your_youtube_api_key
To get your YouTube API key, follow the instructions in the YouTube Scraper README.
Replace
your_openai_api_key
andyour_youtube_api_key
with your actual API keys. -
Run the YouTube Summarizer:
poetry run python youtube_summarizer/main.py
This module defines the YouTubeKnowledgeExtractionAgent
, responsible for extracting summaries, insights, quotes, and more from YouTube video transcripts.
This tool comes from the Atomic Forge and handles fetching transcripts and metadata from YouTube videos.
The entry point for the YouTube Summarizer application. It orchestrates fetching transcripts, processing them through the agent, and displaying the results.
You can modify the video_url
variable in main.py
to analyze different YouTube videos. Additionally, you can adjust the agent's configuration in agent.py
to tailor the summaries and insights according to your requirements.
Contributions are welcome! Please fork the repository and submit a pull request with your enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.