YouTube AI Extension
The YouTube AI Extension is an innovative tool designed to enhance users' interaction with YouTube videos by allowing them to chat directly with the video content. This unique extension offers an engaging experience by facilitating communication between the user and the video content in real-time.
Features
This extension boasts a variety of features aimed at improving the user experience:
- Real-time Interaction: Users can seamlessly chat with YouTube videos as they watch, creating a dynamic and interactive viewing experience.
- Enhanced Understanding: It provides video summaries, allows users to ask questions, and offers detailed explanations based on the video content, thus enhancing comprehension and enjoyment.
- User-Friendly Interface: The interface is designed to be intuitive and is integrated directly into YouTube, making it easy for users to start chatting without needing to navigate away from the site.
- Multilingual Support: It supports multiple languages, enabling a diverse user base to interact with the videos. Additionally, the extension features context-aware responses, ensuring more accurate and relevant interactions.
Roadmap
Looking towards the future, the development team plans to expand the capabilities of the extension further with:
- Enhanced support for Ollama.
- Integration of RAG (Recurrent Attention Generative) models for better handling of longer videos.
- The addition of more user-friendly and functional features.
Installation
Installing the YouTube Chat Extension is straightforward, and users can have it running locally on their machines by following these steps:
-
Clone the Repository: Begin by cloning the project’s GitHub repository and navigate into the project directory:
git clone https://github.com/PaoloJN/youtube-ai-extension.git cd youtube-chat-extension
-
Add the API Key: You need to replace
YOUR_API_KEY
in the fileschat.ts
andcompletion.ts
with your actual OpenAI API key.const openai = new OpenAI({ apiKey: "YOUR_API_KEY" })
-
Install Dependencies: Proceed by installing necessary dependencies and building the project:
pnpm install pnpm run build
-
Load Extension into Chrome:
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" by toggling the switch in the top right corner.
- Click "Load unpacked" and select the
build/chrome-mv3-dev
directory from the project.
- Open Chrome and go to
-
Start Chatting: Launch YouTube and begin your interactive experience!
Note: The extension is currently incompatible with the new YouTube layout. Users can revert to the classic layout using the uBlock Origin extension, ensuring the functionality of the YouTube Chat Extension.
Acknowledgments
The development of this project is supported by various resources and technologies including:
These technologies and tools have been instrumental in bringing the YouTube AI Extension to life, enabling it to offer a cutting-edge user experience.