Nathan Labenz sits down with engineer Shreya Rajpal, the creator of Guardrails AI, a new Python library that allows developers to add a layer of output, validation and correction to their code. Practically guardrails can ensure a reliable interface between language models and more traditional deterministic software systems. At the same time, mind-bending and potentially risky use case frameworks like Guardrails allow developers to ask and answer entirely new kinds of questions.\n\nTalking to Shreya really reinforced just how early we are in LLM\u2019s impact on the software industry. We were introduced to Shreya\u2019s work when recording our interview with Matt Welsh, the CEO of Fixie.AI (Ep 19: How AI Agents Will Change How We Work).\n\nLINKS:\nGuardrails AI: https://shreyar.github.io/guardrails/\n\nWe're hiring across the board at Turpentine and for Erik's personal team on other projects he's incubating. He's hiring a Chief of Staff, EA, Head of Special Projects, Investment Associate, and more. For a list of JDs, check out: eriktorenberg.com.\n\nTIMESTAMPS:\n(00:00) Episode preview\n(05:00) Why Shreya built Guardrails AI\n(08:33) Common ways LMs can \u201cgo off the rails\u201d and how Guardrails can correct it\n(13:45) Discussion of validators\n(15:31) Sponsor: Omneky\n(18:48) Business and creative use cases of Guardrails AI\n(25:00) What can be achieved by Guardrails AI that cannot be achieved by traditional code\n(32:44) How agents work vs how Guardrails works\n(35:34) AI as shepherd vs delegating to AI and the role of human understanding\n(39:54) Trust deficit and risks\n(46:33) Is it realistic to imagine GPT-4 using Guardrails?\n(52:00) How Shreya thinks about security\n(57:02) How Shreya thinks about embeddings\n(1:05:05) How Shreya thinks about problemsolving with LMs\n(1:07:50) Shreya on OpenAI\u2019s Evals Library, Anthropic\u2019s Constitutional AI\n(1:12:55) Discussion of determinism\n(1:15:00) Recommendations for developers to minimize overhead\n(1:26:00) Predictions about providers in the space of LMs\n(1:29:30) Shreya\u2019s favorite AI tools\n(1:30:00) Would Shreya get a neuralink implant\n(1:31:50) Biggest hopes and fears for AI\n\nTWITTER:\n@CogRev_Podcast\n@ShreyaR (Shreya)\n@labenz (Nathan)\n@eriktorenberg (Erik)\n\nSPONSORS:\nShopify is the global commerce platform that helps you sell at every stage of your business. Shopify powers 10% of ALL eCommerce in the US. And Shopify's the global force behind Allbirds, Rothy's, and Brooklinen, and 1,000,000s of other entrepreneurs across 175 countries.From their all-in-one e-commerce platform, to their in-person POS system \u2013 wherever and whatever you're selling, Shopify's got you covered. With free Shopify Magic, sell more with less effort by whipping up captivating content that converts \u2013 from blog posts to product descriptions using AI. Sign up for $1/month trial period: https://shopify.com/cognitive\n\nThank you Omneky for sponsoring The Cognitive Revolution. Omneky is an omnichannel creative generation platform that lets you launch hundreds of thousands of ad iterations that actually work, customized across all platforms, with a click of a button. Omneky combines generative AI and real-time advertising data. Mention "Cog Rev" for 10% off.\n\nThis show is produced by Turpentine: a network of podcasts, newsletters, and more, covering technology, business, and culture \u2014 all from the perspective of industry insiders and experts. We\u2019re launching new shows every week, and we\u2019re looking for industry-leading sponsors \u2014 if you think that might be you and your company, email us at erik@turpentine.co.\n\nMusic Credit: MusicLM\n\nMore show notes and reading material released in our Substack: https://cognitiverevolution.substack.com