Jan 18, 2024 · 46m · no-priors

No Priors Ep. 47 | With Sourcegraph CTO Beyang Liu

Beyang Liu · 36m spoken Sarah Guo · 7m spoken
0:00 / 0:00
▶ Watch on YouTube →

gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions

Sourcegraph CTO Beyang Liu joins Sarah Guo on No Priors to discuss the architecture of retrieval-augmented coding assistants, the engineering challenges of autonomous developer agents, and why computer science fundamentals remain vital in the AI era.

How this conversation actually went

Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. The hosts hold 17.3% of the talking time here. How this is scored →

The hosts as informed peer 5.9 Guest teaching 3.4 Guest disagreement 1.4 The hosts pushing back 1.7
05100:0015:0030:0045:002:14–6:41 · The hosts as informed peer 5/10 Beyang Liu's AI Roots and Early Machine Learning Experiments Guo connects Liu's academic background under Daphne Koller with past podcast discussions and asks specific questions about the timeline of applying LLMs to code search. Liu shares his background in computer vision, graphical models, and Sourcegraph's early 2017-2018 embedding experiments.6:42–14:17 · The hosts as informed peer 6/10 Introducing Cody and the Architecture of Retrieval-Augmented Generation Guo prompts Liu on whether Sourcegraph combines traditional IR ranking with AST traversal. Liu provides a detailed technical breakdown of Cody's retrieval architecture, explaining two-tier retrieval using sparse vectors, parsing-level indexing, embeddings, and cross-encoder re-ranking.14:18–17:58 · The hosts as informed peer 7/10 Enterprise Code Quality, Specialized Embeddings, and Context Curation Guo demonstrates deep domain expertise regarding domain-specific embedding models like Voyage AI and challenges Liu on how customer codebase quality impacts retrieval. Liu agrees and details Cody's context filtering for deprecations and antipatterns.17:59–22:45 · The hosts as informed peer 5/10 Developer Inner Loop Optimization and the Autonomous AI Engineer Guo asks about the shift beyond chat and completions toward autonomous AI engineers and database schema migrations. Liu explains the distinction between the software development inner and outer loops, noting near-term toil reduction versus long-term autonomous pull request generation.22:45–29:22 · The hosts as informed peer 7/10 Addressing Compounding Errors and Reliability Bottlenecks in AI Agents Guo frames the AI engineer debate between System 2 test-time search/validation and larger model reasoning. Liu analyzes the failure modes of agentic step decomposition versus massive zero-shot sampling, arguing that context retrieval precision is the decisive factor in mitigating compounding errors.29:23–33:07 · The hosts as informed peer 6/10 Balancing System-Level Orchestration, Baseline Benchmarks, and Model Training Guo discusses system-level optimization pipelines. Liu emphasizes the research discipline of establishing baselines with simple RAG pipelines before resorting to complex fine-tuning, citing a Nature climate prediction paper as an analogy.33:08–35:42 · The hosts as informed peer 5/10 Evaluating Small Language Models and In-Context Reasoning Trade-Offs Guo questions how capable small open-weight models like Mixtral alter architecture choices. Liu explains that Cody leverages StarCoder 7B for fast completions while pointing out the in-context reasoning limitations that medium-sized models face during complex chat RAG.35:42–42:10 · The hosts as informed peer 6/10 Predictions for Software Development and Brooks's Law in the AI Era Guo invokes Brooks's Law to playfully suggest that future software creation will involve single-person teams directing AI engineers. Liu gently pushes back, arguing that human ambition and software demand will expand proportionally, preserving large coordinated engineering teams.42:11–46:10 · The hosts as informed peer 6/10 The Enduring Importance of Computer Science Fundamentals in Software Engineering Guo shares anecdotes of new developers relying entirely on AI tools and questioning the need for coding fundamentals. Liu counters with the thesis that AI will compress boilerplate middleware, elevating the importance of core computer science fundamentals and high-level product design.2:14–6:41 · Guest teaching 3/10 Beyang Liu's AI Roots and Early Machine Learning Experiments Guo connects Liu's academic background under Daphne Koller with past podcast discussions and asks specific questions about the timeline of applying LLMs to code search. Liu shares his background in computer vision, graphical models, and Sourcegraph's early 2017-2018 embedding experiments.6:42–14:17 · Guest teaching 4/10 Introducing Cody and the Architecture of Retrieval-Augmented Generation Guo prompts Liu on whether Sourcegraph combines traditional IR ranking with AST traversal. Liu provides a detailed technical breakdown of Cody's retrieval architecture, explaining two-tier retrieval using sparse vectors, parsing-level indexing, embeddings, and cross-encoder re-ranking.14:18–17:58 · Guest teaching 3/10 Enterprise Code Quality, Specialized Embeddings, and Context Curation Guo demonstrates deep domain expertise regarding domain-specific embedding models like Voyage AI and challenges Liu on how customer codebase quality impacts retrieval. Liu agrees and details Cody's context filtering for deprecations and antipatterns.17:59–22:45 · Guest teaching 3/10 Developer Inner Loop Optimization and the Autonomous AI Engineer Guo asks about the shift beyond chat and completions toward autonomous AI engineers and database schema migrations. Liu explains the distinction between the software development inner and outer loops, noting near-term toil reduction versus long-term autonomous pull request generation.22:45–29:22 · Guest teaching 4/10 Addressing Compounding Errors and Reliability Bottlenecks in AI Agents Guo frames the AI engineer debate between System 2 test-time search/validation and larger model reasoning. Liu analyzes the failure modes of agentic step decomposition versus massive zero-shot sampling, arguing that context retrieval precision is the decisive factor in mitigating compounding errors.29:23–33:07 · Guest teaching 4/10 Balancing System-Level Orchestration, Baseline Benchmarks, and Model Training Guo discusses system-level optimization pipelines. Liu emphasizes the research discipline of establishing baselines with simple RAG pipelines before resorting to complex fine-tuning, citing a Nature climate prediction paper as an analogy.33:08–35:42 · Guest teaching 4/10 Evaluating Small Language Models and In-Context Reasoning Trade-Offs Guo questions how capable small open-weight models like Mixtral alter architecture choices. Liu explains that Cody leverages StarCoder 7B for fast completions while pointing out the in-context reasoning limitations that medium-sized models face during complex chat RAG.35:42–42:10 · Guest teaching 3/10 Predictions for Software Development and Brooks's Law in the AI Era Guo invokes Brooks's Law to playfully suggest that future software creation will involve single-person teams directing AI engineers. Liu gently pushes back, arguing that human ambition and software demand will expand proportionally, preserving large coordinated engineering teams.42:11–46:10 · Guest teaching 3/10 The Enduring Importance of Computer Science Fundamentals in Software Engineering Guo shares anecdotes of new developers relying entirely on AI tools and questioning the need for coding fundamentals. Liu counters with the thesis that AI will compress boilerplate middleware, elevating the importance of core computer science fundamentals and high-level product design.2:14–6:41 · Guest disagreement 1/10 Beyang Liu's AI Roots and Early Machine Learning Experiments Guo connects Liu's academic background under Daphne Koller with past podcast discussions and asks specific questions about the timeline of applying LLMs to code search. Liu shares his background in computer vision, graphical models, and Sourcegraph's early 2017-2018 embedding experiments.6:42–14:17 · Guest disagreement 1/10 Introducing Cody and the Architecture of Retrieval-Augmented Generation Guo prompts Liu on whether Sourcegraph combines traditional IR ranking with AST traversal. Liu provides a detailed technical breakdown of Cody's retrieval architecture, explaining two-tier retrieval using sparse vectors, parsing-level indexing, embeddings, and cross-encoder re-ranking.14:18–17:58 · Guest disagreement 1/10 Enterprise Code Quality, Specialized Embeddings, and Context Curation Guo demonstrates deep domain expertise regarding domain-specific embedding models like Voyage AI and challenges Liu on how customer codebase quality impacts retrieval. Liu agrees and details Cody's context filtering for deprecations and antipatterns.17:59–22:45 · Guest disagreement 1/10 Developer Inner Loop Optimization and the Autonomous AI Engineer Guo asks about the shift beyond chat and completions toward autonomous AI engineers and database schema migrations. Liu explains the distinction between the software development inner and outer loops, noting near-term toil reduction versus long-term autonomous pull request generation.22:45–29:22 · Guest disagreement 2/10 Addressing Compounding Errors and Reliability Bottlenecks in AI Agents Guo frames the AI engineer debate between System 2 test-time search/validation and larger model reasoning. Liu analyzes the failure modes of agentic step decomposition versus massive zero-shot sampling, arguing that context retrieval precision is the decisive factor in mitigating compounding errors.29:23–33:07 · Guest disagreement 1/10 Balancing System-Level Orchestration, Baseline Benchmarks, and Model Training Guo discusses system-level optimization pipelines. Liu emphasizes the research discipline of establishing baselines with simple RAG pipelines before resorting to complex fine-tuning, citing a Nature climate prediction paper as an analogy.33:08–35:42 · Guest disagreement 1/10 Evaluating Small Language Models and In-Context Reasoning Trade-Offs Guo questions how capable small open-weight models like Mixtral alter architecture choices. Liu explains that Cody leverages StarCoder 7B for fast completions while pointing out the in-context reasoning limitations that medium-sized models face during complex chat RAG.35:42–42:10 · Guest disagreement 3/10 Predictions for Software Development and Brooks's Law in the AI Era Guo invokes Brooks's Law to playfully suggest that future software creation will involve single-person teams directing AI engineers. Liu gently pushes back, arguing that human ambition and software demand will expand proportionally, preserving large coordinated engineering teams.42:11–46:10 · Guest disagreement 2/10 The Enduring Importance of Computer Science Fundamentals in Software Engineering Guo shares anecdotes of new developers relying entirely on AI tools and questioning the need for coding fundamentals. Liu counters with the thesis that AI will compress boilerplate middleware, elevating the importance of core computer science fundamentals and high-level product design.2:14–6:41 · The hosts pushing back 1/10 Beyang Liu's AI Roots and Early Machine Learning Experiments Guo connects Liu's academic background under Daphne Koller with past podcast discussions and asks specific questions about the timeline of applying LLMs to code search. Liu shares his background in computer vision, graphical models, and Sourcegraph's early 2017-2018 embedding experiments.6:42–14:17 · The hosts pushing back 2/10 Introducing Cody and the Architecture of Retrieval-Augmented Generation Guo prompts Liu on whether Sourcegraph combines traditional IR ranking with AST traversal. Liu provides a detailed technical breakdown of Cody's retrieval architecture, explaining two-tier retrieval using sparse vectors, parsing-level indexing, embeddings, and cross-encoder re-ranking.14:18–17:58 · The hosts pushing back 2/10 Enterprise Code Quality, Specialized Embeddings, and Context Curation Guo demonstrates deep domain expertise regarding domain-specific embedding models like Voyage AI and challenges Liu on how customer codebase quality impacts retrieval. Liu agrees and details Cody's context filtering for deprecations and antipatterns.17:59–22:45 · The hosts pushing back 1/10 Developer Inner Loop Optimization and the Autonomous AI Engineer Guo asks about the shift beyond chat and completions toward autonomous AI engineers and database schema migrations. Liu explains the distinction between the software development inner and outer loops, noting near-term toil reduction versus long-term autonomous pull request generation.22:45–29:22 · The hosts pushing back 2/10 Addressing Compounding Errors and Reliability Bottlenecks in AI Agents Guo frames the AI engineer debate between System 2 test-time search/validation and larger model reasoning. Liu analyzes the failure modes of agentic step decomposition versus massive zero-shot sampling, arguing that context retrieval precision is the decisive factor in mitigating compounding errors.29:23–33:07 · The hosts pushing back 1/10 Balancing System-Level Orchestration, Baseline Benchmarks, and Model Training Guo discusses system-level optimization pipelines. Liu emphasizes the research discipline of establishing baselines with simple RAG pipelines before resorting to complex fine-tuning, citing a Nature climate prediction paper as an analogy.33:08–35:42 · The hosts pushing back 1/10 Evaluating Small Language Models and In-Context Reasoning Trade-Offs Guo questions how capable small open-weight models like Mixtral alter architecture choices. Liu explains that Cody leverages StarCoder 7B for fast completions while pointing out the in-context reasoning limitations that medium-sized models face during complex chat RAG.35:42–42:10 · The hosts pushing back 3/10 Predictions for Software Development and Brooks's Law in the AI Era Guo invokes Brooks's Law to playfully suggest that future software creation will involve single-person teams directing AI engineers. Liu gently pushes back, arguing that human ambition and software demand will expand proportionally, preserving large coordinated engineering teams.42:11–46:10 · The hosts pushing back 2/10 The Enduring Importance of Computer Science Fundamentals in Software Engineering Guo shares anecdotes of new developers relying entirely on AI tools and questioning the need for coding fundamentals. Liu counters with the thesis that AI will compress boilerplate middleware, elevating the importance of core computer science fundamentals and high-level product design.

