Midjourney/Every illustration.

I’ve Stopped Writing Prompts—DSPy Does It Better

AI engineer and Every columnist Michael Taylor recently stopped by our New York office for a tutorial on how the prompt optimization tool works

21

This piece is more technical than we usually publish—because you’ll be learning alongside our builders via a video tutorial linked below. DSPy is a prompt optimization framework for improving prompt quality and reliability that Every columnist Michael Taylor taught to Spiral general manager Danny Aziz, Cora general manager Kieran Klaassen, and Cora engineer Nityesh Agarwal. Watch the walkthrough and follow their steps to improve your own prompts.Kate Lee

Was this newsletter forwarded to you? Sign up to get it in your inbox.


Working with LLMs is weird—you don’t always know what prompt will get the result you’re looking for.

Having worked with AI since OpenAI released the GPT-3 beta in 2020, I’ve used language models for everything from automating bank fraud detection to generating and testing thousands of variations of advertisements. For the past year-plus, I’ve written a monthly column for Every on the differences between what works for AIs and humans. I even wrote a book about prompt engineering, the delicate art of tweaking strings of words to get a model to do exactly what I want.

Lately, though, I’ve stopped writing prompts myself. Instead, I use DSPy, an automated prompt-optimization tool that is still relatively obscure, but powerful enough that it could soon do away with prompt engineers like myself. (Shopify CEO Tobi Lutke recently called DSPy “severely underhyped.”)

When DSPy started to gain traction, people breathlessly exclaimed that "prompt engineering is dead." Rather than take it personally, I learned how to use it, and started sending my clients better prompts optimized by DSPy. I can still beat DSPy if I try hard enough, but for anyone with the time and my five years of prompt engineering experience, you’re better off relying on DSPy.


Become a paid subscriber to Every to unlock this piece and learn:

  1. What DSPy is and how it makes your prompts better
  2. The three reasons why Michael is bullish on it
  3. A step-by-step tutorial on how to use it alongside the Every team
Subscribe to read the full article

The Only Subscription
You Need to Stay at the
Edge of AI

The essential toolkit for those shaping the future

"This might be the best value you
can get from an AI subscription."

- Jay S.

Mail Every Content
AI&I Podcast AI&I Podcast
Monologue Monologue
Cora Cora
Sparkle Sparkle
Spiral Spiral

Join 100,000+ leaders, builders, and innovators

Community members

Already have an account? Sign in

What is included in a subscription?

Daily insights from AI pioneers + early access to powerful AI tools

Pencil Front-row access to the future of AI
Check In-depth reviews of new models on release day
Check Playbooks and guides for putting AI to work
Check Prompts and use cases for builders