Background

AI prompt engineering in 2025: What works and what doesn’t | Sander Schulhoff (Learn Prompting, HackAPrompt)

Lenny's Podcast: Product | Career | Growth•19 de junio de 2025•5866•
Compartir episodio:Descargar

Descripción del Episodio

Sander Schulhoff is the OG prompt engineer. He created the very first prompt engineering guide on the internet (two months before ChatGPT’s release) and recently wrote the most comprehensive study of prompt engineering ever conducted (co-authored with OpenAI, Microsoft, Google, Princeton, and Stanford), analyzing over 1,500 academic papers and covering more than 200 prompting techniques. He also partners with OpenAI to run what was the first and is the largest AI red teaming competition, HackAPrompt, which helps discover the most state-of-the-art prompt injection techniques (i.e. ways to get LLMS to do things it shouldn’t). Sander teaches AI red teaming on Maven, advises AI companies on security, and has educated millions of people on the most state-of-the-art prompt engineering techniques.

In this episode, you’ll learn:

1. The 5 most effective prompt engineering techniques

2. Why “role prompting” and threatening the AI no longer works—and what to do instead

3. The two types of prompt engineering: conversational and product/system prompts

4. A primer on prompt injection and AI red teaming—including real jailbreak tactics that are still fooling top models

5. Why AI agents and robots will be the next major security threat

6. How to get started in AI red teaming and prompt engineering

7. Practical defense to put in place for your AI products

—

Brought to you by:

Eppo—Run reliable, impactful experiments

Stripe—Helping companies of all sizes grow revenue

Vanta—Automate compliance. Simplify security

—

Where to find Sander Schulhoff:

• X: https://x.com/sanderschulhoff

• LinkedIn: https://www.linkedin.com/in/sander-schulhoff/

• Website: https://sanderschulhoff.com/

• AI Red Teaming and AI Security Masterclass on Maven: https://bit.ly/44lLSbC

• Free Lightning Lesson “How to Secure Your AI System” on 6/24: https://bit.ly/4ld9vZL

—

Where to find Lenny:

• Newsletter: https://www.lennysnewsletter.com

• X: https://twitter.com/lennysan

• LinkedIn: https://www.linkedin.com/in/lennyrachitsky/

—

In this episode, we cover:

(00:00) Introduction to Sander Schulhoff

(04:29) The importance of prompt engineering

(06:30) Real-world applications and examples

(10:54) Basic prompt engineering techniques

(23:46) Advanced prompt engineering techniques

(29:00) The role of context and additional information

(39:24) Ensembling techniques and thought generation

(49:48) Conversational techniques for better results

(50:46) Introduction to prompt injection

(52:27) AI red teaming and competitions

(54:23) The growing importance of AI security

(01:02:45) Techniques to bypass AI safeguards

(01:05:21) Challenges in AI security and future outlook

(01:18:33) Misalignment and AI's potential risks

(01:25:03) Final thoughts and lightning round

—

Referenced:

• Reid Hoffman’s tweet about using AI agents: https://x.com/reidhoffman/status/1930416063616884822

• AI Engineer World’s Fair: https://www.ai.engineer/

• What Is Artificial Social Intelligence?: https://learnprompting.org/blog/asi

• Devin: https://devin.ai/

• Cursor: https://www.cursor.com/

• Inside Devin: The world’s first autonomous AI engineer that’s set to write 50% of its company’s code by end of year | Scott Wu (CEO and co-founder of Cognition): https://www.lennysnewsletter.com/p/inside-devin-scott-wu

• The rise of Cursor: The $300M ARR AI tool that engineers can’t stop using | Michael Truell (co-founder and CEO): https://www.lennysnewsletter.com/p/the-rise-of-cursor-michael-truell

• Granola: https://www.granola.ai/

• Building Lovable: $10M ARR in 60 days with 15 people | Anton Osika (CEO and co-founder): https://www.lennysnewsletter.com/p/building-lovable-anton-osika

• Inside Bolt: From near-death to ~$40m ARR in 5 months—one of the fastest-growing products in history | Eric Simons (founder & CEO of StackBlitz): https://www.lennysnewsletter.com/p/inside-bolt-eric-simons

• Behind the product: Replit | Amjad Masad (co-founder and CEO): https://www.lennysnewsletter.com/p/behind-the-product-replit-amjad-masad

• Everyone’s an engineer now: Inside v0’s mission to create a hundred million builders | Guillermo Rauch (founder and CEO of Vercel, creators of v0 and Next.js): https://www.lennysnewsletter.com/p/everyones-an-engineer-now-guillermo-rauch

• Technique #3: Examples in Prompts: From Zero-Shot to Few-Shot: https://learnprompting.org/docs/basics/few_shot?srsltid=AfmBOor2owyGXtzJZ8n0fJVCctM7UPZgZmH-mBuxRW4t9-kkaMd3LJVv

• The Prompt Report: Insights from the Most Comprehensive Study of Prompting Ever Done: https://learnprompting.org/blog/the_prompt_report?srsltid=AfmBOoo7CRNNCtavzhyLbCMxc0LDmkSUakJ4P8XBaITbE6GXL1i2SvA0

