Hacker News new | ask | show | jobs
by josephrmartinez 933 days ago
I made a simple Chrome extension that similarly pulls down the video transcript and sends this to the openai chat completions endpoint: https://github.com/josephrmartinez/AskYouTube

This extension allows me to "ask" the model to perform a task on the video content: - "Give me the materials list" (for a diy video) - "What was the recommended book?" (for a 2+ hour podcast where they made a reference I can't find again easily) - "Extract the recommended protocol" (for 3+ hour health videos) - "Provide a counter argument" (for when I'm getting bored...)

Big plus is that you DO NOT need to wait for the ad to play through. I can just navigate to the video and send in a query without having to watch any ads.

Youtube transcripts are pretty rough. At first, I used Whisper to create a better transcript. But my primary use is to ask something of the youtube video - I found that slinging the so-so transcript along with my task was totally fine. Really simple project: Chrome extension in just html, css, and js. FastAPI server for the openai endpoint. Server function does a quick tokenization on the transcript to determine if I need to use the gpt4 model for the 128k context window or if the gptt3.5 16k context window is okay.

Naturally, here is a short youtube demo of the extension: https://www.youtube.com/watch?v=M1zq9NKIcbw&t=54s