{"embed":false,"podcast":"Latent Space: The AI Engineer Podcast","podcast_slug":"Latent-Space-The-AI-Engineer-Podcast","tags":[],"thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","episode":"The \"Normsky\" architecture for AI coding agents — with Beyang Liu + Steve Yegge of SourceGraph","episode_slug":"Latent-Space-The-AI-Engineer-Podcast-The-Normsky-architecture-for-AI-coding-agents-with-Beyang-Liu-Steve-Yegge-of-SourceGraph","description":"We are running an end of year survey for our listeners. Let us know any feedback you have for us, what episodes resonated with you the most, and guest requests for 2024!  RAG has emerged as one of the key pieces of the AI Engineer stack. Jerry from LlamaIndex called it a “hack”, Bryan from Hex compared it to “a recommendation system from LLMs”, and even LangChain started with it. RAG is crucial in any AI coding workflow. We talked about context quality for code in our Phind episode. Today’s guests, Beyang Liu and Steve Yegge from SourceGraph, have been focused on code indexing and retrieval for over 15 years. We locked them in our new studio to record a 1.5 hours masterclass on the history of code search, retrieval interfaces for code, and how they get SOTA 30% completion acceptance rate in their Cody product by being better at the “bin packing problem” of LLM context generation. Google Grok → SourceGraph → CodyWhile at Google in 2008, Steve built Grok, which lives on today as Google Kythe. It allowed engineers to do code parsing and searching across different codebases and programming languages. (You might remember the infamous Google Platforms Rant from Steve’s time at Google, and his 2021 followup on GCP). Beyang was an intern at Google at the same time, and Grok became the inspiration to start SourceGraph in 2013. The two didn’t know eachother personally until Beyang brought Steve out of retirement 9 years later to join him as VP Engineering. Fast forward 10 years, SourceGraph has become to best code search tool out there and raised $223M along the way. Nine months ago, they open sourced SourceGraph Cody, their AI coding assistant. All their code indexing and search infrastructure allows them to get SOTA results by having better RAG than competitors:* Code completions as you type that achieve an industry-best Completion Acceptance Rate (CAR) as high as 30% using a context-enhanced open-source LLM (StarCoder)* Context-aware chat that provides the option of using GPT-4 Turbo, Claude 2, GPT-3.5 Turbo, Mistral 7x8B, or Claude Instant, with more model integrations planned* Doc and unit test generation, along with AI quick fixes for common coding errors* AI-enhanced natural language code search, powered by a hybrid dense/sparse vector search engine There are a few pieces of infrastructure that helped Cody achieve these results:Dense-sparse vector retrieval system For many people, RAG = vector similarity search, but there’s a lot more that you can do to get the best possible results. From their release:\"Sparse vector search\" is a fancy name for keyword search that potentially incorporates LLMs for things like ranking and term expansion (e.g., \"k8s\" expands to \"Kubernetes container orchestration\", possibly weighted as in SPLADE): * Dense vector retrieval makes use of embeddings, the internal representation that LLMs use to represent text. Dense vector retrieval provides recall over a broader set of results that may have no exact keyword matches but are still semantically similar. * Sparse vector retrieval is very fast, human-understandable, and yields high recall of results that closely match the user query. * We've found the approaches to be complementary.There’s a very goo…","release_date":"14 Dec 2023","episode_embed_code":"<iframe src=\"https://api.pastimeapp.com/embed/Latent-Space-The-AI-Engineer-Podcast-The-Normsky-architecture-for-AI-coding-agents-with-Beyang-Liu-Steve-Yegge-of-SourceGraph\" height=\"170px\" width=\"100%\" style=\"width: 1px; min-width: 100%; border: 1px dashed rgba(0,0,0,0.1); border-radius: 10px\" frameborder=\"0\" scrolling=\"no\" loading=\"lazy\"></iframe>","episode_share_url":"https://api.pastimeapp.com/ep/Latent-Space-The-AI-Engineer-Podcast-The-Normsky-architecture-for-AI-coding-agents-with-Beyang-Liu-Steve-Yegge-of-SourceGraph","podcast_share_url":"https://api.pastimeapp.com/pod/Latent-Space-The-AI-Engineer-Podcast","audio_url":"https://api.substack.com/feed/podcast/139766004/c0ad8bfde2971b1dffed911f471cecbe.mp3","ads":[],"meta":{"title":"Latent Space: The AI Engineer Podcast: The \"Normsky\" architecture for AI coding agents — with Beyang Liu + Steve Yegge of SourceGraph","description":"From Latent Space: The AI Engineer Podcast. We are running an end of year survey for our listeners. Let us know any feedback you have for us, what episodes resonated with you the most, and guest requests for 2024!  RAG has emerged as one of the key pieces of the AI Engineer stack. Jerry from LlamaIndex called it a “hack”, Bryan from Hex compared it to “a recommendation system from LLMs”, and even LangChain started with it. RAG is crucial in any AI coding workflow. We talked about context quality for code in our Phind episode. Today’s guests, Beyang Liu and Steve Yegge from SourceGraph, have been focused on code indexing and retrieval for over 15 years. We locked them in our new studio to record a 1.5 hours masterclass on the history of code search, retrieval interfaces for code, and how they get SOTA 30% completion acceptance rate in their Cody product by being better at the “bin packing problem” of LLM context generation. Google Grok → SourceGraph → CodyWhile at Google in 2008, Steve built Grok, which lives on today as Google Kythe. It allowed engineers to do code parsing and searching across different codebases and programming languages. (You might remember the infamous Google Platforms Rant from Steve’s time at Google, and his 2021 followup on GCP). Beyang was an intern at Google at the same time, and Grok became the inspiration to start SourceGraph in 2013. The two didn’t know eachother personally until Beyang brought Steve out of retirement 9 years later to join him as VP Engineering. Fast forward 10 years, SourceGraph has become to best code search tool out there and raised $223M along the way. Nine months ago, they open sourced SourceGraph Cody, their AI coding assistant. All their code indexing and search infrastructure allows them to get SOTA results by having better RAG than competitors:* Code completions as you type that achieve an industry-best Completion Acceptance Rate (CAR) as high as 30% using a context-enhanced open-source LLM (StarCoder)* Context-aware chat that provides the option of using GPT-4 Turbo, Claude 2, GPT-3.5 Turbo, Mistral 7x8B, or Claude Instant, with more model integrations planned* Doc and unit test generation, along with AI quick fixes for common coding errors* AI-enhanced natural language code search, powered by a hybrid dense/sparse vector search engine There are a few pieces of infrastructure that helped Cody achieve these results:Dense-sparse vector retrieval system For many people, RAG = vector similarity search, but there’s a lot more that you can do to get the best possible results. From their release:\"Sparse vector search\" is a fancy name for keyword search that potentially incorporates LLMs for things like ranking and term expansion (e.g., \"k8s\" expands to \"Kubernetes container orchestration\", possibly weighted as in SPLADE): * Dense vector retrieval makes use of embeddings, the internal representation that LLMs use to represent text. Dense vector retrieval provides recall over a broader set of results that may have no exact keyword matches but are still semantically similar. * Sparse vector retrieval is very fast, human-understandable, and yields high recall of results that closely match the user query. * We've found the approaches to be complementary.There’s a very goo…","image":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","twitter":{"card_type":"summary"}},"episode_data":{"id":1816537259,"guid":"substack:post:139766004","slug":"Latent-Space-The-AI-Engineer-Podcast-The-Normsky-architecture-for-AI-coding-agents-with-Beyang-Liu-Steve-Yegge-of-SourceGraph","title":"The \"Normsky\" architecture for AI coding agents — with Beyang Liu + Steve Yegge of SourceGraph","alias":null,"description":"<p><em>We are running an </em><a target=\"_blank\" href=\"https://docs.google.com/forms/d/e/1FAIpQLSeCg-mQiox_Si5do-1ZIrVg9hPe5IFMjc39gfHdSp3-UaAPDg/viewform\" rel=\"noreferrer\"><em>end of year survey</em></a><em> for our listeners. Let us know any feedback you have for us, what episodes resonated with you the most, and guest requests for 2024!  </em></p><p>RAG has emerged as one of the key pieces of the AI Engineer stack. Jerry from LlamaIndex <a target=\"_blank\" href=\"https://www.latent.space/p/llamaindex#details\" rel=\"noreferrer\">called it a “hack”</a>, Bryan from Hex <a target=\"_blank\" href=\"https://www.latent.space/p/bryan-bischof\" rel=\"noreferrer\">compared it to “a recommendation system from LLMs”</a>, and even LangChain <a target=\"_blank\" href=\"https://www.latent.space/p/langchain\" rel=\"noreferrer\">started with it</a>. </p><p>RAG is crucial in any AI coding workflow. We talked about context quality for code in our <a target=\"_blank\" href=\"https://www.latent.space/p/phind#details\" rel=\"noreferrer\">Phind episode</a>. Today’s guests, <a target=\"_blank\" href=\"https://twitter.com/beyang\" rel=\"noreferrer\">Beyang Liu</a> and <a target=\"_blank\" href=\"https://sites.google.com/site/steveyegge2/home?pli=1\" rel=\"noreferrer\">Steve Yegge</a> from <a target=\"_blank\" href=\"https://sourcegraph.com/\" rel=\"noreferrer\">SourceGraph</a>, have been focused on code indexing and retrieval for over 15 years. We locked them in our new studio to record a 1.5 hours masterclass on the history of code search, retrieval interfaces for code, and how they get <strong>SOTA 30% completion acceptance rate</strong> in their <a target=\"_blank\" href=\"https://about.sourcegraph.com/cody\" rel=\"noreferrer\">Cody</a> product by being better at the “bin packing problem” of LLM context generation. </p><p>Google Grok → SourceGraph → Cody</p><p>While at Google in 2008, Steve built Grok, which lives on today as <a target=\"_blank\" href=\"https://kythe.io/\" rel=\"noreferrer\">Google Kythe</a>. It allowed engineers to do code parsing and searching across different codebases and programming languages. (You might remember <a target=\"_blank\" href=\"https://gist.github.com/chitchcock/1281611\" rel=\"noreferrer\">the infamous Google Platforms Rant</a> from Steve’s time at Google, and his <a target=\"_blank\" href=\"https://arstechnica.com/gadgets/2021/07/google-cloud-offers-a-model-for-fixing-googles-product-killing-reputation/\" rel=\"noreferrer\">2021 followup on GCP</a>). </p><p>Beyang was an intern at Google at the same time, and Grok became the inspiration to start SourceGraph in 2013. The two didn’t know eachother personally until Beyang brought Steve <a target=\"_blank\" href=\"https://podcasts.apple.com/us/podcast/stt-e49-im-un-retiring/id1595532041?i=1000564478227\" rel=\"noreferrer\">out of retirement</a> 9 years later to join him as VP Engineering. Fast forward 10 years, <strong>SourceGraph has become to best code search tool out there and raised $223M along the way</strong>. </p><p>Nine months ago, they open sourced <a target=\"_blank\" href=\"https://github.com/sourcegraph/cody\" rel=\"noreferrer\">SourceGraph Cody</a>, their AI coding assistant. All their code indexing and search infrastructure allows them to get SOTA results by having better RAG than competitors:</p><p>* <strong>Code completions</strong> as you type that achieve an industry-best <strong>Completion Acceptance Rate (CAR) as high as 30%</strong> using a context-enhanced open-source LLM (StarCoder)</p><p>* <strong>Context-aware chat</strong> that provides the option of using <strong>GPT-4 Turbo, Claude 2, GPT-3.5 Turbo, Mistral 7x8B, or Claude Instant</strong>, with more model integrations planned</p><p>* <strong>Doc and unit test generation</strong>, along with <strong>AI quick fixes</strong> for common coding errors</p><p>* <strong>AI-enhanced natural language code search</strong>, powered by a hybrid dense/sparse vector search engine </p><p>There are a few pieces of infrastructure that helped Cody achieve these results:</p><p>Dense-sparse vector retrieval system </p><p>For many people, RAG = vector similarity search, but there’s a lot more that you can do to get the best possible results. From their release:</p><p>\"<strong>Sparse vector search</strong>\" is a fancy name for keyword search that potentially incorporates LLMs for things like ranking and term expansion (e.g., \"k8s\" expands to \"Kubernetes container orchestration\", possibly weighted as in <a target=\"_blank\" href=\"https://arxiv.org/abs/2107.05720\" rel=\"noreferrer\">SPLADE</a>): </p><p>* Dense vector retrieval makes use of embeddings, the internal representation that LLMs use to represent text. Dense vector retrieval provides recall over a broader set of results that may have no exact keyword matches but are still semantically similar. </p><p>* Sparse vector retrieval is very fast, human-understandable, and yields high recall of results that closely match the user query. </p><p>* We've found the approaches to be complementary.</p><p>There’s a very goo…</p>","transcript":"","deepgram":null,"categories":"Technology,Science","duration":4777,"episode_number":null,"season":null,"episode_type":null,"release_date":"2023-12-14T18:48:22.000Z","audio_url":"https://api.substack.com/feed/podcast/139766004/c0ad8bfde2971b1dffed911f471cecbe.mp3","image_url":null,"player_url":"/ep/Latent-Space-The-AI-Engineer-Podcast-The-Normsky-architecture-for-AI-coding-agents-with-Beyang-Liu-Steve-Yegge-of-SourceGraph","valid":true,"accessTier":null,"created":"2026-10-12T06:04:09.239Z","updated":"2026-10-12T06:04:09.239Z","podcastId":1790,"podcast":{"id":1790,"slug":"Latent-Space-The-AI-Engineer-Podcast","name":"Latent Space: The AI Engineer Podcast","alias":null,"network":"","author":"Latent.Space","rss_url":"https://rss.flightcast.com/vgnxzgiwwzwke85ym53fjnzu.xml","description":"The podcast by and for AI Engineers! In 2025, over 10 million readers and listeners came to Latent Space to hear about news, papers and interviews in Software 3.0.\n\nWe cover Foundation Models changing every domain in Code Generation, Multimodality, AI Agents, GPU Infra and more, directly from the founders, builders, and thinkers involved in pushing the cutting edge. Striving to give you both the definitive take on the Current Thing down to the first introduction to the tech you'll be using in the next 3 months! We break news and exclusive interviews from OpenAI, Anthropic, Gemini, Meta (Soumith Chintala), Sierra (Bret Taylor), tiny (George Hotz), Databricks/MosaicML (Jon Frankle), Modular (Chris Lattner), Answer.ai (Jeremy Howard), et al. \n\nFull show notes always on https://latent.space\n\nSponsorship and business inquiries: business@latent.space <br /><br /><a href=\"https://www.latent.space?utm_medium=podcast\" rel=\"noreferrer\" target=\"_blank\">www.latent.space</a>","categories":"Technology,Science","itunes_type":null,"itunesTypeSource":null,"image_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2025-05-05T18:03:19.009Z","updated":"2026-10-12T06:04:09.239Z","tags":[]},"captions":[]},"podcast_data":{"id":1790,"slug":"Latent-Space-The-AI-Engineer-Podcast","name":"Latent Space: The AI Engineer Podcast","alias":null,"network":"","author":"Latent.Space","rss_url":"https://rss.flightcast.com/vgnxzgiwwzwke85ym53fjnzu.xml","description":"The podcast by and for AI Engineers! In 2025, over 10 million readers and listeners came to Latent Space to hear about news, papers and interviews in Software 3.0.\n\nWe cover Foundation Models changing every domain in Code Generation, Multimodality, AI Agents, GPU Infra and more, directly from the founders, builders, and thinkers involved in pushing the cutting edge. Striving to give you both the definitive take on the Current Thing down to the first introduction to the tech you'll be using in the next 3 months! We break news and exclusive interviews from OpenAI, Anthropic, Gemini, Meta (Soumith Chintala), Sierra (Bret Taylor), tiny (George Hotz), Databricks/MosaicML (Jon Frankle), Modular (Chris Lattner), Answer.ai (Jeremy Howard), et al. \n\nFull show notes always on https://latent.space\n\nSponsorship and business inquiries: business@latent.space <br /><br /><a href=\"https://www.latent.space?utm_medium=podcast\" rel=\"noreferrer\" target=\"_blank\">www.latent.space</a>","categories":"Technology,Science","itunes_type":null,"itunesTypeSource":null,"image_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2025-05-05T18:03:19.009Z","updated":"2026-10-12T06:04:09.239Z","tags":[]}}