speaking balance: gold is the hosts, purple is the guest (3 minute bins)

0:00 · the hosts 37% · guest 63%0:00 · the hosts 37% · guest 63%3:00 · the hosts 16.9% · guest 83.1%3:00 · the hosts 16.9% · guest 83.1%6:00 · the hosts 9.6% · guest 90.4%6:00 · the hosts 9.6% · guest 90.4%9:00 · the hosts 9.8% · guest 90.2%9:00 · the hosts 9.8% · guest 90.2%12:00 · the hosts 22.4% · guest 77.6%12:00 · the hosts 22.4% · guest 77.6%15:00 · the hosts 12.4% · guest 87.6%15:00 · the hosts 12.4% · guest 87.6%18:00 · the hosts 10.4% · guest 89.6%18:00 · the hosts 10.4% · guest 89.6%21:00 · the hosts 32% · guest 68%21:00 · the hosts 32% · guest 68%24:00 · the hosts 0.9% · guest 99.1%24:00 · the hosts 0.9% · guest 99.1%27:00 · the hosts 34.8% · guest 65.2%27:00 · the hosts 34.8% · guest 65.2%30:00 · the hosts 3.5% · guest 96.5%30:00 · the hosts 3.5% · guest 96.5%33:00 · the hosts 25.9% · guest 74.1%33:00 · the hosts 25.9% · guest 74.1%36:00 · the hosts 0% · guest 100%36:00 · the hosts 0% · guest 100%39:00 · the hosts 13.1% · guest 86.9%39:00 · the hosts 13.1% · guest 86.9%42:00 · the hosts 29.9% · guest 70.1%42:00 · the hosts 29.9% · guest 70.1%45:00 · the hosts 22.7% · guest 77.3%45:00 · the hosts 22.7% · guest 77.3%
Sharpest disagreement ▶ 41:05 Rebutting the single-developer future under Brooks's Law

