Lenny's Podcast: Product | Career | Growth

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

6445 snips
Jun 19, 2025
Sander Schulhoff, the pioneer of prompt engineering and partner with OpenAI for HackAPrompt, shares his extensive insights into AI's future. He discusses the five most effective prompting techniques and why traditional methods like role prompting are losing effectiveness. Sander reveals real jailbreak tactics still fooling top models and stresses the importance of defending against prompt injection. He also highlights the rising security threat posed by AI agents and provides guidance on getting started in AI red teaming.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes

Medical Coding Prompt Success

  • Sander increased GPT-4 medical coding accuracy by 70% using examples with explanations in prompts.
  • This practical example highlights prompt engineering's massive impact on domain-specific tasks.

Ensemble Multiple Prompts

  • Use ensembling by sending multiple differently prompted queries to the model for the same problem.
  • Aggregate results by majority vote to improve reliability and accuracy.

Still Use Chain of Thought Prompts

  • Despite advanced reasoning models, explicitly prompt "think step by step" for consistent reasoning output.
  • This ensures thorough reasoning, especially when processing large datasets or many queries.
Get the Snipd Podcast app to discover more snips from this episode
Get the app