No Priors: Artificial Intelligence | Technology | Startups · Transcript & summary by WhipScribe
A Sourcegraph CTO explains, in practical terms, why retrieval can beat raw model size for AI coding tools and where agents still break.
Tap a chapter to play it from that moment in the show's own player.
“the quality of code generated by Kodi, it's like night and day.” Beyang Liu · at 26:56 — ▶ hear it from here
“we're nowhere close to reaching the demand for good, high-quality software.” Beyang Liu · at 40:38 — ▶ hear it from here
Beyang Liu, co-founder and CTO of Sourcegraph, argues that developers lose most of their time reading existing code rather than building new features. That gap, seen repeatedly while working with enterprise teams at Palantir, is why Sourcegraph built code search and reference-graph tools long before AI arrived. He traces his own interest to Stanford AI research, when neural nets were out of fashion, and says Sourcegraph's serious AI experiments began in autumn 2023, after internal work matured and ChatGPT's launch raised the stakes.
On the technical side, the central idea is retrieval augmented generation. Liu explains that a model's answers improve when it is fed relevant code and documentation. Sourcegraph combines keyword search, function-level indexing and embeddings into a two-layer system: broad retrieval keeps recall high, then a slower re-ranker puts the best matches first. He says customers can tune how much of their codebase the assistant sees, including excluding legacy patterns, and that context quality is what makes multi-step agents workable.
Looking ahead, Liu separates the inner loop of daily coding from the outer loop of planning and deployment, and says today's tools mostly serve the inner loop. The long-term goal is an AI engineer that turns an issue into a pull request, starting with low-stakes toil such as dependency upgrades. He is cautious about compounding errors in agents and about whether smarter models or more validation will win. He predicts one person will build what once needed large teams, but that demand for software is far from met, and that computer science fundamentals will matter more as middleware gets automated.
Have a recording of your own? Paste a link or upload it.
WhipScribe sends back a timestamped transcript, like the one on this page.
Every recording starts with a free preview. Full transcripts come in packs from $4 for 300 minutes. Uploads up to 10 hours or 5 GB.
Beyang Liu is co-founder and CTO of Sourcegraph, which builds developer tools. He studied AI and machine learning at Stanford and previously worked at Palantir.
Beyang Liu said Sourcegraph is very bullish on small models and has integrated Mixtral as one of the model choices in its AI coding assistant's chat. He said small models are cheaper and faster, and that they become a no-brainer if they approach the quality of larger models for a specific use case.
“We're very bullish on small models.”Beyang Liu · 33:31
Beyang Liu said the primary model behind Sourcegraph's inline completions is StarCoder 7 billion. He said that with the benefit of context, it matches the performance of larger proprietary models, and that the company is only scratching the surface of what is possible with context fetching.
“The primary model that Kodi uses for inline completions right now is StarCoder 7 billion.”Beyang Liu · 33:31
Beyang Liu said Perplexity and Bing Chat are examples of large language models paired with web search, fetching results into the model's context window to anchor it to facts. He described Perplexity as building a Google competitor on that approach.
“They're building Google competitors where they integrate the large language model with a web search functionality”Beyang Liu · 8:17
Beyang Liu said The Mythical Man-Month, written in the 1970s, still rings true today because it describes software development as knowledge work that is very difficult to measure. He argued that people often wrongly treat lines of code as commodities, when a single line can make a large business impact.
“There's a similar work called The Mythical Man Month that was written in the 70s about software development”Beyang Liu · 36:06
Beyang Liu argues that AI coding tools become reliable mainly through the context they fetch from a codebase, using code search and reference-graph walking, rather than through bigger models alone. He believes the path to an AI engineer that can turn an issue into a pull request runs through context quality and better retrieval.
Beyang Liu explained that Sourcegraph treats retrieval augmented generation as a search problem. Its assistant fetches relevant code and documentation through code search and by walking the reference graph, then places that context in the model's window so answers hallucinate less. He compared the approach to Bing Chat and Perplexity, which ground models in web search results.
Beyang Liu said keyword search alone can get you more than 90% of the way to working retrieval, which he called the dirty secret of RAG practitioners. Sourcegraph preserves recall first with several retrievers, then uses a slower re-ranking layer to move the most relevant code to the top of the context window.
Beyang Liu said agents that chain many steps suffer compounding failure. If each step succeeds about 90% of the time, the chance of full success falls toward zero as the chain grows longer. He said today's systems are far below 90% per step, so he sees better context quality as the main route to more reliable agents.
Beyang Liu expects AI to let one developer build what once required large teams, and to give engineering leaders summaries of code changes they could never read by hand. He still expects large teams to exist, because he believes demand for good, high-quality software is nowhere close to being met and people push new technology to its limits.
Beyang Liu said Sourcegraph is bullish on small models because they are cheaper and faster. Its inline completions use StarCoder 7 billion, which he said matches larger proprietary models when given good context, and Mixtral was added as a chat option. He warned that fine-tuning a medium-sized model can weaken its in-context learning, so chat still uses larger models.
Beyang Liu argued that AI will compress the middle layer of software, the boilerplate and middleware between high-level goals and low-level code, but that CS fundamentals will grow in importance. He said knowing data structures and how to compose them, along with domain expertise, will be what differentiates humans working with AI. He called this a contrarian view.
Beyang Liu said Sourcegraph prioritized RAG over fine-tuning to establish a baseline first. He cited a Nature climate paper in which a gigantic neural network was matched by a single neuron in a later study. He argued RAG remains the last-mile context layer even when fine-tuned models are added, so it is worth building first.
Our own transcript of the public episode, with a timestamp about every 90 seconds. Tap a timestamp to play the episode from there in the show's own player; the link button on a paragraph copies a link that opens this page there.
0:00Hi, listeners, and welcome to another episode of No Priors. This week, we're talking to Beiyang Liu, the co-founder and CTO of Sourcegraph, which builds tools that helps developers innovate faster. Their most recent launch was an AI coding assistant called Kodi. We're excited to have Beiyang on to talk about how AI changes software development. Welcome. Cool. Thanks, Sarah. It's great to talk about how AI changes software development. Welcome. Beyang Wang Cool. Thanks, Sarah. It's great to be on. Thanks for having me. Sarah Holt Yeah. So you guys founded Sourcegraph all the way back in 2013, right? I feel like I met you and Quinn at GopherCon either that year or the year after. Do you remember?
0:36Beyang Wang Yeah, I think that's right. We met at one of those like after conference events. And I remember you asked me a bunch of questions about developer productivity and code search and what we're doing back then. Many listeners to the podcast are technical, but can you describe the core thesis of the company? Quinn and I are both developers by background. We felt that there was kind of like this gap between the promise of programming, being in flow and getting stuff done and creating something new that everyone experiences. It's probably the reason that many of us got into programming in the first place, the joy of creation. Then you compare that with the day-to-day of most professional software engineers,
1:14which is a lot of toil and a lot of drudgery. When we kind of drilled into that, you know, why is that? I think we both realized that we're spending a lot of our time in the process of reading and understanding the existing code rather than building new features, because all that is a prerequisite for being able to build quickly and efficiently. And that was a pain point that we saw again and again, both with the people that we collaborated with inside the company we were working at at the time, Palantir, as well as a lot of the enterprise customers that Palantir was working with. So we were kind of dropshipping into large banks and Fortune 500 companies and building software kind of embedded with their software teams.
1:53And if anything, the pain points they had around understanding legacy code and figuring out the context of the code base so they could work effectively was 10x, 100x of the challenges that we were experiencing. So it was partially, you know, scratching our own itch and partially like, hey, like the pain we feel is reflected across all these different industries trying to build software. Yeah, we're gonna come back to context and how important it is for using this generation of AI. But I want to go actually back to like some roots you have in thinking about AI and your interning at the Stanford AI Research Lab way back when. Yeah. Like that wasn't the starting point for Sourcegraph. It was more like, oh, we need like super grep, right?
2:34Like we just need a version of search that works in real environments and is useful for getting to flow. When in the story of Sourcegraph did you start thinking about how advancements in AI could change the product? My first love in terms of computer science was actually AI and machine learning. That's what I concentrated in when I was a student at Stanford. I worked in the Stanford AI lab with Daphne Kohler, who's my advisor, mostly doing computer vision stuff in those days. And it was very different in those days. We're now living through the neural net revolution. We're well into it. It's just like neural nets everywhere. And in those days, it's still kind of like the dark ages of neural nets,
3:14where it was after the first initial successes they had in the late 80s and 90s, doing OCR with them. But then after that, the use cases sort of petered out. And by the time that I was doing it, the conventional wisdom, the thing that they told us in Machine Learning 101 was like, neural nets were this thing that we tried a decade or so ago, but it didn't really pan out. So these days, we're mostly focused on graphical models and statistical learning techniques, really trying to be explicit about modeling the probability distribution of what we're trying to represent. We actually had Daphne and one of her other former students, Lucas B. Wald, from Now Weights and Biases on the podcast as well.
3:56And both of them were also like lamenting the dark ages when like neural nets were like this weird niche thing. And we're going to work on graphical models instead. But it's very cool to see so many people who have like a, you know, interest in technical passion in this, like emerge the other end and be like, aha, like now is the time. So at what point were you like, okay, like I'm going to look at this and we're going to try to work on it at Sourcegraph. Yeah, it's great. It really feels like a homecoming of sorts. And I think we're very fortunate that a lot of the underlying skill sets, I think, do transfer pretty well. I mean, it's all linear algebra and matrix operations underneath the hood, and that stuff is still
4:33applicable. And a lot of the intuitions, like the value of sparsity and things like that, still are kind of applicable. I'm still waiting for the statistical learning and maybe some of the convex optimization stuff to reemerge. I wouldn't count it entirely out yet. I feel like the pendulum always swings back the other way. It's swung away from statistical learning and convex optimization and models now. But I think they'll reemerge, especially as we try to get deeper into interpreting how and why neural nets and attention is as good as it is but to answer your question you know when did we start thinking about this at uh source graph i want to say it was like circa 2017 2018 that we started to kind of like revisit some of this because um i mean i think
5:192017 was when the attention paper came out and you started to see more applications of LLMs in the space of code. I think tab nine was one of the earliest to market there with the LLM based autocomplete. I remember chatting with someone who had essentially implemented that on top of GPT-2 at the time. And it wasn't nearly as good as it is now, even then, you know, like two or three years ago. But we ran some early experiments applying LLMs, specifically embeddings, to code search. And that yielded some interesting results. Again, the quality wasn't at the point where we were ready to productionize it yet. But it was certainly like enough to keep us going. I think things really picked up September or October of last
6:05year. It was a confluence of factors. I think, one, our internal efforts just kind of reached a level of maturity where we started being more serious, devoting more time to it. Second thing is I went on paternity leave, so I was able to step away from kind of like the day-to-day stuff a little bit. And that gave some time and room for kind of experimentation. And then, of course, at the end of November, ChatGPT landed and that just changed the game for everyone. And there was a ton of interest and excitement that really gave us a big kick to start exploring in depth the efforts that we already had underway. Awesome. And so explain what Kodi is today. Kodi is an AI coding assistant. It integrates into your editor, whether using VS Code or JetBrains.
6:50We also have experimental support for NeoVim. And as an Emacs user, Emacs is on the way. We've also integrated it into our web application. So if you go to sourcegraph.com and go to a repository page, there's an Ask Kodi button that allows you to ask high-level questions about that code base. And in terms of feature set, it supports a lot of the features that other coding assistants support. Inline completions, high-level Q&A informed by the context of your code base, kind of specific commands like generate unit test or fix this compiler error that are kind of like inline actions in the editor. And our main point of differentiation is across that feature service area, we augment the large language model that we're using underneath the hood with all the
7:36context that we can pull in through a source graph and through techniques that we've refined over the past decade, building, you know, a really awesome code understanding tool for human developers. Okay, so you have said, and I think it is like a more interesting point of view now that there's an argument that choosing and structuring like large repo context is the key unlock for code generation and like AI code functionally. Can you explain how you guys approach it? Yeah, so in many ways, the context problem, so, you know, context, another word for it is retrieval augmented generation. The basic idea, I mean, listeners of your pod are probably familiar with this, but just for the ones that are, you know,
8:17tuning in and unfamiliar, the idea is that large language models get a lot smarter when they're augmented with some sort of context fetching ability, the most common of which is typically like a search engine. So there's a number of examples out there of doing this. Bing chat is one example. Perplexity is another example. They're building Google competitors where they integrate the large language model with a web search functionality and fetching search results into the context window of the language model helps basically anchor it to specific facts and knowledge that helps it hallucinate less and generate more accurate responses. We essentially do the same thing for code using a combination of code search and also something we call graph
9:03context to pull in relevant code snippets and pieces of documentation into the context window in a way that improves code generation and high level Q&A about the code. And so on the code search end, we're essentially incorporating the technologies that we've built to help human developers over the past decade. So if you look at the core feature set of Sourcegraph, the bread butter really is you have code search, which allows you to go from, you know, I'm thinking of a function or I'm thinking of an error message and quickly pinpointing the needle in the haystack in a giant universe of code. And then from there, it's sort of this walking the reference graph of code. So go to definition, find references in a way that doesn't require you to set up a development environment or tangle with any build systems.
9:53It just all kind of works. So the analogy there is like we want to make exploring and searching code as easy as it is to explore and search the web. That's a huge unlock for humans being able to take advantage of the institutional knowledge embedded in that data source. And it turns out those same actions, the code search and then the walking the reference graph, turns out to be really useful for surfacing relevant pieces of context that you can then place into a language model's context window. That makes it much better at generating code that fits within the context of your code base and also answering questions accurately without making as much stuff up. Actually, I'm very interested. Do you do both, let's say,
10:31other traditional information retrieval approaches like ranking along with AST transversal? Or is there information missing from the graph context that's also useful either for your humans using search or for the models using search? Yeah, there's a ton of data sources. Let's start with the search side, which the search problem is really like, hey, the user asked a question. Now find me all the pieces of code or pieces of documentation that could be relevant to answering that question. We really view that as a generalized search problem. It has a lot of like parallels to end user search. With the difference being, you difference being for human search, it's really important to get the quote unquote right result in the top three.
11:10Otherwise people will ignore it. Whereas with language models, you actually have a little bit more flexibility because you have a context window of these days, at least 2000 tokens, some cases much longer. And then in terms of how you do that fetching, the overall architecture is very similar to how you would design a search engine. So you have a two-layered architecture. At the bottom layer are your underlying retrievers. So the base case here would be just keyword search. Or the fancy way of saying that nowadays is sparse vector search. If you use the kind of like one hot encoding, where ones correspond to the presence of certain dictionary words. Anyways, that's just keyword search. It actually works reasonably well. I think if you
11:58talk to a lot of rag practitioners, you'll find that the kind of like dirty secret is that keyword search can probably get you more than 90% of the way there. Let's talk about embeddings in a little bit. But on keyword search alone, there's a lot that we do. It's a combination of classic keyword search, combining that with things that work well for code, like regular expressions and string literals. Also really important is how you index the data. So what you're treating as, quote unquote, like the document in your keyword search backend. We found that it's absolutely essential if you're searching over code to parse things. And so you can extract specific functions and methods and classes along with the corresponding doc string
12:46and treat those as separate entities in your system rather than indexing at the file level or trying to do some more naive chunking. So there's the keyword search. We also have embeddings-based search or dense vector search, where you basically run those same documents, those functions and symbols and code through an LLM, take out the kind of internal representation, the embeddings vector, and then do nearest neighbor search against that. There's a couple other techniques that can use to surface relevant context to, like matching file names and things like that. Anyways, you have this basket of underlying kind of retrievers. And the goal of the retrievers is just to preserve 100% recall. So make sure you don't miss anything, but also get the candidate results set down to
13:33a size where you can use a fancier method to bump the really relevant stuff up in the context window. And that's where the second layer of the architecture comes into play. And the second layer is the re-ranking layer. Again, if you're implementing a search engine, this is how you do it, right? After your layer one's proposed, like all the candidates up, you have a fancier re-ranking layer that would be too slow to invoke across the entire document corpus. But once you've kind of scoped it down to a smaller set, you can take the re-ranker. And the purpose of the re-ranker is really to bump the right result or the most relevant results up to the top. So optimizing for precision over recall. So that's kind of like the general architecture of the search backend that powers Kodi.
14:18Awesome. the things that I believe and we believe at Conviction is that people are going to build pipelines that look like search pipelines attached to a large language model in many more domains. And like you should treat that entire, like you guys are building a very sophisticated version here having worked on search for a while, but that parts beyond the language model itself are quite important. For example, like the embeddings model and your chunking strategy, and they're actually pretty data specific. We were just talking about this and I think people are going to end up with domain specific and even fine tuned embeddings models from companies like Voyage or in-house, because there's a lot of headroom on performance there.
15:03Yep, absolutely. I think the Voyage folks are doing really interesting stuff working on an embeddings model for code. We're kind of collaborating with them at the moment. They're a really smart set of folks. And I think you're absolutely right. There's so many components in these AI systems that are outside of the quote-unquote main language model that are really important. And weunquote main language model that are really important. And we found that the most important things are, I mean, really what this comes down to is like a data quality and data processing pipeline, which has been something that people have realized for a long time, right? Like your model architecture can only go so far
15:40if your data is garbage. So you really need a high quality data pipeline. And that means not only having, you know, you really need a high quality data pipeline. And that means not only having, you know, in our domain, high quality code that can serve as the underlying data to use, but also a way to structure that data in a way where you can maximize your ability to extract signal from noise. Do you take into account the quality of code in this pipeline in some way? Because, you know, you're working on customer code bases, like, if there's anything like the code bases I've interacted with, like, there's, you know, there's a variance of quality, but that's the real world. So like, what do you mean by, you know, high quality code here?
16:17I mean, we kind of implicitly do right now, because we, built into Kodi is this notion of, like, you know, which code is it referencing, It's going to reference the code in your code base first. And that's probably the most relevant code if you're trying to work on day-to-day tasks in a private code base. We're probably going to release a feature soon. This is something that our customers have requested. Basically, the ability to point Kodi at areas of the code base that are better models of what good looks like. We've talked with a lot of enterprise customers where when we say like, hey, Kodi has the context of your code base, it will go and do a bunch of code searches when it's generating code for you.
16:55Their initial reaction is like, can I tell it to ignore large parts of the code? Because there's certain parts of the code where like, yeah, those are antipodes we're trying to like deprecate that or migrate away from that pattern. And we're like, yeah, absolutely. That's actually like a very easy thing to do at the search layer. And the nice part of this too is when you're doing RAG, you can be very explicit about the type of information, the type of data you're fetching into the context window. You basically can give someone a lever that they could turn on or off or a slider at query time that kind of controls what you tag in as context. So maybe sometimes you really do want the full code base as context when you're doing something like a completions or you're just trying to get
17:39something out the door. Other times, maybe you want to be a little bit more thoughtful about what context you're attending to because you have another goal in mind. Not only do you want to shift the feature, but you also want to uplevel the quality of your code or make it look more like some golden copy you have somewhere in your code base. You just mentioned completions, and then there's the other user experience model that we've seen, which is chat in terms of how people interact with code generation capabilities. Where do we go from here, right? Is it agents? Is it more reliability? What do you want to build Kodi into? Yeah, so I think there's kind of like the short term and the long term to think about.
18:21In the short term, I think there's a ton more surface area in the developer inner loop and kind of like human in the loop use cases. Sorry, describe what you mean by inner loop. When you think about the software development life cycle, this kind of iterative cycle through which we build software, there's kind of like an inner loop and the outer loop. The outer loop is kind of like the entire ring of like, you plan for a feature, you decide what you want to build, you go and actually implement the feature, you write the tests, you submit it to CI, you submit to code review, and then provided you pass all that, then it's time to deploy it in production. Once it's in production, you got to observe and monitor it and react to any
18:59issues that happen along the way. So that's kind of like the outer loop that sort of happens at the team level or maybe the organizational level. The inner loop is the kind of cycle that a single developer iterates on potentially multiple times per day. And this is really the engine of how you iterate to something that is like a working patch that actually delivers the feature. So in one invocation of the outer loop, there's many inner loops that you go through because as a developer, unless you're like, you know, a superstar genius who's already written this feature before, the first attempt at implementing new feature, you're going to get a lot of stuff wrong. You're going to kind of like figure stuff out along the way.
19:43You're going to acquire more context and realize, oh, there's this other thing that exists that I should be using. And so it's that kind of like learning process that you want to accelerate as much as possible. And so if you look at the landscape of code AI today, the systems that are actually in production and in use, they're all inner loop tools. So anything that is, you know, in your editor doing inline completions or chat, that's kind of assisting you in the process of writing the code and assisting you in kind of accelerating your inner loop as a developer. And there's just a ton of opportunity there. And we think of it mainly in terms of, you know, beyond chat and completion, there's these specific use cases
20:25that represent forms of toil or are just a little bit tedious or repetitive or just non-creative that we can help accelerate. And so we've broken those out into distinct use cases that map to commands in Kodi. So there's a command to generate a unit test informed by the context of your code base. There's a command to generate a unit test informed by the context of your code base. There's a command to generate doc strings. There's a command to explain the code, again, pulling in context through the graph and through using code search that we think can be targeted. Basically, these are like laser beams that allow us to focus on key pain points in the developer interloop, things that disrupt you, slow you down, and maybe take you out of flow. A ton of stuff there. That's all
21:09near term. In the longer term, I think the vision that we and a lot of folks are working toward is, hey, can we get to the point where the system can write the feature itself, the code writes itself, so to speak. An AI engineer, yeah. An AI engineer, exactly. The kind of interface for that, the way we describe it is, you know, can you take an issue description? It's either a bug report or the description of a new feature that you want to add. And can your system generate a pull request or a change set that implements the spec that you provide without human intervention or human supervision in the actual process of writing the code. And so in the long term, we are working towards that. I think we're still a little bit a ways from getting there. There will be kind of like a range
22:00of issues that can be supported in terms of complexity, right? Like there's certain like bugs and issues that, you know, in whole are kind of a form of toil. Like no one wants to do them because it's kind of like busy work, even though it might be really important busy work, you know, like keeping your dependencies up to date and things like that. Those are probably the things that we'll tackle first, be able to completely automate first, and then we'll slowly work our way up towards more sophisticated features. Migrating database schema. Yeah, exactly. There's probably maybe like a two by two you want to draw here between like how tedious is it and how high stakes is it? And, you know, we'll slowly try to migrate up
22:40into the upper right quadrant. You don't trust my AI to do that yet actually i i do want to talk about the constraints because like i've been thinking a bunch about this too and um like one if you take inspiration from the iterative process of real humans writing code and i'm like okay like you know there's there's pseudocode in my head and i'm going to test something and then i gotta like remember how something works there's now one within a small community of people working on this, like increasingly interesting vein of thought, which is like, okay, we're going to invest more in sometimes people call it system to thinking or, you know, variations of test time search, like generate more samples.
23:19And because it is code do different types of validation, right? There's another school that's just like make the model better, right? Like we don't need, we just need more validation, right? Yeah. There's another school that's just like, make the model better, right? Like we don't need validation. We just need more reasoning, right? I don't know if there's others that you think about, but like, are those the right dimensions of constraint? Like be more right in terms of what we show the end user or just, you know, have the model. Yeah. So, I mean, just to restate what you just said, I think that's a good way to slice it. Like the two examples you mentioned, it was like, okay, like is the approach just integrate
23:52validation methods into the kind of like chain of thought and execution? And maybe we can get by with like small dumb models, as long as there's a feedback loop and work. Or what we have today, right? Or what we have today. Yeah. And then another school of thought would be like, hey, we really need just much smarter models who don't make the same sorts of stupid mistakes as are made today. I think that's an interesting way to slice it. Another way to slice it that has been kind of top of mind for me is if your goal is issue to pull request, one way to do it is you could take a model of whatever size and basically decompose that task down into subtasks. So if you're trying to implement this complex feature, which files do you need to edit?
24:46What functions do you add to each file? And what unit tests do you need to validate that functionality? You can kind of keep decomposing it until you're at the level where today's language models can solve that. And then you kind of chain them together, right? So that's kind of one way. It's kind of like the break it down and then build it from the bottom up. The other way to do this is just, I mean, you could just say like, the first way is wrong. Like the first way is how humans do it, but you know, it's not necessarily the case that the best way to do it for a machine is the way that humans do it. Another way you could do it is just say like, hey, let's expand the context window of the model so I can attend to, you know, a large chunk of the existing code
25:22base and then just ask it to generate the diff. And if that is reliable enough, it'll probably be unreliable, but if it's reliable enough such that it works 1% of the time, then you can just roll the dice 100 times. And as long as you have a validation mechanism, as long as it outputs the unit tests, which you can kind of quickly review, then you just roll the dice 100 times. And chances are at least one of them will be correct. And that's the one that you go with. And that's kind of the latter approach is kind of the approach that papers like, you know, AlphaCode or systems like AlphaCode take when they're trying to tackle these like programming competition type problems. So the limiting factor in the first approach, the bottom sub approach is
26:07what percentage of time does like a single step in your whole process work? Because you're essentially rolling the dice, you know, n times. And if each, your success rate each time is like 90%, then it basically decays to zero the longer your chain of execution is. So the more steps that are required, the exponentially less likely you're going to get all the way to full success is. And right now, I think the fidelity of today's systems far less than 90% for each step. So I think this is the issue that everyone building agents in that way is encountering is like, you know, you have compounding failure. Yeah. You can have compounding failure. And then, I mean, you have a kind of similar issue on the other side of things,
26:56which is like, if you're trying to do the alpha code thing, they've gotten that to work decently well for programming language competition style problems, but working, but building a new feature within the context of a large code base, if you try to zero shot it, I think the number of times you'd have to roll the dice would be basically cost prohibitive or time prohibitive. For both approaches, I think context quality can play a key role because what we found is for Kodi, for example, when our context fetching engine works, the quality of code generated by Kodi, it's like night and day. The ability for today's LLMs to kind of like pick up on patterns in the existing code, understand what the existing APIs are in use,
27:42pick up on like the testing framework they're using. It's like really, really good. And so it raises the reliability level up from, this is a complete dice roll. We definitely need to keep the cube in the loop to the point where you're like, okay, maybe if we improve this context fetching engine just a little bit more, we can get to the point where we can start chaining these two, three, four step workflows together into something that works. So I guess the short answer to your question, like how do we get to more reliable agents? For us, the answer relies heavily on context quality and fetching the right context for the right use cases quickly. I have a lot of optimism when if you look at this as just like a, it's just an engineering problem with a pipeline that has a bunch of different inputs, each of which you can improve from here.
28:36And you're doing tradeoffs against improvement in any part of that pipeline. And like that, that could include how we turn that natural language issue into something that a model can plan from or that we decompose. Right. To what the context quality is to solve that to what is the, you know, efficiency tradeoff of like go sample new solutions from the language model versus what is the quality of your feedback from runtime evaluation. And there's different types of feedback you could get. I assume that there's some, for any given level of language model quality, there's some optimal pipeline. And I think we're very far from that today. And then all of the dimensions are improving. So I still kind of think the AI engineer is going to come sooner rather than later.
29:22Yeah, I'm optimistic. You see very promising signs, especially when the context engine works. And I think you raise an interesting point. I think it still is a bit of an open question. I think maybe the question comes down to like, you know, this system, this AI engineer, how much of the architecture of that system is going to be captured at the model layer, you know, embedded in the parameters of some very large neural network or something that looks like a neural network versus how much of it is going to be in, I guess, a more traditional software system, kind of like a traditional, you know, boxes and arrows architecture. And yeah, my honest question is I'm not exactly sure. Like, it's not like we don't have any model layer stuff going on at all.
30:16It's certainly something that we're interested in. But I think our philosophy is we always want to do the simplest thing or like what feels like the simplest thing first um i think you know when i was doing machine learning research it was like a principle that i took away because doing the simple thing it it establishes a baseline like oftentimes you'll find that like the doing the fancier thing is often sexier uh and it's certainly these days it's like trendier right because you can kind of claim the mantle like, ah, you know, I made my own LLM, beyond LLM. And, you know, I trained it on my own data. Now I have, you know, AI or ML street cred, because I did something at the model layer. But the lesson I took away from my research days was
31:02really the importance of establishing a baseline. oftentimes if you do the fancy thing first, you might have something that looks like a good result because it's going to work to some degree. But then someone else might come along and do a much dumber, simpler thing, cheaper, and one that can be improved more iteratively. And it's going to work as well or better than your solution. There's many examples of that. I think the most recent example that comes to mind was there was some paper in Nature that was published where a research group trained a very large neural network to do climate prediction. Very important problem, predicting the weather. It's very tough, right? And the thought was using the power and magic of
31:45neural networks, we could actually train something to predict the weather. And lo and behold, you know, like it generated good predictions and it was published in Nature. And then a year later, there was another paper that was published in Nature where another research group trained a neural network for this exact same application. But in this case, the neural network was one neuron. It was literally just like a single aggregator. And that performed as well as the gigantic neural net. So it basically established a baseline first. And that was kind of like what informed our initial prioritization of RAG over fine-tuning. not that we don't think that there's value in fine tuning or there's value in training at the model layer. It's that RAG helps you establish a baseline. And I think you're still
32:35going to want to do RAG anyways. Even if you have fine tune models in the mix, RAG is still sort of this last mile data or context. And so you'll want to do that anyway. So why not do that first and establish a baseline that will actually inform where you want to invest in at the kind of training layer? I absolutely agree with that characterization. And I'd say if you approach RAG first, you'll benefit from improvements at the model layer, internal or external, right? Absolutely. One question for you before we zoom out from some of the technical stuff. Does the offering of small models like the 7 or 8 by 7B size that are quite capable, I think, surprised a lot of people from Mistral. Do small models that show higher level reasoning change your point of view at all
33:31or how you guys approach this? We're very bullish on small models. So we've actually integrated Mixtral into Kodi. You can use Mixtral as one of the models in Kodi chat as of last week. And it's just amazing to see the progress on that side. I mean, there's a lot to like about small models. They're cheaper and faster. And if you can make them approach the quality of the larger models for your specific use case, then it's a no-brainer to use them. I think we also like them in the context of completions. The primary model that Kodi uses for inline completions right now is StarCoder 7 billion. And with the benefit of context, that actually matches the performance of larger proprietary models. And we're just scratching the tip of what's possible there with
34:20context fetching right now. So I think we're very bullish on pushing that boundary up even further. And again, with a smaller model, inference goes much faster. It's also much cheaper, which means we can provide a faster, cheaper product to our users. What's not to like there? I think there is a question with the smaller models, specifically in the context of RAG, because I think there's been some research that shows that the kind of like in-context learning ability of large language models is a little bit emergent. Like it emerges at a certain level of model size or maybe a certain volume of like training data size. And if you fine tune a medium-sized model, sometimes it loses the ability to do effective in-context learning because I think the intuition is it's devoting more of its parameter space to kind of like memorizing the training set so it can do better kind of like road to completion rather than have something that approaches kind of like general reasoning ability.
35:21So that's something that we're kind of watchful for. And it does mean in certain use cases, chat, for instance, Kodi still uses some pretty large models for chat. And we have seen better results with models that have more of a kind of like general reasoning ability because they're able to better take advantage of the context that's fetched in. We can't, at this time of year, not make predictions. So one is just, you have thought about software development and how to change it for literally a decade now, probably longer since you had to think about it to start the company. What does it look like five years from now? That is a great question. Where my mind goes is, well, I guess to answer where software development will go in the next five years,
36:06maybe it's kind of informative to look at how it's evolved over the past. There's a similar work called The Mythical Man Month that was written in the 70s about software development that today, oddly enough, despite all the technological changes, still rings very true. And the core thesis of that book is that software development is this strange beast of knowledge work that's very difficult to measure. The common mistake that people make again and again is to treat it as some sort of like factory style work where, you know, commits or lines of code are kind of commodities. And the goal is just to try to like ship as many of those widgets out as possible. Whereas, you know, anyone who spent, you know,
36:53a month inside a software development or working as an actual software creator knows that there's such a high variance in terms of the impact that a line of code can make. You know, you have some features that eat up many lines of code that have very little business impact. And there's also kind of like one line changes that can be game changers for the product that you're building. And so when I look forward at how software development is going to change, I like to place it in the context of solving a lot of the challenges that that book called out in the 70s that still exist today. And I think the core problem of software development we need in today's world requires teams of software developers, often large teams, building complex systems, features that span many layers of stack. software development comes from the task of coordinating human labor across all these
38:05different pieces among many different people with different areas of specialization and also different incentives at play. And I think the real potential of large language models and AI more generally is to bring more cohesion to that process. And I think the gold standard is to really try to get a team of software developers to operate as if you are of one mind, one really, really insanely intelligent, productive person with kind of a coherence of vision and a unity of goals and a clarity of focus. And so there's a couple ways in which AI can do that. Well, specifically two. One is working from the bottoms up, making individual developers more productive such that more and more scope of software
38:59can be produced by a single human. If a single human brain is producing that software, then of course there will be more of a coherence of vision because it's just you that's building everything. And you can kind of ensure there's a consistency of experience and code quality there. The other way of doing this is giving people responsible for the overall execution of software engineering team, the team lead or an engineering leader, director, visibility into how the code base is changing, actually helping you keep up to date with the changes that are happening across the area of code that is your responsibility. I don't know of a single director or VP level of engineering today that reads through the entire
39:49Git commit log of their code base because doing so would be just literally so tedious and so time consuming that you wouldn't have time for any other parts of the job that are very critical as an engineering leader. But with the benefit of AI, I think now we have a system that can read a lot of the code on your behalf and summarize the key bits and sort of grant engineering leaders at long last the sort of visibility and transparency into how the system as a whole is evolving so they can attend to the parts that need attention and also make visible to all the other people on the team how things are evolving so that everyone has kind of the context of the overall narrative that you're trying to drive when you're kind of shipping day
40:38to day and making changes to code base. I'm just gonna take this to its logical conclusion, Bayoung. So like, Brooks's law from this book was that adding manpower to a late software project makes it later, right? So I think the future is just me and like, you know, like a JIRA linear shortcut interface, a really good spec. And like one sprint later, my engineer is done because I didn't have to communicate with my team. That's it. Yeah. If your goal is to build software as it exists today, then yes, I think in the future, a single human will be able to build applications that today require large numbers of people, though. I think that the demand for software, we're nowhere close to reaching the demand for good, high-quality software. And I think human beings have a tendency to take any
41:33system or technology that we're given and kind of push it to the limits or stretch it as far as we can. So I think the other thing that's going to happen is that our ambitions as a species for building complex, sophisticated software are going to kind of grow with the capabilities that we have. And so I still think we will have large teams of software developers in the future. They will just, you know, each individual will be responsible for far more feature scope than they are today. And the system as a whole will be more for far more feature scope than they are today. And the system as a whole will be more sophisticated and more powerful. But people still have to coordinate. So what do you think will matter in that future in terms of what software engineers need to know
42:18how to do, right? And the little bit of color I'll give you here is we ran this hackathon early in the year for a bunch of talented undergrads who had built like, you know, they're working on startups, they built like really good machine learning demos or done interesting research or something. And so there are people who are like, I learned to code around AI tools, which is a wild idea to me. Like, I started on cursors, my first IDE or whatever. And a point of view that was a little surprising to me, and I think like March of this year was like, we just don't need to learn to code anymore, right? And I'm like, how could you say that? It's like, you know, like they don't even teach a garbage collection anymore, like grumpy old man. Like where's the CS fundamentals? Like,
43:03what do you think people need to know? Like, what would be valued? So my take on this, and here's the advice I would give to myself or, you know, a younger sibling or my child, you know, if they were, you know, at that age where they're trying to determine what skills they should invest in. I think coding is still going to be an incredibly valuable skill moving forward. I think in the limit, the things that are going to be valuable that are going to differentiate humans operating in collaboration with AI. If you think about like layers through which software delivers value, you know, at the very top, you have kind of like the product level concerns, the user level concerns. How do I design the appropriate user experience?
43:53How do I make this piece of software meet the business objectives that I'm trying to achieve? And then you have at the very bottom, the very low level, what data structures, what algorithms, what specific things underneath the hood are happening that are going to roll up to the high level goals that I want to achieve. And then you have like a lot of stuff in the middle that is really just mapping the low level capabilities that you're implementing to the high level goals that you're trying to achieve. And I think what AI will do is it will compress the middle because in the middle is really just a lot of abstractions and middleware and other things that are today necessary and today require a lot of human labor to implement. It's more boilerplatey. It's more tedious, repetitive, non-differentiating.
44:50It's more mechanical. But it's all necessary today because you got to connect the dots from the high-level goals to low-level functionality. But the actual creative points, the real linchpins around which software design turns are really going to be the high-level goals, like what you're trying to achieve, and then the low-level capabilities. My maybe a bit contrarian hot take here is that CS fundamentals, if anything, are going to grow in importance. The stuff you learn in the coding bootcamp, maybe that gets automated away. But the fundamentals of knowing which data structures, what their properties are, how you can compose them creatively into future because they'll just need less time spent on kind of like that middleware piece.
45:53So I still think CS fundamentals are very important and also domain expertise. So, you know, if you're trying to build software in a given domain, really understanding like what moves the needle in that domain is going to be really important. Awesome. Vang, I think we're out of time. It was a great conversation. Thank you so much for doing this. Thank you so much for having me. This was really fun. Find us on Twitter at NoPriorsPod. Subscribe to our YouTube channel if you want to see our faces. Follow the show on Apple Podcasts, Spotify, or wherever you listen. That way you get a new episode every week. And sign up for emails or find transcripts for every episode at no-fires.com.
Have a recording of your own? Paste a link or upload it.
WhipScribe sends back a timestamped transcript, like the one on this page.
Every recording starts with a free preview. Full transcripts come in packs from $4 for 300 minutes. Uploads up to 10 hours or 5 GB.





