Skip to main content

DSPy Use Cases

We often get questions like "How are people using DSPy in practice?", both in production and for research. This list was created to collect a few pointers and to encourage others in the community to add their own work below.

This list is ever expanding and highly incomplete (WIP)! We'll be adding a bunch more. If you would like to add your product or research to this list, please make a PR.

Table of Contents

  1. Company Use Cases
  2. Research Papers using DSPy
  3. Open-Source Software using DSPy
  4. Providers with DSPy support
  5. Blogs & Videos on using DSPy

A Few Company Use Cases

NameUse Cases
JetBlueMultiple chatbot use cases. Blog
ReplitSynthesize diffs using code LLMs using a DSPy pipeline. Blog
DatabricksResearch, products, and customer solutions around LM Judges, RAG applications, and classification tasks. Blog
SephoraUndisclosed agent usecases; perspectives shared in DAIS Session.
Zoro UKE-commerce applications around structured shopping. Portkey Session
VMwareRAG and other prompt optimization applications. Interview in The Register. Business Insider.
Haize LabsAutomated red-teaming for LLMs. Blog
Plastic LabsDifferent pipelines within Honcho. Blog
PingCAPBuilding a knowledge graph. Article
Moody'sLeveraging DSPy to optimize RAG systems, LLM-as-a-Judge, and agentic systems for financial workflows.
Normal ComputingTranslate specs from chip companies from English to intermediate formal languages
Procure.FYIProcess messy, publicly available technology spending and pricing data via DSPy.
RadiantLogicAI Data Assistant. DSPy is used for the agent that routes the query, the context extraction module, the text-to-sql conversion engine, and the table summarization module.
HyperlintUses DSPy to generate technical documentation. DSPy helps to fetch relevant information and synthesize that into tutorials.
Starops & SayaBuilding research documents given a user's corpus. Generate prompts to create more articles from example articles.
Tessel AIEnhancing human-machine interaction with data use cases.
Dicer.aiUses DSPy for marketing AI to get the most from their paid ads.
HowieUsing DSPy to automate meeting scheduling through email.
Isoform.aiBuilding custom integrations using DSPy.

WIP. This list mainly includes companies that have public posts or have OKed being included for specific products so far.

A Few Papers Using DSPy

NameDescription
STORMWriting Wikipedia-like Articles From Scratch.
PATHPrompts as Auto-Optimized Training Hyperparameters: Training Best-in-Class IR Models from Scratch with 10 Gold Labels
WangLab @ MEDIQAUofT's winning system at MEDIQA, outperforms the next best system by 20 points
UMD's Suicide Detection SystemOutperforms 20-hour expert human prompt engineering by 40%
IReRaInfer-Retrieve-Rank: Extreme Classification with > 10,000 Labels
Unreasonably Effective Eccentric PromptsGeneral Prompt Optimization
PalimpzestA Declarative System for Optimizing AI Workloads
AI Agents that MatterAgent Efficiency Optimization
EDENEmpathetic Dialogues for English Learning: Uses adaptive empathetic feedback to improve student grit
ECG-ChatUses DSPy with GraphRAG for medical report generation
DSPy AssertionsVarious applications of imposing hard and soft constraints on LM outputs
DSPy GuardrailsReduce the attack success rate of CodeAttack, decreasing from 75% to 5%
Co-STORMCollaborative STORM: Generate Wikipedia-like articles through collaborative discourse among users and multiple LM agents

A Few Repositories (or other OSS examples) using DSPy

NameDescription/Link
Stanford CS 224U HomeworkGithub
STORM Report Generation (10,000 GitHub stars)Github
DSPy RedteamingGithub
DSPy Theory of MindGithub
Indic cross-lingual Natural Language InferenceGithub
Optimizing LM for Text2SQL using DSPyGithub
DSPy PII Masking Demo by Eric NessColab
DSPy on BIG-Bench Hard ExampleGithub
Building a chess playing agent using DSPyGithub
Ittia Research Fact CheckingGithub
Strategic Debate via Tree-of-ThoughtGithub
Sanskrit to English Translation AppGithub
DSPy for extracting features from PDFs on arXivGithub
DSPygen: DSPy in Ruby on RailsGithub
DSPy InspectorGithub
DSPy with FastAPIGithub
DSPy for Indian LanguagesGithub
Hurricane: Blog Posts with Generative Feedback Loops!Github
RAG example using DSPy, Gradio, FastAPI, and OllamaGithub
Synthetic Data GenerationGithub
Self DiscoverGithub

TODO: This list in particular is highly incomplete. There are a couple dozen other good ones.

NameLink
DatabricksLink
ZenbaseLink
LangWatchLink
GradientLink
SnowflakeLink
LangchainLink
WeaviateLink
QdrantLink
Weights & Biases WeaveLink
MilvusLink
Neo4jLink
Lightning AILink
HaystackLink
ArizeLink
LLamaIndexLink
LangtraceLink

A Few Blogs & Videos on using DSPy

NameLink
Blog Posts
Why I bet on DSPyBlog
Not Your Average Prompt EngineeringBlog
Why I'm excited about DSPyBlog
Achieving GPT-4 Performance at Lower CostLink
Prompt engineering is a task best left to AI modelsLink
What makes DSPy a valuable framework for developing complex language model pipelines?Link
DSPy: A new framework to program your foundation models just by promptingLink
Intro to DSPy: Goodbye Prompting, Hello ProgrammingLink
DSPyGen: Revolutionizing AILink
Building an AI Assistant with DSPyLink
Videos
DSPy Explained! (60K views)Link
DSPy Intro from Sephora (25K views)Link
Structured Outputs with DSPyLink
DSPy and ColBERT - Weaviate PodcastLink
SBTB23 DSPyLink
Optimization with DSPy and LangChainLink
Automated Prompt Engineering + VisualizationLink
Transforming LM Calls into PipelinesLink
NeurIPS Hacker Cup: DSPy for Code GenLink
MIPRO and DSPy - Weaviate PodcastLink
Getting Started with RAG in DSPyLink
Adding Depth to DSPy ProgramsLink
Programming Foundation Models with DSPyLink
DSPy End-to-End: SF MeetupLink
Monitoring & Tracing DSPy with LangtraceLink
Teaching chat models to solve chess puzzles using DSPy + FinetuningLink

TODO: This list in particular is highly incomplete. There are dozens of other good ones. To allow space, divide into opintionated blogs / podcasts / interviews vs. tutorials & talks.

Credit: Some of these resources were originally compiled in the Awesome DSPy repo.

Weaviate has a directory of 10 amazing notebooks and 6 podcasts!

Huge shoutout to them for the massive support ❤️. See the Weaviate DSPy directory.