• State-of-the-Art Prompting for AI Agents | Y Combinator: https://www.youtube.com/watch?v=DL82mGde6wo

• Use XML tags to structure your prompts: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags

• Role Prompting: https://learnprompting.org/docs/basics/roles?srsltid=AfmBOor2jcxJQvWBZyFa030Qt0fIIov3hSiWvI9VFyjO-Qp478EPJIU7

• Is Role Prompting Effective?: https://learnprompting.org/blog/role_prompting?srsltid=AfmBOooiiyLD-0CsCYZ4m3SDhYOmtTyaTzeDo0FvK_i1x1gLM8MJS-Sn

• Introduction to Decomposition Prompting Techniques: https://learnprompting.org/docs/advanced/decomposition/introduction?srsltid=AfmBOoojJmTQgBlmSlGYQ8kl-JPpVUlLKkL4YcFGS5u54JyeumUwlcBI

• LLM Self-Evaluation: https://learnprompting.org/docs/reliability/lm_self_eval

• Philip Resnik on X: https://x.com/psresnik

• Anthropic’s CPO on what comes next | Mike Krieger (co-founder of Instagram): https://www.lennysnewsletter.com/p/anthropics-cpo-heres-what-comes-next

• Introduction to Ensembling Prompting: https://learnprompting.org/docs/advanced/ensembling/introduction?srsltid=AfmBOooGSyqsrjnEbXSYoKpG0ZlpT278NHQA6Fd8gMvNTJlWu7-qEYzh

• Random forest: https://en.wikipedia.org/wiki/Random_forest

• Chain-of-Thought Prompting: https://learnprompting.org/docs/intermediate/chain_of_thought?srsltid=AfmBOoqwE7SXlluy2sx_QY_VOKduyBplWtIWKEJaD6FkJW3TqeKPSJfx

• Prompt Injecting: https://learnprompting.org/docs/prompt_hacking/injection?srsltid=AfmBOoqGgqbfX

Episodios Recientes

AI prompt engineering in 2025: What works and what doesn’t | Sander Schulhoff (Learn Prompting, HackAPrompt)

Más podcasts de Sociedad y Cultura

Ver toda la categoría →
Sold a Story

Sold a Story

By shows

Sold a Story is an investigative podcast about how kids learn — what works in the classroom, the science behind those insights and why that research often doesn’t make it into schools. Season 1 revealed why so many kids are struggling to learn how to read, and it sparked a wave of change across the country. In Season 2, we go beyond reading to look at teaching itself.

The Code To Winning

The Code To Winning

By shows

<p>The Code To Winning is an engaging podcast that centers around insightful interviews with a diverse range of guests, including business leaders, entrepreneurs, start-ups, and CEOs. With a compelling motto, “Insights you need today to seize the world tomorrow,” the podcast delves into the strategic and practical aspects of success in the dynamic world of business. Through in-depth conversations, listeners gain valuable perspectives and strategies from accomplished individuals who have navigated the complexities of the business landscape. Those who know what it takes to win. Whether you’re an aspiring entrepreneur or an established professional, The Code To Winning offers a wealth of knowledge and inspiration to empower you on your journey to success. Tune in to unlock the secrets and strategies that can propel you towards achieving your goals in the ever-evolving business world.</p>

Psycho Politics with George Conway

Psycho Politics with George Conway

By shows

<div>American politics has gone a little psycho, and George Conway is here to make sense of it. Joined by friends, colleagues, and expert guests, George digs into the legal battles, political fights, elections, personalities, and power struggles shaping American politics, from Trump and the courts to primaries, the future of democracy, and whatever fresh absurdity is consuming Washington.</div>

THEE ANCHOR BABIES

THEE ANCHOR BABIES

By shows

Season 2

Market Maker

Market Maker

By shows

The AmplifyME Market Maker Podcast makes finance fun and easy to understand. Hosted by LinkedIn Top Voice Anthony Cheung, alongside trader-turned-founder Piers Curran and former investment banker and entrepreneur Stephen Barnett, each week they break down the biggest market stories and trends shaping the global economy. Get real insight, build your commercial awareness and learn how markets really work, with top guests from leading banks, hedge funds and asset managers sharing their expertise, career journeys and advice.

Unhedged

Unhedged

By shows

Katie Martin, Robert Armstrong and other markets nerds at the Financial Times explain the big ideas behind what’s happening in finance right now. Every Tuesday and Thursday.<hr><p style='color:grey; font-size:0.75em;'> Hosted on Acast. See <a style='color:grey;' target='_blank' rel='noopener noreferrer' href='https://acast.com/privacy'>acast.com/privacy</a> for more information.</p>

Lemonade Stand

Lemonade Stand

By shows

Three guys with the expertise to run a lemonade stand explain the world of business. a podcast by Aiden, Atrioc, and DougDoug. Part of the Vox Media Podcast Network.

Finect Talks

Finect Talks

By shows

<a href="https://go.ivoox.com/wv/premios26?c=6406" target="_blank">¡Vótame en los Premios iVoox 2026!</a> <br>Finect Talks, el podcast que te ayuda a invertir mejor. Hablamos de ahorro e inversi&oacute;n de una forma entretenida y con un invitado semanal. https://www.finect.com/