Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: The AI Hallucination That Looks Right, With Devansh of Irys on Legal AI, Three-Tier Error Isolation, Models That Change Under You, Overhyped Reinforcement Learning, and Optimizing for Maintenance Over Generation
Transcript
- 0:00Think about the breaker panel in your house.
- 0:02Put everything on one circuit and a single fault
- 0:06takes out the whole house. Then you are hunting
- 0:09with a flashlight. Label the breakers and you
- 0:13know it's the kitchen before you get up. My guest
- 0:16today builds AI for lawyers and his whole approach
- 0:21is about labeling the breakers. Everybody's heard
- 0:24about AI making up court cases. He says the more
- 0:28interesting hallucination is a real case that
- 0:32just doesn't apply. And he says even if a fully
- 0:36agentic system got you 20% better results, you'd
- 0:40never know how it breaks until it breaks. I'm
- 0:43Brian Teller from Teller's Tech, and this is
- 0:46Ship It Weekly.
- 1:04Welcome back to Ship It Weekly,
- 1:06where I filter the noise and focus on what matters
- 1:09when you are the one running infrastructure and
- 1:11owning reliability. Most weeks, it's a quick
- 1:15DevOps, SRE, platform, cloud, and security news
- 1:19recap. In between those, I do conversation episodes
- 1:23with people building and operating these systems.
- 1:27Ship It Weekly turns one this month. To celebrate,
- 1:31through mid-December, you are getting two conversations
- 1:34a week, Mondays and Wednesdays, with the news
- 1:37every Friday. Then we're back to our usual rhythm.
- 1:42Today, I'm joined by Devansh, founder and head
- 1:45of AI at Irys. He builds reasoning and verification
- 1:49systems for legal AI, which is a brutal place
- 1:54for hallucinations and confident wrong answers.
- 1:58We talk about why the trickiest legal hallucination
- 2:02is a real case used the wrong way. How his team
- 2:07splits the system into three tiers so they can
- 2:11find failures fast what it's like running AI
- 2:14in production when the model can change under
- 2:17you and why he calls reinforcement learning the
- 2:21most overhyped technique in AI all right let's jump in
- 2:31thank you for joining me thank you for
- 2:33having me Brian very excited to be here so tell
- 2:36me a little bit about Irys and and what what
- 2:39you're working on there and what problems you're
- 2:42running into with AI and what problems you're
- 2:44solving. Absolutely. So I think to summarize
- 2:49something very briefly, what we see in legal
- 2:54AI, and this is a large problem in AI in general,
- 2:57is that language models and the fundamental nature
- 3:01of AI research, et cetera, is getting really,
- 3:03really good at doing a lot of things somewhat
- 3:05well. You know, that's the whole phenomenon of
- 3:08AI slop. But when it comes to going from somewhat
- 3:12well to being exceptional and being reliable
- 3:16and like the last mile delivery concept, our
- 3:20systems are not able to keep up. And what we
- 3:24are essentially trying to do is we're re-engineering
- 3:26a lot of structure into the way AI is done with
- 3:31the whole understanding that if we can have structure.
- 3:35We can better predict ahead of time when a system
- 3:38would fail, when it would succeed, how to make
- 3:40the system work better. And when a user comes
- 3:42to us and says, hey, can you, this is not working
- 3:44out for us. Can you improve this? Or this works
- 3:46really well. Can we double down on this? The
- 3:49ability to have structure and engineering stuff
- 3:52allows us to work on that instead of just like,
- 3:54you know, hoping that a better system prompt
- 3:57or a better model will solve those problems because
- 3:59that's not really fair to the user or to ourselves
- 4:02if we're doing that. Yeah, that makes sense.
- 4:05So why does AI for professionals break down so
- 4:09often? And what does it take for a system to
- 4:11be trustworthy? I think that's a great question.
- 4:14And I think what it takes depends heavily on
- 4:17what your system is expected to do. Essentially,
- 4:20any software system you build is a contract between
- 4:22the system and the user, where you say the system
- 4:26has to do certain things, the user has to do
- 4:28certain things, they're expected to engage with
- 4:30the system in a certain way the struggle we're
- 4:33often facing is that these contracts aren't very
- 4:35well defined and they're always changing you
- 4:37know new AI tools and new AI workflows will come
- 4:41around and they'll completely change how you
- 4:43should be operating it or how to best use certain
- 4:47things and not use certain things so I think
- 4:49at its core of where things fail is often it's
- 4:54either users expect things that are not viable
- 4:56with the system or they're not educated and What
- 5:00we really need to be doing is figuring out better
- 5:02ways to integrate. We need better ways to identify
- 5:05what users are able to do well and what users
- 5:08are, what should be taken out of their hands
- 5:11and done through AI systems. Like right now it's
- 5:14very vibezy, it's kind of try everything,
- 5:16stick it, throw it at the wall. And this is where
- 5:19a lot of things are failing in practice because
- 5:21users don't, like users don't know what they
- 5:23have to verify, you know, where they should step
- 5:26in versus where the AI can be trusted without
- 5:29too much worry. Yeah. So in legal specifically,
- 5:33what is the actual failure mode that you're seeing?
- 5:37Is it wrong facts? Is it fake citations? We've
- 5:41heard some of that in the industry over the last
- 5:43couple of years. Or is it like missing nuance
- 5:45or misreading authority? What are the main issues
- 5:48that you see? I think the way we've broken it
- 5:51down, we often talk about three categories of
- 5:54hallucinations. One category of hallucination
- 5:57is you say what you're describing fake case citations.
- 6:02This AI is just saying like Devansh versus Brian,
- 6:05for the Supreme Court, when it doesn't exist.
- 6:08The second much more interesting hallucination
- 6:12is AI says it's a real hallucination. It's a
- 6:16real case and it is a real case, but it doesn't
- 6:18apply to the way it's doing because a lot of
- 6:22legal is interpretation it's not exactly like
- 6:25this case says this only and this will be applied
- 6:28in this context you say a lot of what lawyers
- 6:30do in litigation etc is essentially take what
- 6:33was already argued and say okay based on this
- 6:35we can apply it in this format or in this way
- 6:37so a lot of um AI tools where they're failing
- 6:42right now is they're misapplying case law they're
- 6:43they're creating bad legal strategy because of
- 6:46this and this is the part that a lot of basically
- 6:49nobody else is solving this was something that
- 6:51we were one of the first people to actually actively
- 6:53try to solve for and this is very much the next
- 6:56domain of problem solving where it would be formed
- 6:59is when you have very long contexts and very
- 7:02long amounts of information you have a lot of
- 7:06like conditional applications like this contract
- 7:10in this clause will be modified by another clause
- 7:12somewhere else, or in certain cases you could
- 7:15apply this kind of an argumentation to it, or
- 7:17certain law firms have certain ways of operating,
- 7:20certain lawyers have certain preferences for
- 7:22how they want to structure arguments, whether
- 7:25they want to rely on one kind of authority over
- 7:27another, etc. And that kind of judgment is not
- 7:30something that AI... gets naturally because again
- 7:33if you think about what AI is it's trained to
- 7:35give you the most probable output token at any
- 7:37given time which is a kind of reversion to the
- 7:40mean better models mean that you're reverting
- 7:42to a higher mean than before but you can never
- 7:45have this outlier-ish final touch application
- 7:49with just AI averages so on that lens we are um
- 7:55like you know How does an AI know when to apply
- 7:59what kind of conditionals and logic and how to
- 8:02chain different things together is one of the
- 8:05biggest breakthroughs that we had. And I think
- 8:08this is where the next generation of products
- 8:10will differentiate themselves. So in researching
- 8:14for this episode, I looked at Irys One. Can you
- 8:18walk me through the three-tier reasoning architecture?
- 8:21What are the tiers? What do each of them mean?
- 8:24What do they do? Absolutely. And I think instead
- 8:27of... really talking about the technicals on
- 8:30uh what each of those tiers are I think first
- 8:33it's very important to just understand what kind
- 8:35of problems we have on our system when we're
- 8:39talking about stuff like how do you know when
- 8:40to apply which kind of logic these conditionals
- 8:43we're talking about contracts modify so the first
- 8:45tier would just be ingestion you need to be able
- 8:48to process your input and already here a lot of
- 8:52legal AI fails completely why would it fail Brian
- 8:55because if you think about input A lot of the
- 8:58times your input are not clean, one-shot texts
- 9:00with everything marked out. A lot of your users
- 9:03and viewers will probably have either dealt with
- 9:06it explicitly or would be figuring this out right
- 9:09now. Like if you had a PDF, you might have handwritten
- 9:12notes on it. You might have a PDF and an email
- 9:14chain where the email chain refers to some part
- 9:16of the PDF. But it's because those are two different
- 9:19documents. Those aren't going to be chunked in
- 9:21any meaningful way where it's going to happen.
- 9:24You will, like you just mentioned, Irys, one
- 9:27and the three tiers like you're referring to
- 9:30some document somewhere but that's not in the
- 9:33nature of this conversation so if you were just
- 9:36ingesting the way most people are currently doing
- 9:39it which is just document one document two document
- 9:41three you will miss these aspects or if some
- 9:44people are doing with chunks you will miss these
- 9:46aspects so the first thing that really sets us
- 9:48apart is the ingestion so ingestion is what allows
- 9:52us to map different concepts map different ideas
- 9:55now we do this through a knowledge graph that
- 9:58allows our AI to build kind of a context map
- 10:00with the point of it being that when our reasoning
- 10:02system is looking through something it's really
- 10:04looking at how those ideas are linked this clause
- 10:09where which claw if there was a clause a what
- 10:12other clauses is clause a related to and then
- 10:14what this allows us to do is we can have that
- 10:16thing be done at one ingestion time and two now
- 10:20we're rolling out a lot of work for background
- 10:22processes, checks, constant repairs, because
- 10:24what we're realizing is context is exploding
- 10:27so much. People are uploading so many documents
- 10:29that it's no longer viable for us to do one-time
- 10:32ingestion. It's much better for us to have constant
- 10:34batch of updates and improve the self-organizing
- 10:38graphs that way. Aspect two of this is we need
- 10:43to be able to then reason over this. Think of
- 10:47The ingestion step basically builds the world
- 10:49that the AI will navigate in. Now the AI needs
- 10:52to navigate this world better, take use of existing
- 10:56tools, get use of existing systems. That's where
- 11:01tier two comes in. That's where our research
- 11:03goes into latent space reasoning, hierarchical
- 11:06embeddings, et cetera. What all of these allow
- 11:08us to do is we are able to navigate the world
- 11:11better through these. We're analyzing the systems.
- 11:14We're like, okay, AI has to be like for this
- 11:18kind of a legal strategy we simulate like 50
- 11:21different outcomes and we're like this should
- 11:23work well this doesn't this might not work well
- 11:25this is how we might synthesize across aspects
- 11:27and then finally we get to the final tier which
- 11:30is the delivery and I'm breaking this down more
- 11:32from a user impact perspective as opposed to
- 11:36necessarily engineering layers or whatever because
- 11:39I think you can always get into arbitrarily deep
- 11:42engineering conversations but it's always better
- 11:44to I think ground that in a user perspective
- 11:47and how it reflects in users. And that way, when
- 11:51you're designing an improving system, you can
- 11:53always narrow it down. So the final tier is firm
- 11:56management, firm context, individual lawyer judgment
- 11:59and context, which is as we're reasoning through
- 12:01things, as we mentioned earlier, certain law
- 12:03firms like to operate in certain ways or a certain
- 12:07lawyer likes to be more aggressive while others
- 12:09don't like to be as aggressive. If you have matter
- 12:11memory, firm memory on what has worked well,
- 12:13what hasn't worked well, this is where you want
- 12:16to start applying that judgment to really refine
- 12:17it and bring it closer to the end product that
- 12:20the user might need as opposed to just a generic
- 12:23AI a draft that anybody could spit out um so
- 12:28this is where the final tier comes in which is
- 12:29personalization and output uh orientation that
- 12:32way and essentially by breaking it down into
- 12:35these three tiers it's like we're able to systematically
- 12:38improve each aspect of it because you know if
- 12:42a user is saying this is missing information,
- 12:44we immediately know that we don't need to care
- 12:46about the personalization there. This is either
- 12:48in the ingestion layer, but data wasn't processed,
- 12:51or it's in the reasoning layer where we were
- 12:53navigating it. And then just by looking at that,
- 12:56we've cut down the search space, and then immediately
- 12:58we can just say, can we find this in the data
- 13:00anywhere? Oh, this already exists in the graph.
- 13:02So it is ingestion there, but working fine. For
- 13:05some reason, it's not able to link to... it's
- 13:08not able to reason over it so is it a issue of
- 13:10the structure and how we've mapped it out or
- 13:13is it something wrong with our AI reasoning systems
- 13:16so by breaking these down like with very two
- 13:20three targeted queries we're already able to
- 13:22isolate where systems are failing and how we
- 13:25can more best improve them and that's probably
- 13:28one of the most important things for an agentic
- 13:31system to be building because you have a lot
- 13:33of moving parts so you want to isolate sources
- 13:35of error as quickly as possible So you had mentioned
- 13:40a knowledge graph when setting up your system
- 13:42with the tiering. What problem does that solve
- 13:46for you? So simply put, the knowledge graph exists
- 13:50to teach our AI layers where to look. Because
- 13:54if you think about what kinds of retrieval systems
- 13:57there are, you can build either something like
- 14:00what RAG systems do, which is chunking, where
- 14:04you're just trying to hope that all... relevant
- 14:07information is isolated within certain geographical
- 14:10proximities you know if your chunk size is 1024
- 14:14tokens you're just saying everything relevant
- 14:16for this chunk is contained within that geography
- 14:19or it's contained within similar semantic search
- 14:23geographies of 1024 tokens and if I do a top
- 14:26k of 5 or 20 I will be able to retrieve all of
- 14:29this my LLM can reason over that which is factually
- 14:32not true because a lot of the times if a user
- 14:35is asking hey where does this issue go wrong
- 14:37what does this issue mean how are you going to
- 14:40semantically chunk that and hope that every variable
- 14:43there is able to fix its problem um so on that
- 14:48lens there is no Like what the knowledge graph
- 14:52allows us to do is if we were to link different
- 14:54statutes together, if we were to link different
- 14:56entities together, it just tells our AI that
- 14:59when you're analyzing Brian's, like if somebody
- 15:03asks you a question about Brian, maybe Brian
- 15:05has some kind of a... with Devansh. Devansh might
- 15:09not show up on a semantic search as much as Brian
- 15:11does, but by linking those on the graph, it also
- 15:15knows to look at Devansh and then explore all
- 15:18the areas where Devansh and Brian have overlapping
- 15:20notes, overlapping judgments, and then take those
- 15:24aspects into account. So the knowledge graph
- 15:26essentially is the map on which our AI reasons
- 15:29and figures it out. It's not the direct. Like
- 15:32we're not directly doing graph RAG because graph
- 15:34RAG doesn't really work when you're trying to
- 15:36isolate specific chunks and you're trying to
- 15:38say, okay, quote, tell me where this person said
- 15:41this or flag contradictions. But it's primitive
- 15:45for figuring out relationships, figuring out
- 15:48how things might be linked. Graphs are a very
- 15:51good first level. And then on top of that, we've
- 15:55built self-evolving structures so that when
- 15:58we extract insights and we start saying, okay,
- 16:01this is an assertion, this is a claim, or let
- 16:03me add this fact about Devansh. Like Devansh
- 16:05loves dogs, Brian loves dogs. Maybe that's something
- 16:07they bond over. Like when we have that relationship
- 16:10added, we should be able to propagate that insight
- 16:15across the whole graph. And how does that relationship
- 16:17change? Because there's an aspect of dogs. By
- 16:20using graphs, you can do stuff like message passing
- 16:22and do stuff like Bayesian math in order to propagate
- 16:26signals across the whole network and be able
- 16:30to get relatively good results. It's not super
- 16:32precise, but it's like there's a big difference
- 16:35between zero, doing the zero or letting an LLM
- 16:38implicitly do this for 10, 15 percent versus
- 16:41doing it 60 percent well. And that's really a
- 16:43big differentiator for us. How do you manage
- 16:46context when the corpus goes from like 10 docs
- 16:49to 10 gigabytes? Size isn't always that much
- 16:53of a problem. Because again, when you're laying
- 16:57this out this way, it just means your math will
- 16:59take a little bit longer to run and signals will
- 17:01take longer to process. But a lot of this is
- 17:04just math. So it's not as though it takes meaningfully
- 17:08longer amounts of time. We actually have very
- 17:12good long context reasoning and we're able to
- 17:14do this. The deeper issues with scale is just
- 17:18missing random nuances for which the best solution
- 17:22right now is just, you know, flag issues to users.
- 17:27So our system, we're working on rolling this
- 17:29out properly, but by giving users the ability
- 17:32to have absolute transparency into what we're
- 17:35looking at and what we're not looking at and
- 17:38being like, okay, these seem to be some open
- 17:40gaps. These seem to be some next level assumptions
- 17:43we're making we're basically able to isolate
- 17:45very quickly the second aspect to this is provenance
- 17:49with the knowledge graph with everything else
- 17:51when you have specific chunks and you're able
- 17:54to say this belongs here this belongs here uh
- 17:57the second aspect so the secondary benefit to
- 17:59this is when the AI is looking to analyze something
- 18:01it can look at where certain chunks tend to cluster
- 18:07if certain information tends to come in and out
- 18:09it's like a Wikipedia or like any index right
- 18:13it gets an idea of where it should look for what
- 18:16kind of information and that actually solves
- 18:19a lot more long context reasoning than you think
- 18:21because with very large corpus it's not like
- 18:25you need every it's not like there's a hundred
- 18:28chunks from a hundred different documents that
- 18:29matter it's still just my for most tasks it's
- 18:33still only like three four five documents that
- 18:35actually matter it's just the the difficulties
- 18:38in finding those three four five documents And
- 18:41being able to implement this structure helps
- 18:44there. Now, this approach kind of starts to break
- 18:47down when you're doing stuff like timelines,
- 18:49where you do really have to thread every document,
- 18:52every event chronologically, and especially because
- 18:55it's not like documents themselves are organized
- 18:58with chronologies and doing this. So this is
- 19:00really the next level of system that we're trying
- 19:03to build. We're trying to figure it out. That
- 19:06was one of the big inspirations for making this
- 19:08as self-evolving as possible if you add a new
- 19:11date instead of us having to manually insert
- 19:12that date and revise conclusions can we do this
- 19:16automatically and if it's causing any conflicts
- 19:19with the graph can we surface that to the user
- 19:21to be like hey can you this scene our graph system
- 19:23is kind of causing issues here can you help us
- 19:26fix it uh but like honestly that is the biggest
- 19:31problem that anybody nobody has really sorted
- 19:33it out yet I've been talking to a lot of people
- 19:36not just in legal but in agentic coding systems
- 19:39where you have very quick deltas or in finance.
- 19:44And this is an open issue where everybody is
- 19:47kind of interested. And people have some theories,
- 19:50but we haven't super sorted that part out yet.
- 19:55What's your strategy for dealing with it depends
- 19:58or ambiguity answers? It depends, because sometimes
- 20:01it depends is the best answer you can give. If
- 20:03the user is asking you what the best solution
- 20:05is, you don't want to be overly confident. Other
- 20:08times when they're asking for a legal draft,
- 20:10you don't want to say it depends, because lawyer
- 20:13drafts have to be very authoritative and statement-wise.
- 20:16So first, it depends on what the end goal
- 20:18is. And we have broken this down extensively
- 20:20on like, what is the user asking for? And behind
- 20:24the scenes, this is one of the things we do,
- 20:25we create answer contracts. If it's a legal draft,
- 20:29if it's a memo, it has to have these properties.
- 20:31If it's something else, it has to have certain
- 20:33other properties. So that's a pretty good first
- 20:37order system to dealing with it depends. And
- 20:40I think that is something that our users have
- 20:43really appreciated. If you look at a lot of what
- 20:45Reddit says about us or other people say about
- 20:47us, or we were cited by some paper, this organization
- 20:52that was looking at tools for... legal judgment.
- 20:55One of the things people like about us is that
- 20:57we're able to help with brainstorming a much
- 21:00larger set of possible strategies, precisely
- 21:03because we have implicitly factored in uncertainties
- 21:06and counterfactual analysis and being like, we
- 21:10can go alternative theory, one, two, three, et
- 21:12cetera. Let me take like a DevOps angle here.
- 21:15What is the hardest part about operating an AI
- 21:18system like this in production? 100%. Being able
- 21:23to track everything, knowing control, understanding
- 21:27like, hey, if things are going wrong, where are
- 21:29they going wrong or where are they going right?
- 21:31One of the issues is we ourselves have such a
- 21:36limited understanding of what AI does well or
- 21:39not do well. And we as an AI engineers in general,
- 21:43like we are struggling very much to get they
- 21:46have benchmarks but benchmarks have completely
- 21:48gone out of touch with a lot of reality and then
- 21:51it gets further dependent on how exactly you
- 21:54set up your systems and which tools you're using
- 21:56which ones here how you're structuring them on
- 21:59that lens it becomes very difficult to um isolate
- 22:04error and that's why such a big part of our system
- 22:07is just on control and structure because even
- 22:10if you could get 20% better performance tomorrow
- 22:14by simply doing like a full fully agentic, fully
- 22:17recursive self-improving loop. The issue with
- 22:20those systems is you never know when they break
- 22:22and you never know how they break until they
- 22:25break. And with structure, what you're able to
- 22:27do is even when it's failing, you know where
- 22:29it's failing so you can isolate things. So I
- 22:35think definitely that is the area we're trying
- 22:38to most resolve is how can we ensure that every
- 22:43aspect of our system, when a user comes to us
- 22:46and says, why did it fail we know we can give
- 22:50them a clear answer on why and how we on what
- 22:53we're going to do about it because right now
- 22:55it's sometimes I can tell you the exact process
- 22:58on this it took this agentic path to come up
- 23:02to your conclusion but I can't tell you why it
- 23:04chose to take that path versus another path where
- 23:06in the uncertainty calculations it decided this
- 23:09and that's just like a general problem with AI
- 23:12interpretability so that's something we want
- 23:15to actively solve for So on the observability
- 23:18side, is there something specific that you do
- 23:21log and measure so you know when the system is
- 23:24getting worse or not?
- 23:25So it's an open discussion, obviously.
- 23:31Because, again, the user contracts themselves have been changing quite a bit
- 23:35on terms of what users are expecting our systems to do and not do.
- 23:41When we first started off, was just purely reason over these existing documents.
- 23:46Now it's gone from that to being
- 23:49like, let's do second or third order consequences,
- 23:51integrate real-time legal research. As these
- 23:56systems are getting better, we're using more
- 23:58of them. We're trying to figure out how the system
- 24:01is approaching the correct answers. I think number
- 24:06one right now, what we're tracking for, whether
- 24:09it works or not, is does it behave as expected?
- 24:11Can we predict ahead of time what kind of...
- 24:15paths this would have followed because at least
- 24:17then we know that our system is stable and that's
- 24:21all that itself is a much bigger challenge that
- 24:23people realize because LLM update people don't
- 24:28know this but a lot labs are always changing
- 24:30their other LLMs behind the scenes and you're
- 24:32not it's not like those major releases like
- 24:352.5 became 3. The behavior of 2.5 just changed
- 24:39because they were post-training something and
- 24:41they pushed that update or they quantized a model.
- 24:44You hear this a lot. They're changing something
- 24:47about the tokenizer. These come out of nowhere
- 24:50and that can completely change the behavior of
- 24:53your expected output. So on that lens, it becomes
- 24:57very difficult for us to control and even figure
- 25:01that out. But this is definitely the number one
- 25:04priority for us. What's the most overhyped technique
- 25:08in AI product land right now? Reinforcement learning,
- 25:12by far. Okay. It just doesn't work. Okay. RL
- 25:18was great and is best when you have a verifiable
- 25:24output. A truly verifiable output, not what we
- 25:26call RLVR. RLVR is mostly garbage. What reinforcement
- 25:30learning does is it, once you know this is exactly
- 25:34what I'm looking for, these are hard constraints
- 25:37for me RL is extremely good at figuring out the
- 25:41best way to get there very very quickly the problem
- 25:45with it is people are trying to use RL for open
- 25:48exploration problems make an LLM reason better
- 25:51make an LLM write better what does better mean
- 25:54better has no signals so we end up using proxies
- 25:57like okay if this code compiles in a certain
- 26:00amount of time it's better. If this sentence
- 26:03uses fewer emojis than this other sentence, it's
- 26:06better or worse. But you see how immediately
- 26:08that creates all kinds of issues. So people are
- 26:12investing heavily into RL because we don't know
- 26:14how else to do it. Or we have ideas, but there
- 26:18are very weird incentives for short-termism
- 26:20in AI research. And a lot of people who don't
- 26:24understand the details of reinforcement learning,
- 26:27I can break down the math of why reinforcement
- 26:29learning doesn't work. But people that haven't
- 26:33studied it as much or don't understand why big
- 26:35labs are investing in it are then taking the
- 26:37same approaches being done by big labs and trying
- 26:39to replicate it for startups. And you're hearing
- 26:42RL startups, RL environment startups. They're
- 26:46all going to sink. None of them are that good.
- 26:48And anybody that's here pitching reinforcement
- 26:51learning to you is either an idiot or a scammer.
- 26:56Interesting. Okay, so any other takeaways for
- 26:59our listeners around AI or prompt engineering
- 27:03or building AI systems? If I were to summarize
- 27:07everything in one go, all of the learnings we've
- 27:11had, both from the building Irys ourselves and
- 27:14also the open source community that we're engaged
- 27:16in and building it out of, I think the number
- 27:20one area AI is failing right now is that we don't
- 27:25have good measurements AI in general is failing
- 27:30with measurements and measurements are like where
- 27:33we're struggling is we don't understand even
- 27:35where how to extract meaningful signal and too
- 27:39many like people trying to build AI are trying
- 27:43to build for high performance and high performance
- 27:47is what gets it it gets you the cool demos it
- 27:49gets you the good systems but often what that
- 27:52leads to is overtly complicated systems which
- 27:55you have to re-engineer from scratch because
- 27:57as people start finding everywhere it goes wrong
- 28:00you have to come back and question your assumptions
- 28:04and you realize hey these systems don't work
- 28:06or the system has certain issues so I think people
- 28:09should be engineering for um error isolation
- 28:13first and foremost be able to identify especially
- 28:16if they're using something like Claude Code or
- 28:18Codex or anything else to do their software engineering
- 28:22because these systems will just churn out heaps
- 28:27and heaps of code and then it's very hard to
- 28:29start figuring out where which systems work which
- 28:33system to work so optimize for maintenance not
- 28:35for generation because maintenance is where your
- 28:39system either lives or dies generation is like
- 28:42the It's what looks easy and it's easy to measure,
- 28:46but that's not really where your performance
- 28:50data can come from. Yeah, that makes sense. Where
- 28:54can people find your work, reach out to you,
- 28:58see what you're working on, see what Irys is
- 29:01working on? I think irys.ai, I-R-Y-S.A-I,
- 29:06easy. That link will contain a lot of research.
- 29:11If you're interested in the open source AI research
- 29:13work we do, the chocolatemilkcult.ai also,
- 29:17that's where we publish a lot of stuff, publish
- 29:20on Substack. If they just Google Devansh AI,
- 29:22they'll probably find out all my links, etc.
- 29:26But irys.ai if you're looking for one place
- 29:29to start. Cool. Any closing thoughts you want
- 29:32to leave our audience with? I think the one closing
- 29:34thought that I keep trying to emphasize to everybody
- 29:39is none of us really know where AI is headed
- 29:42and people can confidently say one thing or another
- 29:45but truly there are no true experts so I think
- 29:50too many people right now are kind of being passive
- 29:52with AI which is like oh let me wait for somebody
- 29:55to tell me how to best build the system best
- 29:59do this or let's do that I think right now it's
- 30:02better to take a more proactive approach and
- 30:04get in the mud test things out yourself build
- 30:08things out yourself because you never know where
- 30:12the next big signal comes from you never know
- 30:14where it come comes out of and ultimately I can
- 30:19sit here and tell you some things but those are
- 30:21very biased by my own experiences and how I've
- 30:25built things it might not fully apply to you
- 30:27to build what you know everybody's talking about
- 30:30taste and judgment these days the only way to
- 30:32build taste and judgment is for you to fail repeatedly
- 30:35and then have that meta process analysis of where
- 30:38systems fail and where they succeed. So that
- 30:41would just be a generalist, I think, mentality
- 30:45to take about all of this. Oh, it makes sense.
- 30:48Really appreciate it, Devansh. I will leave links
- 30:51for all of the websites that you mentioned down
- 30:53in the show notes. And thank you so much for
- 30:55coming on. Really appreciate it. Thank you, Brian.
- 30:57That was my conversation with Devansh from Irys.
- 31:01The biggest takeaway for me is that you can't
- 31:04fix what you can't find Devansh said a fully
- 31:08agentic system might perform 20% better but you
- 31:13never know how it breaks until it breaks the
- 31:16way I see it his three tiers are labels on the
- 31:20breaker panel if a lawyer says something's missing
- 31:23his team knows it's ingestion or reasoning and
- 31:28a couple of targeted queries tell them which
- 31:30second the dangerous failure isn't always the
- 31:35loud one. A made-up case falls apart once somebody
- 31:39looks it up. A real case applied the wrong way
- 31:43looks fine. It's the same thing in infrastructure.
- 31:47A config that's valid but wrong hurts more than
- 31:51one that won't parse. Third, the model can change
- 31:55under you. Devansh said labs tweak models behind
- 32:00the scenes. And your output shifts with no new
- 32:04version number so the first thing his team tracks
- 32:08is whether the system behaves as expected to
- 32:12me that's drift detection and we know how to
- 32:16watch for drift and the line that I taped to
- 32:20my monitor optimize for maintenance not generation
- 32:23coding agents will churn out heaps of code but
- 32:28maintenance is where a system lives or dies You
- 32:33can find Devansh at irys.ai plus his open source
- 32:37research on Substack. Or just search Devansh
- 32:42AI through the links in the show notes. Follow
- 32:45or subscribe to Ship It Weekly wherever you listen
- 32:48and find previous episodes at shipitweekly.fm.
- 32:53Thanks for listening and I'll see you later this
- 32:56week.