Hello,
I recently attempted to revise for an Operating System CA, but I found myself overwhelmed by the sheer volume of YouTube videos available in the livebooks. Rewatching them all before the test seemed impossible. Seeking assistance, I turned to ChatGPT, but the task of downloading transcripts for all the videos and providing them to ChatGPT was daunting due to their large number.
This led me to consider automating the process. I experimented with writing a small script that takes the livebook module names, queries the Livebook APIs to identify relevant YouTube videos, retrieves subtitles from these videos using their IDs, and then passes the transcripts to OpenAI APIs for summarization and generating multiple-choice questions (MCQs). The script works seamlessly.
Also, OpenAI recently reduced the cost of their gpt-3.5-turbo
model with the introduction of gpt-3.5-turbo-0125
model and hence this became really affordable as well .
Check out the code and results here.
Please do drop a star on my repo as well if you liked it .