Liu explicitly challenges Guo's hypothetical scenario of solo developers replacing teams, arguing that expanding software ambition will continually sustain large-scale engineering coordination.

Hardest push from the hosts ▶ 40:41 Taking Brooks's Law to its solo developer conclusion

Guo presses Liu on his coordination thesis by extrapolating Brooks's Law to argue that AI should logically eliminate team coordination entirely in favor of single-person execution.

Biggest teaching moment ▶ 26:00 Mathematical breakdown of compounding failure in agents

Liu educates on the mathematical decay of reliability in multi-step LLM chains, demonstrating why subtask decomposition fails without radical improvements in context precision.

The host holds their own ▶ 14:30 Citing specialized embedding models and customer data variance

Guo demonstrates sharp technical discernment by referencing emerging fine-tuned embedding vendors like Voyage and grilling Liu on managing messy legacy code quality.

the scores for every segment, with the reasoning behind each
ChapterTopicThe hosts as informed peerGuest teachingGuest disagreementThe hosts pushing backWhy
Beyang Liu's AI Roots and Early Machine Learning Experiments 5311 Guo connects Liu's academic background under Daphne Koller with past podcast discussions and asks specific questions about the timeline of applying LLMs to code search. Liu shares his background in computer vision, graphical models, and Sourcegraph's early 2017-2018 embedding experiments.
Introducing Cody and the Architecture of Retrieval-Augmented Generation 6412 Guo prompts Liu on whether Sourcegraph combines traditional IR ranking with AST traversal. Liu provides a detailed technical breakdown of Cody's retrieval architecture, explaining two-tier retrieval using sparse vectors, parsing-level indexing, embeddings, and cross-encoder re-ranking.
Enterprise Code Quality, Specialized Embeddings, and Context Curation 7312 Guo demonstrates deep domain expertise regarding domain-specific embedding models like Voyage AI and challenges Liu on how customer codebase quality impacts retrieval. Liu agrees and details Cody's context filtering for deprecations and antipatterns.
Developer Inner Loop Optimization and the Autonomous AI Engineer 5311 Guo asks about the shift beyond chat and completions toward autonomous AI engineers and database schema migrations. Liu explains the distinction between the software development inner and outer loops, noting near-term toil reduction versus long-term autonomous pull request generation.
Addressing Compounding Errors and Reliability Bottlenecks in AI Agents 7422 Guo frames the AI engineer debate between System 2 test-time search/validation and larger model reasoning. Liu analyzes the failure modes of agentic step decomposition versus massive zero-shot sampling, arguing that context retrieval precision is the decisive factor in mitigating compounding errors.
Balancing System-Level Orchestration, Baseline Benchmarks, and Model Training 6411 Guo discusses system-level optimization pipelines. Liu emphasizes the research discipline of establishing baselines with simple RAG pipelines before resorting to complex fine-tuning, citing a Nature climate prediction paper as an analogy.
Evaluating Small Language Models and In-Context Reasoning Trade-Offs 5411 Guo questions how capable small open-weight models like Mixtral alter architecture choices. Liu explains that Cody leverages StarCoder 7B for fast completions while pointing out the in-context reasoning limitations that medium-sized models face during complex chat RAG.
Predictions for Software Development and Brooks's Law in the AI Era 6333 Guo invokes Brooks's Law to playfully suggest that future software creation will involve single-person teams directing AI engineers. Liu gently pushes back, arguing that human ambition and software demand will expand proportionally, preserving large coordinated engineering teams.
The Enduring Importance of Computer Science Fundamentals in Software Engineering 6322 Guo shares anecdotes of new developers relying entirely on AI tools and questioning the need for coding fundamentals. Liu counters with the thesis that AI will compress boilerplate middleware, elevating the importance of core computer science fundamentals and high-level product design.

