YouTube AI Chat π€
Chat with us on Discord
Download Link (For the Lazy) π§βπ»
please note that I can't guarantee uptime with this since it's using my API keys. For a more reliable option, you can follow the instructions below to run it yourself.
About the Project
How it Works
This extension uses the Plasmo Extension Framework to deploy a little chat bubble in the Shadow DOM. This connects with a backend that:
- Gets the transcript of the video using
yt-dlp
- Embeds the transcript and puts it into a DataStax AstraDB Vector Database.
- Uses OpenAI's GPT-4 to generate a response to the user's message with context from AstraDB.
- Responds to the user.
Contributing
Prerequisites
- Dockerπ³
- DataStax AstraDB (really easy install)π
pnpm
ornpm
(I usepnpm
butnpm
should work fine)π¦
How to Install
- Clone the repository:
- Open up a terminal and
cd extension
(this is the chrome extension) - In a code editor, rename
.env.example
to.env
and fill in the values. For local development, you can leave the values as is. - run
pnpm install
ornpm install
- run
pnpm dev
ornpm run dev
- In your browser, make sure you have developer mode enabled, and load the extension from the
build/chrome-mv3-dev
folder.
Then to run the backend:
- Open up a terminal and
cd endpoint
(assuming you are in the root of this project) - Similar to the extension, rename
.env.example
to.env
and fill in the values. Fill in the required values. - run
docker compose up --build
. This will build the docker image and run it. - You should be good to go!
IMPORTANT NOTES β°
Philosophy
I see paid versions of this type of application everywhere and I thought it could be really simple to just make free. The amount of features that users would want is endless so I thought I would just make a simple version that works and then let the community build on top of it.
Respect to the Project / Contributors
This is very early. If you are wanting to add features, report bugs or fix anything, please feel free to open a PR or an issue. I will be working on this in my spare time so I can't guarantee that I will be able to fix everything but I will try my best.
π¨ DISCLAIMER π¨
DataStax is a sponsor of my social channels (Coding with Lewis). However, the links provided in this repository are NOT affiliate links. I do not receive kickback from the links put in this repository. I do not receive any financial benefit from this repository.
We are looking into ways we can provide a better experience for those who contribute to open source.