Episode 59: Patterns and Anti-Patterns For Building with AI
Vanishing Gradients
September 23, 2025
John Berryman (Arcturus Labs; early GitHub Copilot engineer; co-author of Relevant Search and Prompt Engineering for LLMs) has spent years figuring out what makes AI applications actually work in production.
John Berryman
If you start out by saying, I'm going to take my really complex thing, and I'll give it to this high level framework, where I just say, here's your task, go do anything you want, you're going to come into a less nice outcome than if you just build the simple thing first.
Hugo Bowne-Anderson
That was John Berryman, founder of Arcturus Labs, an early engineer on GitHub Copilot, and author of the O'Reilly book, Prompt Engineering for LLMs. In this episode, John and I dive into what we call the seven deadly sins of AI application development. One of the biggest takeaways, the way you need to think about the models themselves.
John Berryman
Empathize with the large language models. Think about them as a super intelligent, super eager and a forgetful AI intern with ADHD.
Hugo Bowne-Anderson
Before founding Arcturus Labs, John was an early engineer on GitHub Copilot, contributing to both its code completion and chat features. John's background in search is also fundamental here. He's the co-author of the Manning book, Relevant Search, and the O'Reilly book, Prompt Engineering for LLMs, which he might just be renaming to Context Engineering. This conversation is all about practical patterns and anti-patterns for building with AI, which we've framed around the seven deadly sins of AI app development. We start with why demanding 100% accuracy is a recipe for failure. Then we dive into the practical realities of working with agents, deconstruct the RAG black box, and explore why starting simple is always the right move. The core of our discussion is about building robust, debuggable systems, culminating in John's powerful mental model of treating an LLM as a forgetful, super eager AI intern. I learnt a ton from this conversation and I hope you do too. This conversation was a guest Q&A from a recent cohort of our course, Building LLM Powered Applications, which I have the great pleasure to co-teach several times a year with my friend Stefan Krauchik, who works on AI agent infrastructure at Salesforce. Links in the show notes if you're interested. Also, if you enjoy these conversations, please leave us a review and give us five stars on the app you use, share with your friends and colleagues. I'm your host, Hugo Bowne-Anderson, and this is Vanishing Gradients. Well, the thing is John and I have been chatting about all the things that can go wrong, and then the antidotes to those things. When we started chatting about these things, we looked at them and we realized we could bucket them in a variety of ways. In terms of quality and expectations, when and how we build apps, agentic issues that we run into, retrieval issues coupled with what we're calling context now. I think something we'll get into is when we think about retrieval, a lot of people are focusing for good, but incorrect reasons on the generative aspect and not the retrieval aspect, and decoupling these things can be very important. And then kind of challenges around tooling as well. So, John, I'm wondering, there are many ways we can start here, but we can start talking about the sins that involve expectations around quality and accuracy, or we can start talking about agents immediately. What's the first sin you want to bring to the table?
John Berryman
The first thing that I had on my roster today was building an AI product with the expectation that it must be 100 percent accurate. And this is a problem that I run into with clients when I'm on long introductory calls sometimes. I tend not to take this work because you get a similar pattern where the person will come in and say, hey, we're doing this thing. It's doing some sort of data extraction from these legal documents or it's doing some sort of process. It's building something and it needs to be 100 percent accurate. I realize they've got legality and liability all kind of bound up to that 100 percent accurate thing.
The SIN is requiring these AI systems to be more accurate than you would require a human to be to be 100 percent accurate. The penalty of the SIN is if you're really pushing a product that you're expecting to be absolutely 100 percent accurate, then you're probably going to get in to some liability issues, some trouble with that. I don't know how far you are down that road, but the penance to this is to reframe the problem. I think, you know, our agency is not such at this point where it can do all the thinking for us. These systems get distracted. We'll go through all this to empathize with the way these agents work. I think the goal for the current state of the art is to help our users save time. We make sure that whenever we're doing something on our users' behalf, it's transparent, they can see what the model has done and think to it for themselves, so that they're the ones that are the final signatory. They sign off on that. If you do it right, there's a lot of benefit to your customers because what used to be them, for extraction work, for example, them filtering through tons of documents and finding the morsels, instead, you can say, here, I've done that for you. Here's an easy way to check on it. And they can be like, right, so you save them a lot of time and foregone this penalty of 100 percent accuracy.
Read the other 41 minutes of this episode here.
$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.
Not what you expected? Full refund within 14 days.
Thousands of transcripts fetched by people building searchable podcast archives
Fetch transcripts with code
The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:
curl -H "x-api-key: pt_demo" \
https://spoken.md/transcripts/1000651996090Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.
From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.
Using your own key:
curl -H "x-api-key: YOUR_KEY" \
https://spoken.md/transcripts/1000728133543