Statements from this episode (18)

Insight
Liu: Developers spend most time reading existing code, not writing new features
“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. Cause all that is a prerequisite for Being able to build quickly and efficiently.”
Beyang Liu Jan 18, 2024 ▶ 1:19
Prediction Not checkable as stated
Beyang Liu: Statistical learning and convex optimization will re-emerge in AI
“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 op…”
Beyang Liu Jan 18, 2024 ▶ 4:40
Insight
Beyang Liu: Keyword Search Solves Over 90% of RAG Retrieval
“I think if you talk 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.”
Beyang Liu Jan 18, 2024 ▶ 11:58
Insight
Beyang Liu: Parsing Semantic Code Entities Is Essential for Code Search
“We found it 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 and treat those as separate entities. In your system rather than…”
Beyang Liu Jan 18, 2024 ▶ 12:32
Prediction Not checkable as stated
Guo: Teams will adopt domain-specific and fine-tuned embedding models
“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, I think there's a lot of headroom on performance there.”
Sarah Guo Jan 18, 2024 ▶ 14:51
Insight
Liu: Data quality and structuring pipelines outweigh model architecture
“Your model architecture can only go so far if your data is, is garbage. So 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 …”
Beyang Liu Jan 18, 2024 ▶ 15:36
Assertion Partly supported
Liu: All production code AI tools today are developer inner-loop assistants
“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 proce…”
Beyang Liu Jan 18, 2024 ▶ 19:54
Prediction Not checkable as stated
Liu: AI engineering tools will automate tedious maintenance before complex features
“There will be kind of like a range of 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, e…”
Beyang Liu Jan 18, 2024 ▶ 21:59
Insight
Liu: Coding agent chains suffer compounding failure from sub-90% step fidelity
“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, is encountering is like, you know, you have compounding failure.”
Beyang Liu Jan 18, 2024 ▶ 26:38
Insight
Beyang Liu: Simpler baseline systems often match or beat fancy AI models
“Doing the simple thing, it establishes a baseline. Like oftentimes you'll find that like the doing the fancier thing is often sexier. And it's certainly these days it's like trendier, right? Cause you can kind of claim the mantle of like, ah, you know, I made …”
Beyang Liu Jan 18, 2024 ▶ 30:33
Insight
Beyang Liu: RAG remains necessary for context even with fine-tuned models
“I think you're still going to want to do RAG anyways. Like, even if you have fine tuned models in the mix, RAG is still sort of this, like, last mile data or context.”
Beyang Liu Jan 18, 2024 ▶ 32:35
Assertion Not checkable as stated
Liu: Sourcegraph Cody uses StarCoder 7B, matching larger models with context
“The primary model that Cody uses for inline completions right now is StarCoder seven billion. And with the benefit of context that actually matches the performance of you know, larger proprietary models.”
Beyang Liu Jan 18, 2024 ▶ 34:01
Insight
Liu: Fine-tuning medium models can harm their in-context learning ability
“And if you fine-tune a medium-sized-ish model, sometimes it loses the ability to do effective in context learning, because I think the intuition is, it's devoting more, more of its parameter space to, kind of, like, memorizing the training set so it can do bet…”
Beyang Liu Jan 18, 2024 ▶ 35:00
Insight
Liu: The Core Problem of Software Development Is Coordination and Visibility
“And I think the core problem of software development is, is one of coordination and visibility.”
Beyang Liu Jan 18, 2024 ▶ 37:32
Prediction Not checkable as stated
Liu: Single Developers Will Build Apps That Currently Require Large Teams
“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 to coordinate.”
Beyang Liu Jan 18, 2024 ▶ 41:06
Prediction Not checkable as stated
Liu: Software Teams Will Remain Large as Scope and Ambition Expand
“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 sophisticated and more power…”
Beyang Liu Jan 18, 2024 ▶ 41:53
Prediction Not checkable as stated
Beyang Liu: AI will compress boilerplate middleware in software engineering
“I think what AI will do is it will compress the middle because in the middle is really just a lot of, like, abstractions and middleware and other things that are today necessary and today, you know, require a lot of human labor to implement.”
Beyang Liu Jan 18, 2024 ▶ 44:22
Prediction Not checkable as stated
Beyang Liu: CS fundamentals will grow in importance in AI era
“My, maybe a bit contrarian hot take here is that CS Fundamentals if anything, are gonna grow in importance. You know, the stuff you learn in the coding bootcamp, maybe that gets, you know, automated away, but the fundamentals of knowing, you know, which data s…”
Beyang Liu Jan 18, 2024 ▶ 45:11
Made with StarZero

Turn any episode into a week of clips.

This entire site, over 100 episodes transcribed, diarized, checked and made playable, runs on the StarZero media pipeline. Drop in your own episode and the podcast clipper finds the moments worth sharing, cuts them, captions them, and reframes them for every feed.