Welcome to the YouTube RAG (Retrieval-Augmented Generation) project! This project leverages the power of AI to search, scrape, and analyze YouTube videos related to AI LLMs (Large Language Models).
This project is designed to:
- Search YouTube for the latest videos about AI LLMs.
- Scrape video content to gather detailed information.
- Generate reports based on the scraped data.
The system is built using Crew AI, which allows for the orchestration of agents and tasks to perform complex operations seamlessly.
This project utilizes the following libraries and APIs:
- Crew AI: A framework for building and managing AI agents and tasks.
- Requests: For making HTTP requests to the YouTube API.
- OS: For environment variable management.
- YouTube API: To fetch video details and search for videos.
- Groq API: For model integration.
- Search YouTube: The system can search upto 20 latest videos about AI LLMs and return a list of video IDs.
- Scrape Video Content: It scrapes detailed information from the identified videos, including titles, descriptions, and timestamps.
- Generate Reports: The project can generate structured reports based on the scraped data.
The crew successfully identified and retrieved a selection of the most recent and relevant videos related to AI LLMs. This included:
- A diverse range of topics covering advancements, applications, and ethical considerations of AI LLMs. 🌐
- A total of 20 video IDs collected, showcasing the latest insights from various content creators. 📈
The scraping task yielded structured data from the identified videos, which included:
- Titles and Descriptions: Captured key insights and summaries of each video. ✍️
- Channel Information: Identified the creators behind the content, providing context on their expertise. 👤
- Engagement Metrics: Gathered data on view counts and like counts, offering a glimpse into the popularity and reception of the videos. 👍
The research task compiled a list of the most relevant information about AI LLMs, resulting in:
- 10 Bullet Points summarizing cutting-edge developments and trends in the field. 📝
- Insights into practical applications and future directions for AI LLMs, aiding in informed decision-making and reporting. 🚀
The reporting task synthesized the gathered data into a comprehensive report, which included:
- A structured format with main topics and detailed sections for each area of interest. 📊
- Clear and concise presentation of findings, making it easy for stakeholders to understand the implications of the research. 📚
To get started, clone the repository and install the required dependencies:
git clone https://github.com/Shreyaaaash/youtube-rag.git
cd youtube-rag
pip install -r requirements.txtAdd your YOUTUBE_API_KEY,GROQ_API_KEY/OPENAI_API_KEY into the .env file
To kickstart your crew of AI agents and begin task execution, run this from the root folder of your project:
$ crewai runMake sure to set up your environment variables in a .env file:
The youtube Crew is composed of multiple AI agents, each with unique roles, goals, and tools. These agents collaborate on a series of tasks, defined in config/tasks.yaml, leveraging their collective skills to achieve complex objectives. The config/agents.yaml file outlines the capabilities and configurations of each agent in your crew.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.

