<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kevin Celustka on Medium]]></title>
        <description><![CDATA[Stories by Kevin Celustka on Medium]]></description>
        <link>https://medium.com/@kevin.celustka?source=rss-5b931c35b0b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H65O2dC-1gyLutOQ2OKRlw.jpeg</url>
            <title>Stories by Kevin Celustka on Medium</title>
            <link>https://medium.com/@kevin.celustka?source=rss-5b931c35b0b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:26:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kevin.celustka/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Films From The Big Picture: Using AI to Create a Letterboxd Archive for My Favorite Movie Podcast]]></title>
            <link>https://medium.com/@kevin.celustka/films-from-the-big-picture-creating-a-letterboxd-archive-for-my-favorite-movie-podcast-17242f62a1e6?source=rss-5b931c35b0b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/17242f62a1e6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[film]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Kevin Celustka]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 22:35:14 GMT</pubDate>
            <atom:updated>2024-11-17T07:03:48.248Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is a reflection on the completion of a side project I worked on between September &amp; November 2024. I learned a lot through this project and I want to document the process and share those learnings for folks on a similar journey. The Github for the codebase is </em><a href="https://github.com/kevdawg94/films-from-the-big-picture"><em>here</em></a><em> &amp; the Letterboxd archive is </em><a href="https://letterboxd.com/kevdawg_test/"><em>here</em></a><em>. My Linkedin is </em><a href="https://www.linkedin.com/in/kevincelustka/"><em>here</em></a><em> .</em></p><p><strong>TL;DR: I had some fun learning how to use LangChain with structured outputs, Whisper, and Selenium and put them together into a data pipeline that creates a Letterboxd List for ~750 episodes of the Big Picture Podcast. These lists help listeners to engage with the podcast more deeply and keep track of film recommendations.</strong></p><p><strong>Project Background</strong></p><p>I have been listening to <a href="https://www.theringer.com/the-big-picture">The Big Picture</a> podcast since 2018. If you like movies I can’t recommend it enough. You’ll discover new favorite films, film-makers, and stay up to date through the Oscars race (I was able to accurately guess 19/23 of the 2023 Academy Awards). The knowledge and opinions I’ve absorbed over the years have helped me grow my knowledge and appreciation for cinema as an adult.</p><p>Although the podcast format is engaging I’ve found it also has limitations for absorbing and referencing the dense information it contains. In a typical episode the hosts and guests discuss or reference dozens of films — I typically manage to remember a few and inevitably miss out on the rest.</p><p>I started to wonder whether I could build myself a tool to dig deeper into the Big Picture and keep track of the recommendations in each episode. I had been thinking about side projects as I kicked off a job search, and this seemed a promising direction. Many of the discussions in this podcast revolve around list-making, so GAI was well-suited to capture film references and help synthesize and format the discussions and list-making into a useful output.</p><p><strong>True North Metrics</strong></p><p>Before starting to code, I identified three P0 criteria for success:</p><ol><li>I learned about the modern state of GAI.</li><li>I created a Github project to demonstrate that learning. It’s been a few months since I coded in Python every day — this was a good way to get back in the saddle.</li><li>I created a data product that was valuable to me and benefitted other people. If Big Picture listeners were enthusiastic about it and used it that would show I had successfully addressed a common user-problem.</li></ol><p><strong>Concepts of a Plan</strong></p><p>This project changed shape over time. I started out interested in <strong>Retrieval-Augmented Generation (RAG) systems</strong>. An LLM with access to all the opinions and references of the Big Picture podcast catalogue would make for an interesting conversational partner. I imagined a conversational recommendation engine with access to my watch history and streaming libraries that would provide watch recommendations based on podcast discussions.</p><p>Without knowing the tech stack required, I built out a theoretical pipeline for this system:</p><ol><li>Download podcast audio</li><li>Transcribe audio with speaker names</li><li>Add transcriptions to database</li><li>Give chatbot access to database</li></ol><p>and I identified a preliminary tech stack:</p><ol><li><a href="https://github.com/dplocki/podcast-downloader">podcast-downloader</a>: Quick, off the shelf access to download podcast archive given an RSS feed URL. Has functionality to download latest(N) episodes for change data capture.</li><li><a href="https://github.com/m-bain/whisperX">WhisperX</a>: Fast automatic speech recognition with word-level timestamps and speaker diarization. This repo is built off of OpenAI’s Whisper model, and has a vibrant community of users that were essential for debugging the project later on. Continued maintenance &amp; ownership of this repo is currently in question.</li><li>Google Colab: Jupyter notebooks with access to GPU (required for Whisper)</li><li><a href="https://www.langchain.com/">Langchain</a>: A tool that provides structure and visibility into development with AI tools. I was drawn in by their <a href="https://youtu.be/sVcwVQRHIc8?si=C9yMrQDpwz4sM08e">helpful youtube tutorials for RAG systems</a> and the generous free tier. This tool was perfect for a small project like mine but may create issues for enterprise applications.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaUD8T5QOUOL1rhGh877FQ.png" /></figure><ol><li><a href="https://qdrant.tech/">Qdrant</a>: A database for storing the vectorized version of the transcriptions.</li></ol><p><strong>LLM Selection</strong></p><p>The first decision to make was which LLM to leverage. At the time of testing, the two leading LLMs I considered were Claude and Gpt-4o. Gpt-4o won out based on its structured output consistency and handling of large token queries. Claude was concerned about copywrite infringement and sometimes refused to create the expected lists.</p><p><strong>From RAGs to Riches</strong></p><p>I quickly ran into my first hurdle — diarized transcripts that WhisperX generates do not include speaker names (they default to “SPEAKER01&quot;, “SPEAKER02”). For my transcripts to be useful the speaker names were non-negotiable so I decided to transcribe the first 50 episodes using a manual approach to speaker identification. This preliminary dataset would allow me to test the rest of the pipeline, with plans to automate the process later.</p><p>With 50 episode transcripts in hand, I spent a few days learning about each of these tools and testing them vs a few competitors and fairly quickly had a working RAG toy model. A few concepts that were interesting to me in this exploration process:</p><ol><li><strong>Query Translation</strong>: Successful retrieval depends on questions an LLM can understand. Query transformation techniques (step-back, decomposition, multi-query) are key to making casual human questions closer to perfect LLM questions. I found that adding additional context to my queries increased the probability of a satisfying answer.</li><li><strong>Indexing:</strong> The success of a RAG system is largely hindered on selecting the perfect piece of information from the vectordb to answer a user query. Delivering the full transcript into the context window of your LLM worked fine for some questions, but I found that it would quickly become 1) expensive and 2) have limitations for synthesizing information between transcripts. Techniques including RAPTOR, multi-representational indexing, etc. improved the diversity and quality of retrieved text.</li><li><strong>Pipeline standardization</strong>: Working with LLMs requires a mindset shift to adapt to their unpredictability. The techniques for making them do what you want consistently are fascinating. Techniques like re-retrieval and structured JSON outputs helped in my quest to herd the cats.</li></ol><p>The RAG framework has been exploding in popularity and complexity over the past few years, but I noticed that many solutions put forward by the community were quickly made redundant by increases in max token limitations. As I explored the capacity of my toy models, I discovered Google’s Notebook LM — a plug-and-play version of my models. While I believe that RAG systems have their place for larger projects or projects with sensitive data, I realized that my own use-case likely didn’t require a boutique solution.</p><p><strong>Bringing the Big Picture to Letterboxd</strong></p><p>I arrived at the Letterboxd list solution while testing LangChain’s structured output techniques. The option to create predictable and structured outputs allowed me to imagine a whole new world of integrations beyond a chat bot text box. The Letterboxd list upload pipeline was the obvious candidate. This solution solved for third second true north metrics for this project, audience engagement. If my goal was to create a valuable resource that I could share with the Big Picture listener community, bringing the data directly to the audience would greatly reduce friction to find and use it, effectively increasing my top of funnel.</p><p>With a quick search I was encouraged to find there was already demand for the data. While there are no official representations of the Big Picture on Letterboxd, some listeners have created a few dozen lists by hand. Each episode requiring hours to manually note films from the audio, select them from the Letterboxd UI, and add any individual analysis or commentary into each list. I messaged these users to gather any input they may have to the process before setting off.</p><p><strong>Speaker Naming: Would a podcast host, by another name, sound as sweet?</strong></p><p>The most interesting problem in this project was the correct identification of speakers. Given the highly personal nature of film criticism and the parasocial relationships to podcast hosts we all enjoy, lists of random movie references would not capture what makes the Big Picture interesting to listen to, so including speaker names was non-negotiable.<br> <br> The first step to identify speakers was to create a diarized transcript using WhisperX, three algorithms applied over audio to 1)detect human voice 2) create a transcript and 3) assign each word to a speaker. The result looks like:</p><blockquote>SPEAKER01: In today’s episode we’ll be talking about the food in Quentin Tarantino’s filmography.<br>SPEAKER02: Now that’s a Tasty Burger!</blockquote><p>The technical challenge here is accurately identifying the names of the 3 — 12 speakers on each podcast, with a rotating cast between each episode. For the first 50 episodes I manually identified the speakers by listening to the audio clips and reading the transcripts. The automation of this process went through two iterations:</p><ol><li>Brute Force: My first attempt relied on a series of hard-coded rules for self introductions, falling back to manual entry to identify any guests. Each manual identification took ~1 minute.</li><li>Leveraging the RSS feed info + LLM: I discovered later that the hosts and guests were helpfully included in the RSS feed podcast description, which had records for the full episode archive. I wrote a loop prompting gpt-4o to use conversational context to name each one, given a list from the RSS feed. In its final stage, this process correctly identifies each speaker with &gt;95% accuracy.</li></ol><p><strong>List Design</strong></p><p>Letterboxd lists are simple, but with a lot of room for customization and linking within the list description. I tested a variety of prompts and settled on a few design choices to make the lists interactive and invite users to return to the podcast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X31tXutgBGAfmgdAIDsEVA.png" /></figure><ol><li><strong><em>Summaries</em></strong><em>: I asked gpt-4o to summarize the segments of each episode so users can orient themselves to the content and speakers.</em></li><li><strong><em>Context of film mention</em></strong><em>: I asked gpt-40 to provide one or two sentence context to why the speaker mentioned each film that is listed.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prl5JmIY9w0bX4OusbGU4A.png" /></figure><ol><li><strong><em>Timestamp Links</em></strong><em>: Timestamp links for each film mentioned facilitate a frictionless interface between the audio version of the podcast and list. These links drive list-viewers to revisit the podcast itself.</em></li><li><strong><em>List outcomes</em></strong><em>: When an episode includes list making, collaboratively or individually, gpt-4o extracts the final outcomes in list format.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzbv4pUmAJ5rZEX7htLp2w.png" /></figure><p><strong>Prompt Engineering</strong></p><p>Beyond the learning curve of Langchain idiosyncrasies, I found the prompt engineering to be a fun and straightforward exercise. Gpt-4o loves examples, criteria, and reminders.</p><p>I was impressed at the ability to quickly digest the 2–3 hour long episode transcripts for summaries and list extraction, but Gpt-4o struggled when asked to create lists of every movie mentioned in the podcast. Where 50 films were mentioned I would get back 20 in the correct format, the rest dropped as a silent error. I solved this by chunking the transcripts, decreasing the token size, and deduping the final list.</p><p>I also encountered unexpected nesting of the JSON, which would cause errors in the final steps uploading the doc. Initially I solved this with downstream guardrails to extract the output into the expected JSON structure, but this issue was resolved when I adopted a more up-to-date approach for langchain structured output. These are the kinds of weird bugs that lead many engineers to abandoning Langchain.</p><p><strong>Let There be Lists!</strong></p><p>Once I had the data prepared, it was time to share my creation with the world. I created a new Letterboxd account to host this project, and started to explore options for automating this step.</p><p>I chose Selenium to automate an upload loop. As the industry standard I thought it was worth learning even though simpler alternatives like Playwrite exist. In the end it was lucky I chose Selenium, as I would soon find that the Letterboxd website requires the navigation of several Javascript elements where Selenium outperforms its competitors.</p><p>Although it was my first time using the tool it was easy enough to troubleshoot, and my lists were live!</p><p><strong>Audience Adoption</strong></p><p>As I began creating the lists in “stealth-mode”, I was encouraged to continue by the organic growth of my account’s following. By the time I had caught up to the 740th episode, the account had 40 followers without me ever posting about it.</p><p>I posted the project to <a href="https://www.reddit.com/r/TheBigPicture/comments/1gf6au8/i_created_a_letterboxd_list_for_every_episode_of/">the Big Picture subreddit</a> on 10/29/24 and in the 9 days since the Letterboxd account has grown to 420 (nice) followers. The reaction to the post was extremely positive (34K views, 311 upvotes, 73 comments) confirmed that I had created something valuable for my own niche community!</p><p>I plan to continue posting links to new episodes to that subreddit. Ideally I would create a reddit bot that would do this for me as well.</p><p><strong>Project Cost</strong></p><p>To create the full catalog of 700+ episodes, this project cost more than I initially expected. I spent money with Google, OpenAI, and LangChain. The total cost was ~$400 USD. The majority of this was spent on OpenAI tokens.</p><p><strong>Reflections</strong></p><ol><li><em>Is this just AI slop? <br></em>This project is part of the ongoing explosion of AI generated content that is overtaking the internet today. I took care to review the output of the AI generated text and was satisfied by its accuracy when describing the opinions of the hosts and guests — because the LLM is summarizing a source-of-truth transcript rather than relying on knowledge inherent to the model I find the output avoids the pitfalls of hallucination or generic word mush. That said, I believe that websites like Letterboxd that rely on user-generated content will suffer in the long run due the the ease of generation of slop. I was surprised that it was so easy to upload these lists to Letterboxd using Selenium and I imagine that Letterboxd may implement safeguards against AI-based content generation or web-scraping style uploading in the future. I would not be surprised if one day I go to update the catalogue and find myself shut out.</li><li><em>Will these lists cannibalize listening of the podcast? <br></em>I have heard that Sean Fennessey and the podcast runners have resisted publishing their lists and content in channels outside of the podcast, worrying that viewers may not decide to listen if they can get the rankings right away. While I can understand the source of this anxiety, I believe that while this resource will serve as a “study guide” or “gateway” into podcast episodes, people tune into the podcast to be entertained and hear the nuanced conversations that are not present in these summaries. My hope is that these lists drive additional traffic to the old archive episodes due to increased discoverability, and that powers the future of the Big Picture podcast through advertisement revenue.</li></ol><p><strong>Future Directions</strong></p><ol><li>Keeping the catalogue up to date. I hope the big picture podcast continues for a long time!</li><li>Using alerts to new episodes to trigger change data capture, eliminating unnecessary script executions when no new podcast has been created.</li><li>Reddit bot to automate sharing the new lists with the community.</li><li>Other applications of the transcript database: I initially set out to create a RAG-based recommendation engine that cites conversation in the Big Pictuere. It would be interesting to provide the engine the user watch history / watch list from Letterboxd and returning a Letterboxd List with ranked recommendations with links to podcast discussions to entice the user.</li></ol><p><em>If you’ve made it this far, thanks for reading! Feel free to reach out. Happy to answer questions and would love to hear your opinions or suggestions. Collaborations are welcome.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17242f62a1e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>