Latest / Talk Python To Me / #560: Building a Research OS: From Django to 30,000 Samples
Transcript
- 0:00Michael Kennedy: In 2020, a gastroenterologist in Glasgow did the math on his new research study and came up with
- 0:05Michael Kennedy: 30,000 samples arriving over two years from three cities and dozens of hospitals.
- 0:11Michael Kennedy: He asked around about how researchers kept track of that. The answer was Microsoft Excel.
- 0:17Michael Kennedy: Sean Chua had written some HTML by hand in Notepad way back in high school. That was about the
- 0:23Michael Kennedy: entirety of his programming experience. Even so, he opened the Django tutorial and started reading.
- 0:29Michael Kennedy: Six years later, that app is Foundry 120, holding 10 terabytes of clinical and genomics data with
- 0:36Michael Kennedy: agentic AI running on top of it. This is Talk Python To Me, episode 560, recorded August 26th,
- 0:44Music: 2026. Talk Python To Me. Yeah, we ready to roll. Upgrading the code. No fear of getting old.
- 0:52Music: Async in the air. New frameworks in sight. Geeky rap on deck. Quartz crew. It's time to unite.
- 0:57Music: We started in Pyramid, cruising old school lanes, had that stable base, yes sir.
- 1:02Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 1:07Michael Kennedy: This is your host, Michael Kennedy.
- 1:09Michael Kennedy: I'm a PSF fellow who's been coding for over 25 years.
- 1:13Michael Kennedy: Let's connect on social media.
- 1:14Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:17Michael Kennedy: The social links are all in your show notes.
- 1:20Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:24Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:27Michael Kennedy: That's right.
- 1:28Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:32Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:36Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:41Michael Kennedy: Let me quickly tell you about a new course we have running over at Talk Python.
- 1:46Michael Kennedy: Up and running with Rust.
- 1:48Michael Kennedy: The tools reshaping how you write Python, Ruff, uv, Firefly, ty, Pixie, and others.
- 1:53Michael Kennedy: and the libraries pushing past its performance ceilings.
- 1:56Michael Kennedy: Polars Pydantic, Cryptography, and Granian
- 1:59Michael Kennedy: increasingly share one secret under the hood.
- 2:02Michael Kennedy: They're written in Rust.
- 2:03Michael Kennedy: That code that used to be written in C
- 2:05Michael Kennedy: when Python needed real speed now
- 2:07Michael Kennedy: is more and more being written in Rust.
- 2:10Michael Kennedy: So having some Rust proficiency is a great skill
- 2:13Michael Kennedy: as a Python developer.
- 2:15Michael Kennedy: Christopher Trudeau is back
- 2:17Michael Kennedy: with the Up and Running with Rust course.
- 2:20Michael Kennedy: Check it out over at talkpython.fm.
- 2:22Michael Kennedy: Just click it courses in the top and you'll find it right there.
- 2:25Michael Kennedy: I hope you love this new Rust course.
- 2:27Michael Kennedy: Getting a course at Talk Python is one of the best ways to support the show.
- 2:32Michael Kennedy: This episode is brought to you by Sentry.
- 2:34Michael Kennedy: You know Sentry for the error monitoring, but they now have logs too.
- 2:37Michael Kennedy: And with Sentry, your logs become way more usable,
- 2:40Michael Kennedy: interleaving into your error reports to enhance debugging and understanding.
- 2:45Michael Kennedy: Get started today at talkpython.fm/sentry.
- 2:48Michael Kennedy: And it's also brought to you by Talk Python Courses.
- 2:52Michael Kennedy: Course completion certificates are now live.
- 2:54Michael Kennedy: If you finished a course, there's a certificate waiting for you on your account page right now.
- 2:59Michael Kennedy: Download it as a PDF or add it to your LinkedIn profile with one click under licenses and certifications.
- 3:06Michael Kennedy: Same section as your formal degrees.
- 3:08Michael Kennedy: Visit training.Talk Python.fm account to see what you've already earned.
- 3:13Michael Kennedy: John, welcome to Talk Python To Me.
- 3:14Michael Kennedy: How are you doing?
- 3:15Michael Kennedy: Great.
- 3:16Shaun Chuah: Thanks very much, Michael.
- 3:17Shaun Chuah: A big fan of the show.
- 3:18Shaun Chuah: Keen to be here to share a few things of what we've learned.
- 3:22Michael Kennedy: Amazing. Thank you so much. And now you're here creating the show. It's going to be amazing.
- 3:27Michael Kennedy: And you're doing really interesting work with biological and medical research, Python,
- 3:33Michael Kennedy: Django, AI. I think there's a lot of cool things that we're going to dive into here. So
- 3:38Michael Kennedy: I know even for people who are not in medical research, I think there's going to be some
- 3:43Michael Kennedy: super interesting angles that will translate for them.
- 3:46Shaun Chuah: Fantastic. Looking forward to it.
- 3:48Michael Kennedy: Now, before we dive into that, as usual, just tell people about yourself.
- 3:51Michael Kennedy: Who are you?
- 3:52Shaun Chuah: So I'm Sean.
- 3:53Shaun Chuah: I'm a gastroenterologist, and I'm a clinical researcher as well.
- 3:57Shaun Chuah: So my primary area of practice is in the field of inflammatory bowel disease that comprises
- 4:02Shaun Chuah: ulcerative colitis and Crohn's disease as the kind of conditions that we deal with when
- 4:09Shaun Chuah: we see patients in clinic.
- 4:10Shaun Chuah: But in parallel, I also work in research, trying to find out the causes of these conditions
- 4:16Shaun Chuah: together with the GUT Translational Research Group here at the University of Glasgow.
- 4:20Shaun Chuah: Personally, for this podcast, we use Python a lot in our work, both for research,
- 4:25Shaun Chuah: so trying to analyze the data that we're doing, but also as well as for the infrastructure that
- 4:29Shaun Chuah: we're running. So how do we actually deliver the research studies that we have to deliver?
- 4:34Shaun Chuah: And personally, as a researcher, I've also got an interest in agentic AI and machine learning,
- 4:39Shaun Chuah: and that's what attracted me to try to use some of these techniques to see if we can find
- 4:43Shaun Chuah: new breakthroughs that can bring, you know, new treatments for our patients that we see in clinic
- 4:48Michael Kennedy: every day. Awesome. Very cool research. That's the kind of stuff that can make a big difference
- 4:53Michael Kennedy: for people's lives. If you can make them better, right? It's like, I couldn't leave the house,
- 4:58Michael Kennedy: but now I'm back with my friends or whatever, right? Yeah. I mean, you know, the work that we
- 5:02Shaun Chuah: do is motivated in the patients that we see day to day. Inflammatory bowel disease is not very
- 5:09Shaun Chuah: common. It is rare, but it is growing not just in developed countries, but also in the developing
- 5:15Shaun Chuah: world. And we see a great burden of this disease coming the next 10 to 20 years. What do you think?
- 5:20Michael Kennedy: Diet? Environment? Why is it growing? Obviously, that's the research a little bit, right? But
- 5:26Michael Kennedy: what is your ideas here? Well, these are really complex conditions, and the environment is
- 5:31Shaun Chuah: absolutely a major player in this. The diet that we're eating nowadays is different from what we
- 5:36Shaun Chuah: used to eat. But when we dive into the science of it, it's a lot more complex than just that.
- 5:41Shaun Chuah: There are some patients who have genetic susceptibility, although not all. And we know
- 5:46Shaun Chuah: that there is this problem that happens when the immune system reacts to our environment. And for
- 5:51Shaun Chuah: some reason, the alarms don't switch off and the inflammation keeps happening, which leads to the
- 5:56Michael Kennedy: symptoms and the problems that we see every day in clinic. So let's start by examining all the
- 6:03Michael Kennedy: the research and the work you did and maybe the 2020 version of your research projects.
- 6:09Michael Kennedy: It all started with Django, right?
- 6:11Shaun Chuah: Yes.
- 6:12Shaun Chuah: So back in 2020, I was still training as a gastroenterologist.
- 6:16Shaun Chuah: So over here, we do a period of registrar training, we call it.
- 6:20Shaun Chuah: And as part of my developing interest in understanding these medical conditions, I sign up to do a
- 6:27Shaun Chuah: research study with one of the principal investigators.
- 6:31Shaun Chuah: And the proposed study was basically to recruit quite a few patients from three different cities,
- 6:38Shaun Chuah: multiple hospitals, and collect extra samples that we can run science experiments on to work
- 6:43Shaun Chuah: out what's going on with an immune system. So when we first started, that was 2020. And I know
- 6:51Shaun Chuah: we all remember that in 2020, you know, we had COVID and COVID had a significant impact both on
- 6:57Shaun Chuah: hospital operations, but also on research operations. And when I sat down to look at
- 7:02Shaun Chuah: what we were supposed to do in terms of the research studies, the first challenge that I
- 7:07Shaun Chuah: faced was calculating the number of samples we were going to do. So we were going to recruit about
- 7:12Shaun Chuah: 200 people and we're going to follow them up every three months. And at every time point,
- 7:17Shaun Chuah: we would take extra blood samples, extra stool samples, and saliva samples. So that was a lot
- 7:23Shaun Chuah: of extra samples and a simple back of the envelope calculation came to about 30,000 samples that we
- 7:29Shaun Chuah: were going to generate over a couple of years. Now, when I first saw that challenge, I started
- 7:33Shaun Chuah: asking everybody around me, how are we going to keep track of all that? How are we actually going
- 7:37Shaun Chuah: to deliver that problem? How do we solve that problem? And from my chat with a lot of people,
- 7:45Shaun Chuah: the common way that researchers track the samples is to use Microsoft Excel.
- 7:49Michael Kennedy: That's exactly what I was thinking is like, how big is the Excel file?
- 7:53Michael Kennedy: And, you know, how many little worksheet tabs does it have?
- 7:57Shaun Chuah: Yeah, I mean, most research teams do not really have a lab system because lab systems, you
- 8:01Shaun Chuah: know, enterprise software, which is really expensive to procure, it'll take you like
- 8:06Shaun Chuah: six months to set it up.
- 8:07Shaun Chuah: And it's usually designed really for hospital operations where you're taking, you know,
- 8:12Shaun Chuah: millions of samples.
- 8:13Shaun Chuah: And it's not really designed for a one-off research study across a lot of different spaces.
- 8:18Shaun Chuah: So then I started looking into what are the, you know, are there off the shelf options or
- 8:24Shaun Chuah: stuff that we could use to just get up and running?
- 8:26Shaun Chuah: But after looking at a few different options, I think I had to bite the bullet and decided
- 8:32Shaun Chuah: that, you know, the best thing was to go and write a web application with Django.
- 8:38Michael Kennedy: What was your programming experience at this point?
- 8:40Michael Kennedy: How good of a programmer were you?
- 8:42Shaun Chuah: So I wasn't very good of a programmer.
- 8:45Shaun Chuah: I mean, what I did was basically, you know, write some websites in high school.
- 8:51Shaun Chuah: And back in those days, we used to use Notepad.
- 8:53Shaun Chuah: We used to open the brackets of HTML manually by hand.
- 8:57Michael Kennedy: It was rough.
- 8:58Michael Kennedy: Those were tough times, I remember.
- 9:00Shaun Chuah: Yeah, I don't know how many people listening to this podcast can relate.
- 9:03Shaun Chuah: But we used to write, you know, the head, the body and stuff.
- 9:06Shaun Chuah: And then later on, I did use a bit of programming to do some, you know, statistics, a bit of,
- 9:12Shaun Chuah: writing an R script or a Python script just to generate a graph.
- 9:15Shaun Chuah: So that's probably that level of programming experience when I was
- 9:19Shaun Chuah: looking at how do we actually write a web app with Django.
- 9:23Michael Kennedy: Yeah, okay. So a Django web app was kind of a
- 9:27Shaun Chuah: pretty big stretch at that point, right? Yes, but the Django...
- 9:31Michael Kennedy: How'd you get started? I mean, this predates all the AI, agentic stuff.
- 9:35Michael Kennedy: You had to earn it for this one. Yeah, definitely. I mean, when I first
- 9:39Shaun Chuah: visited a Django website. It's the web framework for perfectionists with deadlines. And I think
- 9:44Shaun Chuah: that described exactly what a situation I was in. You know, I came out program and we had about a
- 9:50Shaun Chuah: two year time period to deliver a study. And you can't spend forever trying to get this up and
- 9:54Shaun Chuah: running. You just have to get the study going. So the Django tutorial was where I started. But
- 10:00Shaun Chuah: actually, I just want to take this opportunity to thank a lot of people in the community and those
- 10:04Shaun Chuah: listening because it's the documentation, the YouTube tutorial, your podcast. I've been listening
- 10:09Shaun Chuah: for five years. Books that were written, Two Scoops of Django, famously. I read a ton of books just
- 10:16Michael Kennedy: to be able to get things up and running. Yeah, the books are great. And honestly, YouTube is really
- 10:22Michael Kennedy: good. People knock YouTube for many reasons. You know, it's one of the ills of social media that's
- 10:27Michael Kennedy: like scrambling their brains. But if you use YouTube for education, it's an incredible resource.
- 10:33Shaun Chuah: Yeah. I mean, there are a lot of creators on YouTube that are just, you know, teaching lots
- 10:37Shaun Chuah: of different things. And it's so helpful. But I also think some of the textbooks are great, you
- 10:43Shaun Chuah: know, for things like test-driven development. You know, back in the days, I think you would only
- 10:48Shaun Chuah: read about it in textbooks rather than on YouTube videos because it's not really an attractive topic.
- 10:53Michael Kennedy: Yeah, you mentioned Obey the Testing Goat, which is a really fun book. And you also talked about
- 10:58Michael Kennedy: using designing data-intensive applications. And that's by Martin Klepman. I haven't heard of that
- 11:05Michael Kennedy: That's a pretty interesting one that people might want to check out.
- 11:08Shaun Chuah: Yeah, down the line, as our studies matured and we started dealing with the data, I started
- 11:13Shaun Chuah: reading some of the other data textbooks like Data Warehouse Toolkit by Kimball.
- 11:17Shaun Chuah: I think that's the one that all data engineers used to talk about dimensional modeling and
- 11:23Shaun Chuah: all that kind of stuff.
- 11:24Shaun Chuah: So lots of textbooks.
- 11:25Shaun Chuah: I think they're really helpful because they give you a kind of a holistic, fundamental
- 11:30Shaun Chuah: approach to learning the basics and making sure you don't have gaps in what you're doing
- 11:35Shaun Chuah: to build some of these things.
- 11:36Michael Kennedy: When you come from the background of programming that you did,
- 11:39Michael Kennedy: which, by the way, that's a very similar story to me as well.
- 11:43Michael Kennedy: I studied math, and then I got involved helping people
- 11:46Michael Kennedy: with research projects and working for a scientific research
- 11:50Michael Kennedy: and visualization company.
- 11:52Michael Kennedy: So you kind of build up the pieces as you go,
- 11:54Michael Kennedy: and it's super fun.
- 11:55Michael Kennedy: It's really neat.
- 11:56Michael Kennedy: But there's a lot of gaps in your sort of data integrity,
- 12:01Michael Kennedy: programming, like what is the foreign key relationship?
- 12:05Michael Kennedy: All that.
- 12:06Michael Kennedy: Yeah, yeah.
- 12:07Michael Kennedy: So I think books are really important,
- 12:09Michael Kennedy: especially for self-taught people like us.
- 12:12Michael Kennedy: Definitely, definitely.
- 12:13Shaun Chuah: You do learn a lot as you go.
- 12:16Shaun Chuah: And it's quite important to be aware of what you don't know
- 12:19Shaun Chuah: and try and close those gaps
- 12:21Shaun Chuah: so that the applications that you write
- 12:23Shaun Chuah: end up being reliable enough for people to depend on.
- 12:26Michael Kennedy: Let's talk about Django for a second
- 12:29Michael Kennedy: because you shouted out, Django,
- 12:31Michael Kennedy: some of the features of it that kind of made that possible.
- 12:33Michael Kennedy: I think this is one of the reasons that people choose Django, especially when they're getting started.
- 12:38Michael Kennedy: You know, it's like it's got the built-in migrations.
- 12:40Michael Kennedy: It's got the automatic database management, the admin.
- 12:43Michael Kennedy: So what was it about Django that drew you to this?
- 12:46Shaun Chuah: So I think, you know, when we looked at the landscape back in 2020, Django definitely stood out because it was a mature project.
- 12:53Shaun Chuah: It's been around for a long time and it's batteries included, which is really important because, you know, I'm conscious that, you know, as a non-programmer coming into trying to write these things,
- 13:03Shaun Chuah: You want your authentication framework to be battle tested.
- 13:05Shaun Chuah: Database and migration is incredibly important.
- 13:08Shaun Chuah: You can't lose any data.
- 13:09Shaun Chuah: And I think just on those two features alone,
- 13:11Shaun Chuah: we haven't even come to the admin dashboard,
- 13:13Shaun Chuah: but just those two features alone,
- 13:15Shaun Chuah: I think was enough to persuade me that Django is the right framework
- 13:18Shaun Chuah: for the problem that we're dealing with.
- 13:21Michael Kennedy: Okay, very interesting.
- 13:22Michael Kennedy: And by the way, just big news for Django folks.
- 13:26Michael Kennedy: Is it on their blog, maybe?
- 13:27Michael Kennedy: Big news for Django is they just announced
- 13:30Michael Kennedy: that they're switching the Django long-term support
- 13:34Michael Kennedy: to yearly releases, just like Python itself,
- 13:38Michael Kennedy: and calendar version.
- 13:39Michael Kennedy: So there'll be Django 2028, Django 2029,
- 13:42Michael Kennedy: and every single release is a long-term support,
- 13:44Michael Kennedy: whereas now you're kind of juggling like,
- 13:46Michael Kennedy: well, 5.2 is a long-term, but the one before it.
- 13:48Michael Kennedy: I think that'll also make it a little simpler
- 13:50Michael Kennedy: for people who are coming,
- 13:51Michael Kennedy: like they don't have to decipher the versioning
- 13:53Michael Kennedy: and what it means.
- 13:54Michael Kennedy: Definitely, yep.
- 13:56Michael Kennedy: Yeah, yeah, that'd be cool.
- 13:57Michael Kennedy: What else?
- 13:58Michael Kennedy: What else did you run into trying to navigate this world of becoming, running one of these
- 14:05Michael Kennedy: like real web apps rather than just Excel or buying some off the shelf, you know, square
- 14:11Michael Kennedy: peg round hole type of system that doesn't really fit what you're trying to do?
- 14:14Shaun Chuah: Yeah, I mean, I think one of the steep learning curves is how do you go from a local host
- 14:19Shaun Chuah: development project into something that's in production?
- 14:22Shaun Chuah: Because production is obviously a whole different ballgame.
- 14:25Shaun Chuah: you need to ensure your infrastructure in production is reliable.
- 14:30Shaun Chuah: It's secure. It's accessible.
- 14:32Shaun Chuah: You've got backups running, all sorts of things.
- 14:35Shaun Chuah: And for us, one of the key things that enabled us
- 14:39Shaun Chuah: is continuous integration and continuous deployment practices.
- 14:42Shaun Chuah: So using GitHub Actions to deploy continuously
- 14:46Shaun Chuah: so we can fix problems, get it into production in minutes
- 14:50Shaun Chuah: rather than trying to do any of these things by hand manually.
- 14:54Michael Kennedy: Yeah, the CI-CD stuff, I think, is really valuable.
- 14:56Michael Kennedy: It's valuable for big teams, but it's also really valuable for people who are really new.
- 15:01Michael Kennedy: Because if all I have to do is save my work to GitHub, and now that's the new stuff that's out there.
- 15:07Michael Kennedy: That takes a lot of the complexity out.
- 15:09Michael Kennedy: People forget just how intimidating logging into a Linux computer is.
- 15:14Michael Kennedy: Oh, yeah.
- 15:15Michael Kennedy: Now what?
- 15:15Michael Kennedy: Yeah?
- 15:16Shaun Chuah: Yeah, I had to learn how to use Linux on a terminal, right?
- 15:19Michael Kennedy: Exactly.
- 15:20Michael Kennedy: It was like, where is the UI?
- 15:22Michael Kennedy: This is very different.
- 15:25Michael Kennedy: How am I supposed to accomplish anything with just the terminal?
- 15:27Michael Kennedy: And, you know, you get used to it and it's amazing in its own special way,
- 15:31Michael Kennedy: but it doesn't feel amazing at the beginning most of the time, I think.
- 15:34Shaun Chuah: Well, I'm reminded of the...
- 15:35Shaun Chuah: It feels intimidating.
- 15:36Shaun Chuah: Yeah.
- 15:36Shaun Chuah: Every time I teach somebody how to use the Linux or the terminal,
- 15:40Shaun Chuah: it's a big jump, I think, for people who are not familiar with CLI,
- 15:44Shaun Chuah: which is, I think, the vast majority of people in the population.
- 15:47Michael Kennedy: Yeah.
- 15:47Michael Kennedy: Well, and things like people being primarily on phones for their computing device
- 15:51Michael Kennedy: don't make that easier. It's only harder, right? This portion of Talk Python To Me is brought to
- 15:57Michael Kennedy: you by Sentry. You know Sentry for their great error monitoring, but let's talk about logs.
- 16:02Michael Kennedy: Logs are messy. Trying to grep through them and line them up with traces and dashboards just to
- 16:07Michael Kennedy: understand one issue isn't easy. Did you know that Sentry has logs too? And your logs just became
- 16:13Michael Kennedy: way more usable. Sentry's logs are trace connected and structured, so you can follow the request flow
- 16:19Michael Kennedy: and filter by what matters.
- 16:21Michael Kennedy: And because Sentry surfaces the context
- 16:23Michael Kennedy: right where you're debugging,
- 16:24Michael Kennedy: the trace, relevant logs, the error,
- 16:26Michael Kennedy: and even the session replay all land in one timeline.
- 16:29Michael Kennedy: No timestamp matching, no tool hopping.
- 16:32Michael Kennedy: From front end to mobile to backend,
- 16:34Michael Kennedy: whatever you're debugging,
- 16:34Michael Kennedy: Sentry gives you the context you need
- 16:36Michael Kennedy: so you can fix the problem and move on.
- 16:39Michael Kennedy: More than 4.5 million developers use Sentry,
- 16:41Michael Kennedy: including teams at Anthropic and Disney+.
- 16:44Michael Kennedy: Get started with Sentry logs and error monitoring
- 16:46Michael Kennedy: today at talkpython.fm/sentry. Be sure to use our code talkpython26. The link is in your
- 16:53Michael Kennedy: podcast player show notes. Thank you to Sentry for supporting the show. Let's talk about your project
- 17:00Michael Kennedy: Boundary 120. So when you started, you built this bespoke Django app for, was this for the music
- 17:08Michael Kennedy: study or which study was this for? This was for the music IBD study. And the first version was
- 17:14Shaun Chuah: really to track samples and to come up with an efficient way for our teams to handle the, you
- 17:19Shaun Chuah: know, the 30,000 that we are projecting to sort out. So one of the key functionalities that we
- 17:25Shaun Chuah: wrote in at the start was this ability to, you know, stick a QR code, stick it onto a sample
- 17:29Shaun Chuah: label, scan it in, and that will register it into a database. And then we could move the sample
- 17:34Shaun Chuah: around between sites and scan it and update. So that's where it started out as a sample tracking
- 17:39Shaun Chuah: platform. So nothing too amazing. It was just kind of a really basic operational problem that just
- 17:46Shaun Chuah: needed to be solved. But over time, when you get samples, the next thing that happens to the sample
- 17:51Shaun Chuah: is that it gets processed into an experimental pipeline and you get data out of it. So the
- 17:56Shaun Chuah: lifecycle of an experimental sample then leads you on to dealing with the data that comes back.
- 18:02Shaun Chuah: Now, because we were taking so many different types of samples, one of the key challenges that
- 18:06Shaun Chuah: faced our team was how do you handle the data that was coming back at us? Because we have stool
- 18:11Shaun Chuah: samples that becomes, you know, microbiome data. We have blood samples that become genomics data.
- 18:18Shaun Chuah: And every data type that comes back just looks a little bit different, comes back in different
- 18:22Shaun Chuah: formats, you know. And one of the difficulties as well is the size of the data that we get.
- 18:28Shaun Chuah: So for my personal research project during that time, I was looking at sequencing out the cell-free
- 18:34Shaun Chuah: DNA. So the DNA fragments that you have floating around your blood and each sequencing file for a
- 18:40Shaun Chuah: participant will be about five to 10 gigabytes of data. And it comes back in a, you know,
- 18:44Shaun Chuah: in a fast QGZ format, and that has to go into a bioinformatic pipeline. So it's the one of the
- 18:49Shaun Chuah: key challenges is how we build that data. So Foundry 120 actually became a project that
- 18:54Shaun Chuah: started from sample tracking into data management and handling. And in 20, you know, in the last year
- 19:01Shaun Chuah: too, it's also become a platform where we can apply agentic AI into it to kind of accelerate
- 19:07Michael Kennedy: our workflows. Yeah, it's a really neat platform. And I'm definitely going to dive into it. I think
- 19:13Michael Kennedy: it's neat how you had this smaller bespoke thing and you're like, all right, let's sort of pull
- 19:18Michael Kennedy: out the essence of it and make it useful for all kinds of scientific research. Going back to the
- 19:24Michael Kennedy: samples. You said each one is five to six gigabytes. That's each of the 30,000?
- 19:30Shaun Chuah: Not all the 30,000. So a subset of them, but it depends on what essays were being run on which
- 19:37Shaun Chuah: samples. And there could be a ton of essays all running different types of samples. And each of
- 19:43Shaun Chuah: them will have their own data type that comes back. So for my cell-free DNA work, we ran it on a subset
- 19:51Shaun Chuah: of the population, not the entire population.
- 19:53Shaun Chuah: But for some of the other larger scale things like genotyping, we would genotype the whole
- 19:57Shaun Chuah: population.
- 19:58Shaun Chuah: So there are lots of moving parts and tiny little details here that cause so much operational
- 20:04Shaun Chuah: problems.
- 20:06Michael Kennedy: That's a lot of data.
- 20:07Michael Kennedy: Where did you, how much did you end up with at the end and how did you store it and manage
- 20:11Michael Kennedy: it?
- 20:12Shaun Chuah: So currently we have about 10 terabytes of data and we've only, you know, processed only
- 20:19Shaun Chuah: a fraction of those 30,000 is still being processed because some pipelines takes a human
- 20:26Shaun Chuah: 12 hours to process a couple of samples. So there's still a lot of work to be done.
- 20:32Shaun Chuah: But yeah, it's about 10 terabytes of data that we're handling. And initially, it would be scattered
- 20:38Shaun Chuah: across our group. Somebody's doing a microbiome project, it would be on their laptop. Otherwise,
- 20:42Shaun Chuah: it'd be on a shared drive, on a file share somewhere in the university server. So data
- 20:48Shaun Chuah: tends to be scattered. So if somebody is doing a specific experiment, they might create an Excel
- 20:53Shaun Chuah: file with the readings from certain essays, and that would be the data set. And that's, I think,
- 20:58Michael Kennedy: one of the big problems that we face in biomedical research today. Yeah, that's a lot of data. Are
- 21:03Michael Kennedy: using things like blob storage? I know this Foundry 120 project is pretty strongly based in
- 21:09Michael Kennedy: the Azure cloud. Are you using Azure blob storage and stuff like that? Or is it really just all on
- 21:15Michael Kennedy: on-premise with regard to the university?
- 21:19Shaun Chuah: So back in the days, that was the situation that we were in.
- 21:22Shaun Chuah: But today, we're now migrated everything into Azure Blob Storage.
- 21:26Shaun Chuah: That just gives us a scalable way of not worrying, you know,
- 21:29Shaun Chuah: how much space we had in our shared drives.
- 21:33Shaun Chuah: Because back in the days, you know,
- 21:35Shaun Chuah: the university would give you a quota on your shared drive
- 21:37Shaun Chuah: and you have to email somebody in IT to get it increased.
- 21:40Shaun Chuah: So you might have a terabyte cap on your file share.
- 21:45Shaun Chuah: But with Azure Blob Storage, what you end up having is just a bill at the end of the month rather than hard limits.
- 21:52Michael Kennedy: You have a bill instead of a limit.
- 21:54Michael Kennedy: Yeah, yeah, yeah.
- 21:55Michael Kennedy: Interesting.
- 21:57Michael Kennedy: When I was working way back when I was in college, in university, working in this math research lab.
- 22:03Michael Kennedy: I told this story a couple of times, but it's been a while, so maybe I'll share it again.
- 22:06Michael Kennedy: And the whole of the math research department got access to the Silicon Graphics mainframe
- 22:14Michael Kennedy: beast of a computer.
- 22:15Michael Kennedy: We all had shared sort of workstation access to it.
- 22:19Michael Kennedy: And one of the students, grad students, was having a problem with their code.
- 22:24Michael Kennedy: And so they started logging out what it was doing.
- 22:26Michael Kennedy: And they got it into an infinite loop and ran it.
- 22:28Michael Kennedy: You would run stuff overnight and come see it in the morning.
- 22:31Michael Kennedy: We came back one day and it just wouldn't turn on or it wouldn't respond.
- 22:34Michael Kennedy: And nobody could figure out why.
- 22:36Michael Kennedy: The students, we had no, the reason I'm telling you this, we had no quotas, no limits.
- 22:41Michael Kennedy: The student used up the entire hard drive of the Silicon Graphics machine to the very last
- 22:46Michael Kennedy: byte, and apparently it needed a few temp files to operate the operating system.
- 22:50Michael Kennedy: And it just died.
- 22:51Shaun Chuah: And nobody could get it to come, it took a day or two for it to come back because somebody
- 22:56Michael Kennedy: destroyed it.
- 22:57Michael Kennedy: Well, these limits, they have a reason they're there, you know?
- 23:00Shaun Chuah: They do.
- 23:01Shaun Chuah: But when we look at the next five to 10 years of biomedical research, file storage is actually a big problem.
- 23:09Shaun Chuah: Is it? Okay.
- 23:10Shaun Chuah: Some of the newer technologies are generating like a terabyte of data for a single sample.
- 23:14Michael Kennedy: Wow. Yeah, that's absolutely crazy.
- 23:17Michael Kennedy: You know, this also goes to reproducibility and long-term viability of this research, right?
- 23:23Michael Kennedy: Because if you have 100 terabytes of data, it's one thing to say, well, here's the Excel file and here's the Parquet file and here's the Docker image that runs it.
- 23:32Michael Kennedy: Save that as a, you know, you can stamp these as like, here's what the paper was published on, right?
- 23:37Michael Kennedy: And here's the digital assets.
- 23:39Michael Kennedy: But when it's 100 terabytes, it doesn't matter if you can name it or not.
- 23:42Michael Kennedy: That's a hard thing to store.
- 23:43Shaun Chuah: Yes, definitely a big problem.
- 23:46Shaun Chuah: And I think the question then becomes what is the most valuable data that you store?
- 23:51Shaun Chuah: because perhaps you don't need to store the raw files
- 23:54Shaun Chuah: and you want to process files
- 23:56Shaun Chuah: because who wants to run another 100 terabyte pipeline anyway?
- 24:00Shaun Chuah: But yeah, these are challenging questions.
- 24:01Shaun Chuah: There are no easy answers.
- 24:03Shaun Chuah: And most groups, we do cost our data storage,
- 24:08Shaun Chuah: but for most grants, we cost it out for 10 years.
- 24:10Shaun Chuah: And beyond that, it becomes a challenge to maintain all this data.
- 24:14Michael Kennedy: Yeah. What are you going to do?
- 24:15Michael Kennedy: I guess the only bonus is in general
- 24:18Michael Kennedy: that storage is getting cheaper by a lot.
- 24:21Michael Kennedy: And I say by in general,
- 24:23Michael Kennedy: because the last couple of years
- 24:25Michael Kennedy: or last year and a half, that's not true.
- 24:26Michael Kennedy: Yeah, I was going to say the AI revolution
- 24:28Shaun Chuah: might not keep that falling price curve the same.
- 24:33Michael Kennedy: It might change things just a little bit.
- 24:36Michael Kennedy: All right, so let's talk about this Foundry project.
- 24:38Michael Kennedy: So this is sort of the next generation
- 24:40Michael Kennedy: of what you maybe dreamed of building.
- 24:44Michael Kennedy: Also maybe a little bit in the agentic age as well, right?
- 24:47Michael Kennedy: Yeah, definitely.
- 24:48Michael Kennedy: Okay, so tell us about this Foundry 120.
- 24:51Michael Kennedy: So Foundry 120.
- 24:51Michael Kennedy: People will find it at foundry120.com.
- 24:54Shaun Chuah: It's a research operating system for translational science teams.
- 24:57Shaun Chuah: So I've got to explain that a bit.
- 24:59Shaun Chuah: So translational science is basically when you're trying to discover things by recruiting
- 25:05Shaun Chuah: humans with a problem and you're taking samples, bringing them back to the lab and running all
- 25:09Shaun Chuah: sorts of experiments to just kind of understand the biology behind disease and then find out
- 25:14Shaun Chuah: whether there are mechanisms that we can target for therapeutic development and things like that.
- 25:19Shaun Chuah: So that's kind of translational science.
- 25:21Shaun Chuah: And Foundry 120 is a platform that allows teams to operate seamlessly
- 25:26Shaun Chuah: and use AI to accelerate their workflows.
- 25:29Shaun Chuah: It's built around three ideas.
- 25:31Shaun Chuah: The first idea is to organize everything.
- 25:33Shaun Chuah: So you organize your samples, your studies, your participants into a database
- 25:39Shaun Chuah: that just helps you keep track of everything.
- 25:42Shaun Chuah: And then the second bit is the idea of centralizing all your data outputs into a single platform.
- 25:47Shaun Chuah: So this will be things like clinical data, including radiology images, endoscopy videos,
- 25:54Shaun Chuah: digital pathology slides, and then the scientific outputs such as spatial transcriptomics,
- 26:00Shaun Chuah: genomics, microbiome, or all the data volume that we're seeing from all the different scientific
- 26:06Shaun Chuah: modalities are just going up exponentially. But as we know in the AIH, if you can bring all your
- 26:11Shaun Chuah: context into a single platform, then you can let AI connect to that and operate on that to answer
- 26:18Shaun Chuah: questions that researchers might have. So, I mean, I'll give you a concrete example. For example,
- 26:24Shaun Chuah: you know, if one of my scientific colleagues were looking for, you know, do we have any samples that
- 26:29Shaun Chuah: belong to a participant who's been treated with this drug? Can we find that? And historically,
- 26:35Shaun Chuah: what you would have to do is to take the clinical data set, join it with your sample database,
- 26:41Shaun Chuah: and then filter that through and find the samples that you want. And that usually would have taken
- 26:47Shaun Chuah: a couple of days to do. But this is a great use case, I think, for agentic AI, where you can just,
- 26:52Shaun Chuah: you know, access the data, put it into a sandbox, write the code to do the join, and then just give
- 26:58Shaun Chuah: you the answer that you want. So just eliminate all the steps in between and get you to the answer
- 27:03Michael Kennedy: faster. And that's the whole concept behind the platform. Sounds great. It's a really nice looking
- 27:09Michael Kennedy: web app too. What's its current status? It's available not just for you all, but for others,
- 27:15Michael Kennedy: but it doesn't have quite a just create an account, get started. So you have a request a platform
- 27:22Michael Kennedy: walkthrough. What's the situation here? Can other research teams use it? Is it a paid product? Is it
- 27:28Michael Kennedy: just sort of gated because it's not ready for people overwhelming it? So it's quite early stage
- 27:34Shaun Chuah: at the moment. So over the last six to 12 months, we've made the entire foundation generalizable
- 27:41Shaun Chuah: beyond just our group and beyond just disease. So what I mean by that is, you know, for another
- 27:46Shaun Chuah: group to join, they would need the access controls to be in place. So they need a way of managing
- 27:51Shaun Chuah: their team, being able to assign permissions to individuals, you know, without me having to do it
- 27:58Shaun Chuah: But I think more importantly is that onboarding a team into this platform is actually quite a hands-on process because it really depends on what data you're handling, the volumes that you're dealing with, what modalities of data you need to do.
- 28:13Shaun Chuah: And also the other major thing that we have to look at if you want to join the platform is the governance around your data.
- 28:21Shaun Chuah: So in clinical research, there are strict rules around how you handle data and where that data can sit, where can it be processed.
- 28:28Shaun Chuah: And these are subject to your research ethics approval.
- 28:33Shaun Chuah: So before a team can join us, we do want to review all those things to make sure that we're in compliance before anybody can join.
- 28:40Shaun Chuah: So that's the reason why it's not just a simple, you know, I can sign up, pay a monthly fee and start using the platform.
- 28:47Shaun Chuah: There's a lot more issues that have to be looked at before we can bring a team on board.
- 28:52Shaun Chuah: But we're willing to do the work to kind of review the situation and start getting other people access to it.
- 28:59Michael Kennedy: Makes a lot of sense.
- 28:59Michael Kennedy: You've got IRB research stuff.
- 29:02Michael Kennedy: You've got HIPAA and the equivalent in all the other countries.
- 29:07Michael Kennedy: And yeah, so you don't want to get in trouble.
- 29:10Shaun Chuah: Yes.
- 29:10Shaun Chuah: And you did mention earlier that this is quite tied into Azure at the moment.
- 29:14Shaun Chuah: And that's because we run on the University of Glasgow's Azure Tenancy.
- 29:19Shaun Chuah: So everything has to be located specifically for our studies within the UK data centers and things.
- 29:25Shaun Chuah: So we have all the controls in place to do that.
- 29:28Shaun Chuah: And that's backend infrastructure for the people who are listening on the podcast.
- 29:34Michael Kennedy: This portion of Talk Python is brought to you by Talk Python Courses.
- 29:38Michael Kennedy: Here's the thing that always bug me.
- 29:40Michael Kennedy: You finish one of our courses, that's hours of video, a pile of code you actually wrote,
- 29:44Michael Kennedy: and real skills you didn't have a month before, and then nothing happens.
- 29:48Michael Kennedy: No paper, no credential, nothing to show for it.
- 29:51Michael Kennedy: So we fixed it.
- 29:52Michael Kennedy: Every Talk Python course now generates a completion certificate automatically.
- 29:56Michael Kennedy: Go to your account page in your dashboard section,
- 29:59Michael Kennedy: scroll down to your completed courses, and click Certificate.
- 30:02Michael Kennedy: That's the whole process.
- 30:04Michael Kennedy: Two things you can do with these course completion certificates.
- 30:07Michael Kennedy: download the full PDF, which is handy if your employer reimburses training or gives you credit
- 30:12Michael Kennedy: for finishing it. Or you can make the certificate public and hit share on LinkedIn, which adds it to
- 30:18Michael Kennedy: your LinkedIn profile under licenses and certifications. Not a poster that scrolls away
- 30:22Michael Kennedy: in a day, an actual credential sitting on your profile where your manager and recruiters can see
- 30:27Michael Kennedy: it. Plus, if you've been taking our courses for a while, you've probably earned several of these
- 30:32Michael Kennedy: without even knowing they existed. Just visit training.talkpython.fm/account and collect
- 30:37Michael Kennedy: them. Thanks to all of you who have taken a Talk Python course. It's a great way to support the podcast.
- 30:44Michael Kennedy: What a different time it is for universities. And I think they're going through a similar
- 30:49Michael Kennedy: upheaval, I guess is the word. When I was in university, and we're talking like 90s,
- 30:54Michael Kennedy: there was a giant Cray supercomputer or maybe a couple of supercomputers at the heart of the
- 31:00Michael Kennedy: university in some basement, and you could get access to that if you needed mega computing
- 31:05Michael Kennedy: resources. And now it's just scaled into some ginormous cloud infrastructure. And the limit
- 31:12Michael Kennedy: is really just how much are they going to give you, not what does the university have in its
- 31:16Michael Kennedy: basement or something like that, which is really interesting. Well, I mean, there are still some
- 31:21Shaun Chuah: universities that are trying to build their own clusters. But I think if you look at the economics
- 31:25Shaun Chuah: of it, it is way more cost efficient to be running on the cloud compared to on the cluster, because
- 31:32Shaun Chuah: many of the analysis that we do in the universities once off. So you might process a ton of data,
- 31:38Shaun Chuah: but that might be after a year or two years before you get that amount of data to process.
- 31:42Shaun Chuah: So if you look at a workload, the IT workload within the university, I think the cloud is
- 31:46Shaun Chuah: quite an attractive proposition. That's an interesting angle. Yeah, of course, because
- 31:51Michael Kennedy: you're going to process your samples. Maybe you're like, ah, we really want to try a different
- 31:55Michael Kennedy: algorithm and you'll run it all through again. But generally speaking, it's not steady state.
- 32:00Michael Kennedy: Whereas if you're going to go buy your own hardware and then put it in a basement and it's kind of a steady state situation, then you could really predict, you know, we're saving, you know, 50% less expensive to run on this.
- 32:11Michael Kennedy: And just, yeah, didn't really think about that.
- 32:13Michael Kennedy: And so I said, there's another such wave coming because this was, you know, when was the cloud?
- 32:17Michael Kennedy: The cloud is 10 years ago, 2008, I think.
- 32:21Michael Kennedy: A little bit, a little bit, really caught going a little bit after that.
- 32:25Michael Kennedy: But it's been a little while.
- 32:27Michael Kennedy: Now we've got all this AI stuff going and we're proving, you know, unsolved airdosh mathematical problems and all sorts of things, you know, with AI and other, you know, trying to do protein folding and other things that are really computational, but also really different.
- 32:45Michael Kennedy: And so I feel like this whole AI wave, especially the agentic AI, is going to roil what's happening at the universities all over again.
- 32:54Shaun Chuah: I mean, if you look at the data center economics around AI, it's quite interesting, actually.
- 32:59Shaun Chuah: Like a single rack from Nvidia is like a couple million dollars, right?
- 33:03Shaun Chuah: It's crazy.
- 33:04Shaun Chuah: And you need a power plant to plug it into.
- 33:07Shaun Chuah: I can't see any university building their own AI data center in the future.
- 33:11Shaun Chuah: So I think cloud adoption is inevitable in the sense that the economics of trying to
- 33:17Shaun Chuah: use agentic AI doesn't make sense to try and build your own AI computer, unless you have
- 33:23Shaun Chuah: specific governance requirements, which do apply to certain studies and certain aspects of work.
- 33:30Shaun Chuah: But even then, you might contract a local AI company to do it and then share it between
- 33:36Shaun Chuah: businesses and universities rather than having a university do it on its own.
- 33:40Michael Kennedy: Yeah. People talk about the AI bubble. I don't know if there's actually an AI bubble. This stuff
- 33:45Michael Kennedy: is so productive. The last bubble we had that was tech-related was the dot-com bubble. And there
- 33:51Michael Kennedy: was really stupid stuff with a lot of money spent on it you know like there's always the pest.com or
- 33:57Michael Kennedy: the weird investments you know thing and people are spending millions of dollars on ads to just
- 34:02Michael Kennedy: like have dancing monkeys running it was a weird time and this is also a weird time but I feel like
- 34:06Michael Kennedy: there's actually something legitimately at the core of it that is really changing the way people
- 34:12Michael Kennedy: work and and do research and so on so I don't know it's going to bust if there is a bubble and I don't
- 34:17Michael Kennedy: know if the bubble is going to burst. But if it does, I think that's also going to create an
- 34:22Michael Kennedy: explosion of local AI. You know, all of a sudden, right now, if you have to pay $100 for your
- 34:28Michael Kennedy: Anthropic subscription, that's totally reasonable. But if that becomes a $2,000 a month bill,
- 34:32Michael Kennedy: well, then buying a $10,000 workstation that can do legit local AI is all of a sudden a bargain,
- 34:38Michael Kennedy: you know what I mean? So it could be in the future that there's sort of a coming back to
- 34:43Shaun Chuah: local compute as well for AI, maybe. Yeah, I mean, the small models are getting more and more capable
- 34:48Shaun Chuah: as well. So not every workload needs a frontier model at the moment. So what you're saying is
- 34:53Shaun Chuah: probably true in the sense that there is definitely going to be a role for local AI.
- 34:57Michael Kennedy: I think Gemma maybe works this way, but certainly I can also see a world where there's kind of an
- 35:02Michael Kennedy: orchestration layer and then 100 or 50 specialists that get selected, right? Right now, if you ask a
- 35:10Michael Kennedy: frontier models to do something on genomics, it uses the same giant model as it would to use to
- 35:16Michael Kennedy: like write Shakespeare derived things. Right. But if you had one that just is trained on genomics,
- 35:23Michael Kennedy: you could have a much smaller model that could run locally and you could say, okay,
- 35:27Michael Kennedy: this part of the question goes to this, this sub model. And I don't know, it's going to be
- 35:31Michael Kennedy: interesting where it goes. And that let's, so coming back to it, let's, let's talk a little
- 35:35Michael Kennedy: bit about Foundry. There's a little demo you've got going right here at the beginning. Let me see
- 35:40Michael Kennedy: if I can go to the front of it. And maybe, I guess there's the stuff you talked about before,
- 35:46Michael Kennedy: the sample gathering and organizing and all that kind of stuff, right? And then on the back of that,
- 35:53Michael Kennedy: once you get it all done, there's this local tool using AI that understands all of your research
- 36:00Michael Kennedy: data. So maybe tell us about the data collection and the non-AI bit, and then it'll be fun to talk
- 36:07Michael Kennedy: about the AI because it's kind of non-standard. It's kind of powerful. Yeah, let's talk about the
- 36:11Shaun Chuah: data bit because that has been one of the most difficult problems I've been thinking about for
- 36:15Shaun Chuah: the last few years is how do we aggregate all these types of data sets into some kind of a common
- 36:22Shaun Chuah: model that an AI... Well, nowadays we can use AI, but it still applies to humans. So when my
- 36:29Shaun Chuah: colleagues are looking for data and trying to match, you know, data set A to B, what is the
- 36:36Shaun Chuah: way we do it? And at the end of the day, I think, you know, we've brought down everything to a model
- 36:42Shaun Chuah: where all data exists in files. So even tabular data, we keep it in CSV file. Well, historically,
- 36:48Shaun Chuah: we've tried to put, you know, tabular data into the database. But I think going forward,
- 36:53Shaun Chuah: we're just going to keep the files because that's the universal denominator. So whether you're
- 36:58Shaun Chuah: dealing with endoscopy videos, MRI images, digital pathology slides. Everything's a file, and each
- 37:05Shaun Chuah: file has each set of, you know, each type of data has its own file structure, but the common language
- 37:11Shaun Chuah: at the end of day is files. So we put files, and the thing that makes the files useful is putting a
- 37:16Shaun Chuah: layer of metadata and relationship data on top of the file. So I think by coupling the two of them,
- 37:21Shaun Chuah: we found this common model that can generalize across all the data sets that we use.
- 37:26Michael Kennedy: Very interesting. And, you know, to your point of just keep it in the files, you know, with things like DuckDB and other really cool things and Parquet files, you can kind of treat them like databases already. So I don't know if people know, but with DuckDB, you can say things like select star from read Parquet input, you know, which is pretty insane.
- 37:47Shaun Chuah: Yeah, Parquet is great. We use it as well.
- 37:49Michael Kennedy: Yeah. So also things like, what do you think about little SQLite files or DuckDB file where there's these just embedded no server databases?
- 38:01Michael Kennedy: And I think there's probably some really good use cases and research for that.
- 38:05Shaun Chuah: Potentially, you know, SQLite's a very interesting concept of having an entire database in a file.
- 38:13Shaun Chuah: But when I think of my end users, my colleagues who are running science experiments and such,
- 38:18Shaun Chuah: they're used to dealing with Excel and CSV files.
- 38:21Shaun Chuah: So we try to keep the same file format everybody's familiar with.
- 38:25Shaun Chuah: But I think for some of the future work that we're going to do, we can use some of these
- 38:30Shaun Chuah: more specific file formats.
- 38:32Shaun Chuah: Because as you know, if everything's a file, then an AI agent can run across all the files
- 38:37Shaun Chuah: and pull out the data that it needs for what it needs to do.
- 38:40Michael Kennedy: Yeah, absolutely.
- 38:41Michael Kennedy: Yeah, sure.
- 38:41Michael Kennedy: If you're giving them the files directly, here's either your Excel workbook or here's your CSV file.
- 38:49Michael Kennedy: But if it's coming in and out of a platform like Foundry 120, you can store it as one thing and then export it or import it as another, right?
- 38:57Shaun Chuah: Yeah. I mean, so fundamentally, what we do is that the files sit in Azure Blob Storage.
- 39:04Shaun Chuah: And when Helix, our AI agent, wants to process a file, it spins up a VM.
- 39:11Shaun Chuah: The file gets transferred from the Azure storage into the VM.
- 39:15Shaun Chuah: The AI sends its analysis code, whether it's in Python or any other language, into the VM.
- 39:21Shaun Chuah: The computation happens, and then we return the output to Helix and store the output back in Azure storage.
- 39:28Shaun Chuah: So by doing that, we put the sandbox guardrail around the AI agent for security purposes.
- 39:35Shaun Chuah: but it also allows us to enable the AI to do processing,
- 39:40Shaun Chuah: generate new files, store it.
- 39:41Shaun Chuah: And I think that's the kind of model that works for us in Foundry
- 39:45Shaun Chuah: while keeping it all within an institutional Azure environment
- 39:48Shaun Chuah: and also allows us to enforce all the role-based access controls
- 39:51Shaun Chuah: that we need for our team members.
- 39:54Shaun Chuah: So when they query the AI, the AI can only see the same files
- 39:57Shaun Chuah: that they would have normal access to.
- 40:01Shaun Chuah: And I think that's the design that's very specific for this
- 40:04Shaun Chuah: because of the governance requirements that we have around the data sets that we use.
- 40:08Michael Kennedy: These AIs are sneaky.
- 40:10Michael Kennedy: They will find a way to access the files.
- 40:12Michael Kennedy: I mean, the really big headline cases are like,
- 40:16Michael Kennedy: OpenAI was training its model and it hacked multiple systems
- 40:20Michael Kennedy: so that it could get to the answers on Hugging Face
- 40:22Michael Kennedy: instead of just figuring out the, solving the test, right?
- 40:25Michael Kennedy: It's like a teenager that doesn't really care about the work is just doing it.
- 40:29Michael Kennedy: But what I was thinking was, you know, I was working with Claude
- 40:33Michael Kennedy: and I had some question about my code
- 40:35Michael Kennedy: and it said something to the effect of like,
- 40:37Michael Kennedy: oh yeah, you have two GitHub issues on this.
- 40:40Michael Kennedy: I never gave it direct access to GitHub.
- 40:42Michael Kennedy: I never gave it access to GitHub.
- 40:43Michael Kennedy: I'm like, how does it know that?
- 40:45Michael Kennedy: It's quoting like GitHub stuff,
- 40:47Michael Kennedy: not through Git history locally,
- 40:49Michael Kennedy: but it like reading the issues and the PRs.
- 40:51Michael Kennedy: I'm like, how does it do?
- 40:52Michael Kennedy: And then I realized I had the GitHub CLI installed
- 40:54Michael Kennedy: and it's like, well,
- 40:56Michael Kennedy: let me see if the GitHub CLI is installed.
- 40:57Michael Kennedy: Oh, and look, it's already automatically authenticated
- 41:00Michael Kennedy: because Michael logged in at some point
- 41:02Michael Kennedy: to the CLI. And so it was just using the CLI that it's also, you know, like, oh, let me check that
- 41:07Michael Kennedy: on the server for you. I'm like, excuse me. Yeah. Yeah. On your production server, you're doing this.
- 41:11Michael Kennedy: How you're not supposed to be there. Why? And you know, it's just like, it's realized in the code
- 41:15Michael Kennedy: somehow it's figured out that it can SSH. So you got to be really careful about those things. Right.
- 41:21Michael Kennedy: Cause they're not malicious. They're just like, you asked me to solve a problem. And if I can get
- 41:25Michael Kennedy: to that, I got a better answer, more concrete data. And, but it could also go and we fixed the problem
- 41:30Michael Kennedy: by resetting the database.
- 41:31Michael Kennedy: Like, oh, no, you didn't.
- 41:34Shaun Chuah: Yeah, so for us...
- 41:36Michael Kennedy: So how do you do that kind of stuff in your project?
- 41:39Shaun Chuah: So it's the backend.
- 41:40Shaun Chuah: So Django enforces the permissions.
- 41:44Shaun Chuah: And actually, so when the AI stages data and stages code,
- 41:49Shaun Chuah: that actually goes through Django first.
- 41:51Shaun Chuah: So the AI is not calling directly into the files,
- 41:54Shaun Chuah: is not calling directly into a compute environment.
- 41:56Shaun Chuah: And then Django screens all that code
- 42:00Shaun Chuah: and activates the VM.
- 42:02Shaun Chuah: So we've actually put Django in as a security guard
- 42:06Shaun Chuah: between your AI and the raw data and the compute environments
- 42:11Michael Kennedy: that we run in.
- 42:11Michael Kennedy: MARK MANDEL: Oh, very cool.
- 42:12Michael Kennedy: So Foundry 120 is also written on Django,
- 42:16Michael Kennedy: but it's more Django REST framework and TypeScript React.
- 42:20Michael Kennedy: Is that the story?
- 42:21Shaun Chuah: FRANCESC CAMPOY: Yep, that's right.
- 42:22Shaun Chuah: So on the front end, it's-
- 42:23Shaun Chuah: MARK MANDEL: Yeah, so tell us a bit about it.
- 42:24Shaun Chuah: FRANCESC CAMPOY: So the old app that we used to run off
- 42:28Shaun Chuah: was just pure Django.
- 42:30Shaun Chuah: So we use Django templates to handle all the registration and the CRUD workflows.
- 42:36Shaun Chuah: But as we move into this age of AI, AI, as you know, is pretty asynchronous.
- 42:40Shaun Chuah: So every call you make takes, you know, sometimes it feels like forever to come back with a response.
- 42:46Shaun Chuah: And when we think about the async nature of all the calls that have to be made to run an AI conversation or agent loop,
- 42:53Shaun Chuah: TypeScript and JavaScript tends to come to be more suitable for that kind of application.
- 42:59Shaun Chuah: So we run both.
- 43:01Shaun Chuah: So we have TypeScript on the front end, Django on the back end.
- 43:03Shaun Chuah: I think it's a great setup.
- 43:04Shaun Chuah: It gives us access to the entire Python data science ecosystem, while also giving us all
- 43:10Shaun Chuah: the TypeScript and JavaScript ecosystem for handling all these asynchronous work and the
- 43:16Shaun Chuah: interactivity that we want on the front end when you start running AI applications.
- 43:20Michael Kennedy: Makes sense.
- 43:20Michael Kennedy: Now, what I'm about to ask you doesn't really make sense because of the AI angle and that
- 43:25Michael Kennedy: kind of stuff.
- 43:26Michael Kennedy: But if you think about scaling this out to other research projects and other groups, have you considered looking at things like PyOxid, Iodide, sorry, and things like JupyterLite for running some of that compute on the front end on people's browsers so that you don't have to basically pay the compute cost?
- 43:47Shaun Chuah: So that's an interesting question because now you're asking me about the compute architecture that we have in the backend, which is actually pretty heavy.
- 43:57Shaun Chuah: So we've mentioned that some of the files that we have might be gigabytes in size and the compute power you need to run genomics pipeline is pretty high.
- 44:08Shaun Chuah: So for a concrete example, so in the backend of our Foundry system, we have access to about 350 CPUs on Azure.
- 44:16Shaun Chuah: So if you ask Helix for a very heavy analysis, say on a big transcriptomic data set of something, through Django, we are able to orchestrate up a heavy compute job, which will then go off and run.
- 44:29Shaun Chuah: It'll spin up as many CPUs as it needs to, to process the job, and then returns the output later on once it's all done.
- 44:36Shaun Chuah: And that process can take half an hour, a couple of hours.
- 44:40Shaun Chuah: So it might come back really late.
- 44:42Shaun Chuah: And because of that model that we're running, actually, the kind of computational requirements we have is pretty high.
- 44:48Shaun Chuah: And so we don't really want to run compute on people's laptops.
- 44:53Shaun Chuah: We want to run it in the cloud to handle the data sets that we're dealing with.
- 44:57Shaun Chuah: So that's a very specific design choice.
- 45:00Shaun Chuah: And it's all to do with the kind of data that we're handling and the need to throw a lot of RAM and a lot of CPU at it.
- 45:06Michael Kennedy: Sure. And if your individual files are five gigs, that's a lot of just bandwidth costs.
- 45:11Michael Kennedy: So it's like every time you want to load something, you got to pull that five gigs out of the cloud, which has different costs and so on.
- 45:18Shaun Chuah: Right. Well, yeah. And many of the biological data problems are parallel.
- 45:22Shaun Chuah: Right. So you've got 200 participants each of five gigs.
- 45:25Shaun Chuah: You might as well spin up 200 machines and process all of them in parallel.
- 45:29Shaun Chuah: So all these problems that we have are very paralyzable.
- 45:32Shaun Chuah: And the cloud is a great platform to do that in because you can do it on demand, on the fly, spin it up, finish processing and tear it all down.
- 45:39Shaun Chuah: So minimal cost for, you know, maximum impact.
- 45:42Shaun Chuah: That's what we're going for in the back end.
- 45:44Michael Kennedy: Right. That's the bursting component that you talked about.
- 45:47Michael Kennedy: I do think JupyterLite is pretty interesting with the local Piodide execution and all that kind of stuff.
- 45:54Michael Kennedy: Just the fact that that's possible is it's pretty neat.
- 45:56Michael Kennedy: But yeah, I can see that it really doesn't apply for what you're doing here.
- 45:59Shaun Chuah: Well, I haven't talked to you about the front end of sample operations, right?
- 46:05Shaun Chuah: Because we're running a sample collection in the hospitals across Scotland.
- 46:11Shaun Chuah: And I must say the frontline IT infrastructure is not always the best.
- 46:14Shaun Chuah: So by having all our compute power on the server side, we can guarantee a speedy experience for our teams working at the front end.
- 46:21Shaun Chuah: So we're not depending on the front end's computational power.
- 46:25Michael Kennedy: I'll tell you what, my experience looking over the shoulder at the software that doctors and nurses use,
- 46:31Michael Kennedy: there's a lot of room for improving the user experience.
- 46:35Shaun Chuah: Oh, definitely.
- 46:36Shaun Chuah: I mean, part of the reason we went Django as well is because it was server-side.
- 46:40Shaun Chuah: And, you know, on the front end, you know, we have some computers I've used in hospitals.
- 46:46Shaun Chuah: They go back to 2010, right?
- 46:48Shaun Chuah: You know, we're running on Intel chips like 20 years old.
- 46:52Michael Kennedy: Oh, my goodness.
- 46:54Michael Kennedy: Yep. And there's a lot of Cisco, remote, whatever there. So let's talk about the AI side now. So we talked about the data, the data handling, some of the tech behind Foundry 120. But I think one of the cornerstones is this Helix AI. Now, when people think there's a bit of a problem here, Sean, like people talk about AI, and there's two or three different things it could be, and they all use the same word.
- 47:18Michael Kennedy: And they think they're talking about the same thing, but they're actually talking past each other.
- 47:22Michael Kennedy: You know, like I asked ChatGPT for this math problem and it got it wrong.
- 47:27Michael Kennedy: It's like, yeah, but we also built incredible software with this other thing that we also call AI.
- 47:32Michael Kennedy: And, you know, it's always right because it writes Python to actually answer its questions.
- 47:36Michael Kennedy: And yeah, it's just really interesting.
- 47:38Michael Kennedy: So there's an AI that you've mentioned a couple of times in here that will help researchers ask questions, find data, look for trends and those kinds of things.
- 47:48Michael Kennedy: And this, I think, you give me your thoughts on this, but my feeling is that it's a little bit like a Claude code or a codex.
- 47:57Michael Kennedy: One of these sort of tool using self-correcting AIs, not just a chat LL.
- 48:04Shaun Chuah: Yeah. So Helix is an agentic AI system. And I think the problem that you're describing is
- 48:12Shaun Chuah: because most people's experience of AI is chatbots. You go to chatgpt.com, you ask a question,
- 48:17Shaun Chuah: it gives you an answer. But actually the stuff that we're seeing that makes us think that AI
- 48:22Shaun Chuah: might not be a bubble is all this agentic AI stuff that we're seeing. So Claude Code, codecs,
- 48:27Shaun Chuah: agentic AI is a very different paradigm from chatbots, right? In agentic AI, the AI,
- 48:33Shaun Chuah: you give the AI a task, it looks at its tool set, it looks at what you're trying to do,
- 48:38Shaun Chuah: and then it goes away and works at it until it gives you an answer. And that's incredibly powerful.
- 48:42Shaun Chuah: Whereas I think, you know, 95% of people's experience of AI is almost like a Google search.
- 48:48Shaun Chuah: You go to ChatGPT and you ask, hey, what's the directions to this place or what's the recipe for
- 48:52Shaun Chuah: that? And therefore, there's this huge gap in understanding of how powerful agentic AI systems
- 48:57Shaun Chuah: can be. So Helix is really one of the, we think it's one of the first demonstrations of how you
- 49:03Shaun Chuah: would apply agentic AI in the science world. And a lot of the scientists that I'm showing this
- 49:10Shaun Chuah: system to, this is the first time that they're seeing an agentic AI system. So, you know.
- 49:15Shaun Chuah: What's their reaction?
- 49:18Shaun Chuah: I think everybody's quite excited. They're like, oh, that used to take me like months to do,
- 49:22Shaun Chuah: or it took me a lot of emails to do.
- 49:24Shaun Chuah: Just doing it in minutes right now,
- 49:26Shaun Chuah: it's quite amazing.
- 49:28Shaun Chuah: And historically, every team member
- 49:30Shaun Chuah: that's joined our team,
- 49:31Shaun Chuah: I've had to sit down with them
- 49:32Shaun Chuah: and teach them how to use Python or R
- 49:34Shaun Chuah: to get a graph out of Excel file or something.
- 49:38Shaun Chuah: And now you can just hand it off to Helix,
- 49:40Shaun Chuah: let it do it, let it write the code.
- 49:42Shaun Chuah: And then what you do in this situation
- 49:45Shaun Chuah: is that you've got to verify that it's correct.
- 49:47Shaun Chuah: So the work changes.
- 49:49Shaun Chuah: So instead of you as a researcher
- 49:50Shaun Chuah: writing the analysis code,
- 49:52Shaun Chuah: You get the AI to do the analysis for you.
- 49:54Shaun Chuah: And then what you have to do is verify that it is correct.
- 49:56Shaun Chuah: So it's a very different way of working.
- 49:58Shaun Chuah: But it's incredibly powerful.
- 50:00Shaun Chuah: It's much faster.
- 50:01Shaun Chuah: It's taken a lot of road work out of everybody's life.
- 50:04Shaun Chuah: So I think everybody's really excited about it.
- 50:06Michael Kennedy: I would imagine.
- 50:07Michael Kennedy: I'm going to have you talk us through just this sort of workflow that it goes through
- 50:10Michael Kennedy: real quick.
- 50:11Michael Kennedy: But that's the big danger is that it just hallucinates, which I don't know, that's a
- 50:16Michael Kennedy: weird word.
- 50:16Michael Kennedy: It's just it's wrong, whatever, about the actual data.
- 50:21Michael Kennedy: Do you all use RAG, the sort of training on the data,
- 50:25Michael Kennedy: or is it just really the tool-using components that make it go?
- 50:30Shaun Chuah: It depends on what you mean by RAG,
- 50:32Shaun Chuah: because we use tools to ground the AI.
- 50:36Michael Kennedy: Yeah, I'm thinking like going and actually retraining the model
- 50:41Michael Kennedy: on the research files and data,
- 50:43Michael Kennedy: which I'm guessing from looking at it,
- 50:45Michael Kennedy: it doesn't look like it.
- 50:46Michael Kennedy: It looks more of a Claude Code tool-using style.
- 50:49Shaun Chuah: Yeah, it is more Claude Code style.
- 50:52Shaun Chuah: we don't train the AI specifically for it.
- 50:56Shaun Chuah: We can swap the base models as newer versions come up.
- 50:59Shaun Chuah: Because if supervised fine-tuning or doing some RL on a base,
- 51:06Shaun Chuah: LLM will cost you a lot of money.
- 51:09Michael Kennedy: And it's not generalizable, right?
- 51:11Shaun Chuah: Yeah, and you need the data to train it on.
- 51:15Shaun Chuah: And that's not easy to make as well.
- 51:18Shaun Chuah: So yeah, so given the rapid progress,
- 51:20Shaun Chuah: we want a model where we can just update to the latest model
- 51:23Shaun Chuah: and just leverage the latest changes
- 51:28Shaun Chuah: that the big labs are coming out with.
- 51:30Michael Kennedy: Amazing.
- 51:30Michael Kennedy: I think that's the right way.
- 51:31Michael Kennedy: So if you go to foundry120.com,
- 51:34Michael Kennedy: there's a one-minute little screencast,
- 51:37Michael Kennedy: silent screencast of it going.
- 51:38Michael Kennedy: So I'm going to, Sean, I'm going to hit play
- 51:40Michael Kennedy: and you kind of just narrate what's happening.
- 51:42Michael Kennedy: I think that'll give people an interesting sense
- 51:44Michael Kennedy: of what this thing is about
- 51:45Michael Kennedy: and give us some talking points here.
- 51:47Shaun Chuah: So we asked Helix, you know, what plasma samples do we have for the music study?
- 51:51Shaun Chuah: And can you break them down by disease groups?
- 51:53Shaun Chuah: So to get to that answer, you need to join the clinical data frame with your sample database.
- 51:58Shaun Chuah: And then you got to work out which samples are unused, you know, what sample type it is.
- 52:02Shaun Chuah: And then for the disease groups, it's got to inspect the clinical data frame and figure
- 52:05Shaun Chuah: out how many disease groups do you have in your disease column.
- 52:08Shaun Chuah: And then you've got to do the join and the grouping.
- 52:11Shaun Chuah: So in this demo, it's gone ahead and done it.
- 52:14Shaun Chuah: And it will come back and tell you, well, within our database, we've got like 4,000 samples belonging for Crohn's disease patients and 2,000 with ulcerative colitis.
- 52:23Michael Kennedy: Yeah.
- 52:23Michael Kennedy: And since people are just listening, let me just go back, just narrate really quick, like fill in a little background visuals.
- 52:29Michael Kennedy: You can see it.
- 52:29Michael Kennedy: It'll, using the different tools, it'll be like, get sample and it'll run for a second.
- 52:33Michael Kennedy: Then it'll write some Python code to do a thing.
- 52:36Michael Kennedy: And then it'll do some more data access and then some more code.
- 52:40Michael Kennedy: So it's primarily orchestrating a bunch of the tools and the code writing that it already knows, right?
- 52:47Michael Kennedy: It's not just reading 100 terabytes of data or whatever.
- 52:51Shaun Chuah: No, you can't read all that data because the context window of your AI is limited.
- 52:57Shaun Chuah: So you can't just dump all the raw Excel file into the AI and say,
- 53:00Shaun Chuah: five video samples.
- 53:03Michael Kennedy: Yeah, exactly.
- 53:03Michael Kennedy: I mean, even the really big ones have a million context right now.
- 53:06Michael Kennedy: All right, carrying on.
- 53:07Michael Kennedy: So then it's off to get a picture, right?
- 53:09Shaun Chuah: So the next question, we've asked it to do some graphing.
- 53:12Shaun Chuah: So we've asked to plot CRP, which is a blood test against cell-free DNA,
- 53:16Shaun Chuah: which is a scientific experimental output.
- 53:19Shaun Chuah: So to do this, it's got to go and find your clinical data frame
- 53:22Shaun Chuah: and join it with your science data.
- 53:24Shaun Chuah: And it comes up, writes some matplotlib code
- 53:27Shaun Chuah: and gives you a graph back and tell you what it found.
- 53:30Shaun Chuah: So that's what it does.
- 53:32Shaun Chuah: In this second segment, the AI runs into an error
- 53:36Shaun Chuah: and it recovers from the error.
- 53:38Shaun Chuah: So the AI is able to read the output of the tool, correct, it's working and come back to you.
- 53:42Shaun Chuah: So that's just a demonstration of how an agentic AI system looks like.
- 53:46Michael Kennedy: Yeah, good narration.
- 53:48Michael Kennedy: And people can go and play that for themselves.
- 53:49Michael Kennedy: But I think that's the big difference between what you're saying, just the chatbot as kind of a better Google, right?
- 53:55Michael Kennedy: It's not that much of the AI thinking.
- 53:57Michael Kennedy: It's a whole bunch of the AI using the tools.
- 54:00Michael Kennedy: And the tools are deterministic, right?
- 54:03Shaun Chuah: The tools are deterministic.
- 54:04Shaun Chuah: And actually designing the tools is one of the most challenging things to do is like,
- 54:09Shaun Chuah: how many tools do you expose?
- 54:10Shaun Chuah: What should each tool do?
- 54:11Shaun Chuah: And what's a logical set of tools?
- 54:13Shaun Chuah: And how do you make sure that the AI picks them correctly?
- 54:16Shaun Chuah: So I think tool design itself is a huge topic of how you do it.
- 54:22Shaun Chuah: But because the tools run on the backend, we can then enforce the RBAC controls on the
- 54:26Shaun Chuah: tools itself.
- 54:27Shaun Chuah: So you can guarantee that your data access is, you know, security around it is solid.
- 54:33Michael Kennedy: Have you thought about adding an MCP server to it?
- 54:36Michael Kennedy: So then people can just within their own AI or whatever,
- 54:40Michael Kennedy: just, hey, what does Foundry say about this?
- 54:42Shaun Chuah: Yeah, MCP is interesting.
- 54:44Shaun Chuah: But I think one of the limiting things for us using MCP
- 54:47Shaun Chuah: is the governance around it,
- 54:48Shaun Chuah: in the sense that we are not allowed to just put data
- 54:52Shaun Chuah: into a Claude Code and send it across to Anthropic.
- 54:55Shaun Chuah: Whereas within this system,
- 54:57Shaun Chuah: all inference happens in Microsoft Azure
- 55:00Shaun Chuah: and it's GDPR compliant,
- 55:01Shaun Chuah: which in the UK is important for us from a research perspective.
- 55:06Michael Kennedy: So in this...
- 55:07Michael Kennedy: It's also important.
- 55:08Michael Kennedy: It applies to the US companies as well,
- 55:10Michael Kennedy: if they have European customers.
- 55:12Shaun Chuah: Yeah, so because of regulatory compliance things,
- 55:15Shaun Chuah: we need to make sure that we know where the inference is running
- 55:18Shaun Chuah: and we can guarantee that inference all runs within us,
- 55:21Shaun Chuah: you know, because we have got the platform controls of Azure,
- 55:23Shaun Chuah: we can guarantee where everything happens.
- 55:26Shaun Chuah: And that allows us to actually let the AI safely operate on our data.
- 55:29Michael Kennedy: I see.
- 55:29Michael Kennedy: So maybe you're using a data center in Ireland for your data so it doesn't leave the UK or
- 55:34Michael Kennedy: something like that.
- 55:35Shaun Chuah: Yeah, we run most of the things in the UK South data center.
- 55:38Shaun Chuah: For EU compliance, we run it in the Sweden data center.
- 55:41Shaun Chuah: So that's where everything happens at the moment.
- 55:44Michael Kennedy: Yeah, that makes a lot of sense.
- 55:46Michael Kennedy: Let's zoom out a little bit.
- 55:48Michael Kennedy: You've been working on this project for six plus years now.
- 55:51Michael Kennedy: You've taken it from working with books to write the Django app to integrating to the
- 55:56Michael Kennedy: cloud, Microsoft Foundry, and Azure, and all this tool using AI. What do you see for research,
- 56:04Michael Kennedy: either happening now or in the next couple of years with all this kind of stuff coming along?
- 56:09Shaun Chuah: Yeah, I mean, I think, you know, we're all very excited about the potential of agentic AI to
- 56:14Shaun Chuah: accelerate a lot of the research workflows that we see. And, you know, hopefully, you know, we get
- 56:20Shaun Chuah: to discoveries faster because drug discovery is a very long process. And I think agentic AI has
- 56:27Shaun Chuah: absolutely a role to play in shortening some of these bottlenecks that we face. So I think it'd
- 56:35Shaun Chuah: be very exciting to see. I think agentic AI is going to transform how we do science, how we operate
- 56:41Shaun Chuah: also in the clinical world. So I see a lot of potential, but the real world is going to take
- 56:46Shaun Chuah: a while to catch up to where the capabilities are today. So I think most people on this podcast
- 56:52Shaun Chuah: would have used coding agents, but I can tell you that almost everybody else in the population has
- 56:58Shaun Chuah: never touched a coding agent. So the gap between what agentic AI systems can do and what everybody's
- 57:03Shaun Chuah: understanding of AI is still very wide. And there's still a lot more work to do to teach people how to
- 57:09Shaun Chuah: use the systems, what they're capable of, where the limitations are, and how do you apply it to your
- 57:13Michael Kennedy: work. Do you think it can be reliable? Like, do you think we can trust the results and answers
- 57:18Michael Kennedy: we're getting from things like Helix and other tools that are working on us? Well, hopefully,
- 57:24Shaun Chuah: as things improve over the coming years, the reliability will go up. I mean, personally,
- 57:30Shaun Chuah: you know, the coding agents are still not 100% reliable. You know, even like the best models,
- 57:34Shaun Chuah: like Opus and Fable, they still can make mistakes. So we're not quite past the reliability threshold
- 57:40Shaun Chuah: yet. So we do have to be aware. And I think understanding what you're trying to do is
- 57:46Shaun Chuah: actually very important today compared to, say, five years ago, because you have to really
- 57:50Shaun Chuah: understand what you're trying to do to be able to supervise an AI to do what you were going to do.
- 57:55Michael Kennedy: I totally agree with what you said. But the alternative is to have a human do it.
- 57:59Michael Kennedy: And humans are also not 100% reliable. There's recently been this dust up with the Linus Torvalds
- 58:05Michael Kennedy: over about using, I forgot the name. There was some AI that they're using as a pre-screen for PRs
- 58:12Michael Kennedy: for the Linux kernel. And some people were like, we're not using it. And it's like, look, this thing
- 58:16Michael Kennedy: is at least as good as the people often doing it. And it's an accelerator. And there's that tension
- 58:22Michael Kennedy: of people expect, I think because it's a computer, people expect it to be perfect, right? Because
- 58:27Michael Kennedy: software is typically deterministic. So if it works once, it's always going to work. And AI isn't like
- 58:33Shaun Chuah: that, but people also aren't like that. Yeah, that's right. I mean, like, you know,
- 58:39Shaun Chuah: certainly everybody, you know, having an AI by your side is like having a colleague on your team,
- 58:43Shaun Chuah: except this colleague can write code like tremendously faster and much better than most
- 58:47Shaun Chuah: people. You know, today I would say that Claude Code and codex can write code way faster and way
- 58:53Shaun Chuah: better than me, but you still need that kind of strategic view from the human to just make sure
- 58:59Shaun Chuah: that you're going on the right path
- 59:00Shaun Chuah: because you got to drive the AI
- 59:02Shaun Chuah: and you've got to direct it.
- 59:04Shaun Chuah: And it's the same with the scientific work.
- 59:06Shaun Chuah: So I tell my scientific colleagues,
- 59:08Shaun Chuah: you need to make sure that the answers
- 59:09Shaun Chuah: that come back pass the smell test.
- 59:11Shaun Chuah: You need to make sure that,
- 59:13Shaun Chuah: you know, the numbers that you're seeing
- 59:14Shaun Chuah: are in line with your expectations.
- 59:16Shaun Chuah: You're expecting a number
- 59:17Shaun Chuah: in this magnitude range
- 59:18Shaun Chuah: and you get it there
- 59:19Shaun Chuah: because sometimes the AI goes off
- 59:20Shaun Chuah: and does funny things, right?
- 59:21Michael Kennedy: Yeah, I just, you know,
- 59:23Michael Kennedy: if you ask it to verify everything
- 59:24Michael Kennedy: and prove it and write code to back it up,
- 59:27Michael Kennedy: like it's better than if you just ask it
- 59:29Michael Kennedy: You know what I mean?
- 59:29Michael Kennedy: Like there's techniques,
- 59:31Michael Kennedy: but you do have to treat it
- 59:32Michael Kennedy: with a little bit of skepticism.
- 59:34Michael Kennedy: But that's also true for your colleagues
- 59:35Michael Kennedy: and your grad students and whatever, right?
- 59:38Michael Kennedy: Like no professor would just take a,
- 59:40Michael Kennedy: like, hey, grad student, write the paper.
- 59:42Michael Kennedy: And they don't even read it.
- 59:43Michael Kennedy: They just publish,
- 59:44Michael Kennedy: they just send it off to nature or medicine
- 59:46Michael Kennedy: or write the medical journal or whatever.
- 59:49Shaun Chuah: I mean, it depends.
- 59:50Shaun Chuah: I think for disposable stuff,
- 59:51Shaun Chuah: you can let the AI do more of that.
- 59:53Shaun Chuah: But for the real critical workflows,
- 59:55Shaun Chuah: you want to make sure every single step is correct.
- 59:57Michael Kennedy: Yeah.
- 59:58Michael Kennedy: All right.
- 59:58Michael Kennedy: Well, that brings us to our final call to action.
- 1:00:01Michael Kennedy: If scientific researchers or medical researchers are out there listening,
- 1:00:06Michael Kennedy: either what can they learn from your experience
- 1:00:08Michael Kennedy: or if they wanted to work with you on some of this, what would you say?
- 1:00:12Shaun Chuah: So one of the big questions and why we're putting Foundry out there
- 1:00:15Shaun Chuah: is we don't know how generalizable it is
- 1:00:17Shaun Chuah: or whether it's just going to be hyper-personal software for ourselves, our team.
- 1:00:21Shaun Chuah: But I think the general principles, I've shared them widely.
- 1:00:25Shaun Chuah: So please feel free to just take the idea and run with it.
- 1:00:28Shaun Chuah: I'm very excited to see what other people can do with the ideas.
- 1:00:32Shaun Chuah: And perhaps within their own institutions, they might want to build their own systems.
- 1:00:35Shaun Chuah: And I think that's absolutely valid.
- 1:00:37Shaun Chuah: But if you do want to explore a partnership with us, come and visit us on foundry120.com
- 1:00:42Shaun Chuah: and drop me an email.
- 1:00:43Michael Kennedy: Yeah, great.
- 1:00:44Michael Kennedy: And I'll link to your web page.
- 1:00:46Michael Kennedy: You've got email and your GitHub and other ways to get in touch with you there.
- 1:00:49Michael Kennedy: You also have a lot of interesting writing here, so people can check that out.
- 1:00:53Shaun Chuah: Yeah, that was my journey into coding, really.
- 1:00:57Michael Kennedy: Yeah, we all have one of those journeys to tell the story of.
- 1:01:00Michael Kennedy: Well, Sean, thank you so much for being on the show.
- 1:01:02Michael Kennedy: Keep up the good work.
- 1:01:03Michael Kennedy: I think this is a super interesting project.
- 1:01:05Shaun Chuah: Thanks very much, Michael.
- 1:01:06Shaun Chuah: Very happy to be here, and thanks for the invitation.
- 1:01:08Michael Kennedy: Yeah, you bet. Bye.
- 1:01:09Michael Kennedy: Bye.
- 1:01:11Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:01:13Michael Kennedy: Thank you to our sponsors.
- 1:01:14Michael Kennedy: Be sure to check out what they're offering.
- 1:01:16Michael Kennedy: It really helps support the show.
- 1:01:18Michael Kennedy: This episode is brought to you by Sentry.
- 1:01:20Michael Kennedy: You know Sentry for the air monitoring, but they now have logs too.
- 1:01:24Michael Kennedy: And with Sentry, your logs become way more usable.
- 1:01:27Michael Kennedy: interleaving into your error reports to enhance debugging and understanding.
- 1:01:31Michael Kennedy: Get started today at talkpython.fm/sentry.
- 1:01:35Michael Kennedy: And it's also brought to you by Talk Python Courses.
- 1:01:38Michael Kennedy: Course completion certificates are now live.
- 1:01:41Michael Kennedy: If you finished a course, there's a certificate waiting for you on your account page right now.
- 1:01:46Michael Kennedy: Download it as a PDF or add it to your LinkedIn profile with one click
- 1:01:50Michael Kennedy: under licenses and certifications.
- 1:01:52Michael Kennedy: Same section as your formal degrees.
- 1:01:54Michael Kennedy: Visit training.Talk Python.fm slash account to see what you've already earned.
- 1:01:59Michael Kennedy: And if you're not already subscribed to the show on your favorite podcast player,
- 1:02:03Michael Kennedy: what are you waiting for?
- 1:02:05Michael Kennedy: Just search for Python in your podcast player.
- 1:02:06Michael Kennedy: We should be right at the top.
- 1:02:08Michael Kennedy: If you enjoyed that geeky rap song, you can download the full track.
- 1:02:11Michael Kennedy: The link is actually in your podcast blur show notes.
- 1:02:13Michael Kennedy: This is your host, Michael Kennedy.
- 1:02:15Michael Kennedy: Thank you so much for listening.
- 1:02:16Michael Kennedy: I really appreciate it.
- 1:02:18Michael Kennedy: I'll see you next time.
- 1:02:30Music: I'm out.