|
| 1 | +# Use Cases |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +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. |
| 6 | + |
| 7 | +## A Few Company Use Cases |
| 8 | + |
| 9 | +| **Name** | **Use Cases** | |
| 10 | +|---|---| |
| 11 | +| **[JetBlue](https://www.jetblue.com/)** | Multiple chatbot use cases. [Blog](https://www.databricks.com/blog/optimizing-databricks-llm-pipelines-dspy) | |
| 12 | +| **[Replit](https://replit.com/)** | Synthesize diffs using code LLMs using a DSPy pipeline. [Blog](https://blog.replit.com/code-repair) | |
| 13 | +| **[Databricks](https://www.databricks.com/)** | Research, products, and customer solutions around LM Judges, RAG, classification, and other applications. [Blog](https://www.databricks.com/blog/dspy-databricks) [Blog II](https://www.databricks.com/customers/ddi) | |
| 14 | +| **[Sephora](https://www.sephora.com/)** | Undisclosed agent usecases; perspectives shared in [DAIS Session](https://www.youtube.com/watch?v=D2HurSldDkE). | |
| 15 | +| **[Zoro UK](https://www.zoro.co.uk/)** | E-commerce applications around structured shopping. [Portkey Session](https://www.youtube.com/watch?v=_vGKSc1tekE) | |
| 16 | +| **[VMware](https://www.vmware.com/)** | RAG and other prompt optimization applications. [Interview in The Register.](https://www.theregister.com/2024/02/22/prompt_engineering_ai_models/) [Business Insider.](https://www.businessinsider.com/chaptgpt-large-language-model-ai-prompt-engineering-automated-optimizer-2024-3) | |
| 17 | +| **[Haize Labs](https://www.haizelabs.com/)** | Automated red-teaming for LLMs. [Blog](https://blog.haizelabs.com/posts/dspy/) | |
| 18 | +| **[Plastic Labs](https://www.plasticlabs.ai/)** | Different pipelines within Honcho. [Blog](https://blog.plasticlabs.ai/blog/User-State-is-State-of-the-Art) | |
| 19 | +| **[PingCAP](https://pingcap.com/)** | Building a knowledge graph. [Article](https://www.pingcap.com/article/building-a-graphrag-from-wikipedia-page-using-dspy-openai-and-tidb-vector-database/) | |
| 20 | +| **[Salomatic](https://langtrace.ai/blog/case-study-how-salomatic-used-langtrace-to-build-a-reliable-medical-report-generation-system)** | Enriching medical reports using DSPy. [Blog](https://langtrace.ai/blog/case-study-how-salomatic-used-langtrace-to-build-a-reliable-medical-report-generation-system) | |
| 21 | +| **[Truelaw](https://www.youtube.com/watch?v=O0F3RAWZNfM)** | How Truelaw builds bespoke LLM pipelines for law firms using DSPy. [Podcast](https://www.youtube.com/watch?v=O0F3RAWZNfM) | |
| 22 | +| **[Moody's](https://www.moodys.com/)** | Leveraging DSPy to optimize RAG systems, LLM-as-a-Judge, and agentic systems for financial workflows. | |
| 23 | +| **[Normal Computing](https://www.normalcomputing.com/)** | Translate specs from chip companies from English to intermediate formal languages | |
| 24 | +| **[Procure.FYI](https://www.procure.fyi/)** | Process messy, publicly available technology spending and pricing data via DSPy. | |
| 25 | +| **[RadiantLogic](https://www.radiantlogic.com/)** | AI 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. | |
| 26 | +| **[Raia](https://raiahealth.com/)** | Using DSPy for AI-powered Personal Healthcare Agents. | |
| 27 | +| **[Hyperlint](https://hyperlint.com)** | Uses DSPy to generate technical documentation. DSPy helps to fetch relevant information and synthesize that into tutorials. | |
| 28 | +| **[Starops](https://staropshq.com/) & [Saya](https://heysaya.ai/)** | Building research documents given a user's corpus. Generate prompts to create more articles from example articles. | |
| 29 | +| **[Tessel AI](https://tesselai.com/)** | Enhancing human-machine interaction with data use cases. | |
| 30 | +| **[Dicer.ai](https://dicer.ai/)** | Uses DSPy for marketing AI to get the most from their paid ads. | |
| 31 | +| **[Howie](https://howie.ai)** | Using DSPy to automate meeting scheduling through email. | |
| 32 | +| **[Isoform.ai](https://isoform.ai)** | Building custom integrations using DSPy. | |
| 33 | +| **[Trampoline AI](https://trampoline.ai)** | Uses DSPy to power their data-augmentation and LM pipelines. | |
| 34 | +| **[Pretrain](https://pretrain.com)** | Uses DSPy to automatically optimize AI performance towards user-defined tasks based on uploaded examples. | |
| 35 | + |
| 36 | +WIP. This list mainly includes companies that have public posts or have OKed being included for specific products so far. |
| 37 | + |
| 38 | + |
| 39 | +## A Few Papers Using DSPy |
| 40 | + |
| 41 | +| **Name** | **Description** | |
| 42 | +|---|---| |
| 43 | +| **[STORM](https://arxiv.org/abs/2402.14207)** | Writing Wikipedia-like Articles From Scratch. | |
| 44 | +| **[PATH](https://arxiv.org/abs/2406.11706)** | Prompts as Auto-Optimized Training Hyperparameters: Training Best-in-Class IR Models from Scratch with 10 Gold Labels | |
| 45 | +| **[WangLab @ MEDIQA](https://arxiv.org/abs/2404.14544)** | UofT's winning system at MEDIQA, outperforms the next best system by 20 points | |
| 46 | +| **[UMD's Suicide Detection System](https://arxiv.org/abs/2406.06608)** | Outperforms 20-hour expert human prompt engineering by 40% | |
| 47 | +| **[IReRa](https://arxiv.org/abs/2401.12178)** | Infer-Retrieve-Rank: Extreme Classification with > 10,000 Labels | |
| 48 | +| **[Unreasonably Effective Eccentric Prompts](https://arxiv.org/abs/2402.10949v2)** | General Prompt Optimization | |
| 49 | +| **[Palimpzest](https://arxiv.org/abs/2405.14696)** | A Declarative System for Optimizing AI Workloads | |
| 50 | +| **[AI Agents that Matter](https://arxiv.org/abs/2407.01502v1)** | Agent Efficiency Optimization | |
| 51 | +| **[EDEN](https://arxiv.org/abs/2406.17982v1)** | Empathetic Dialogues for English Learning: Uses adaptive empathetic feedback to improve student grit | |
| 52 | +| **[ECG-Chat](https://arxiv.org/pdf/2408.08849)** | Uses DSPy with GraphRAG for medical report generation | |
| 53 | +| **[DSPy Assertions](https://arxiv.org/abs/2312.13382)** | Various applications of imposing hard and soft constraints on LM outputs | |
| 54 | +| **[DSPy Guardrails](https://boxiyu.github.io/assets/pdf/DSPy_Guardrails.pdf)** | Reduce the attack success rate of CodeAttack, decreasing from 75% to 5% | |
| 55 | +| **[Co-STORM](https://arxiv.org/pdf/2408.15232)** | Collaborative STORM: Generate Wikipedia-like articles through collaborative discourse among users and multiple LM agents | |
| 56 | + |
| 57 | +## A Few Repositories (or other OSS examples) using DSPy |
| 58 | + |
| 59 | +| **Name** | **Description/Link** | |
| 60 | +|---|---| |
| 61 | +| **Stanford CS 224U Homework** | [Github](https://github.com/cgpotts/cs224u/blob/main/hw_openqa.ipynb) | |
| 62 | +| **STORM Report Generation (10,000 GitHub stars)** | [Github](https://github.com/stanford-oval/storm) | |
| 63 | +| **DSPy Redteaming** | [Github](https://github.com/haizelabs/dspy-redteam) | |
| 64 | +| **DSPy Theory of Mind** | [Github](https://github.com/plastic-labs/dspy-opentom) | |
| 65 | +| **Indic cross-lingual Natural Language Inference** | [Github](https://github.com/saifulhaq95/DSPy-Indic/blob/main/indicxlni.ipynb) | |
| 66 | +| **Optimizing LM for Text2SQL using DSPy** | [Github](https://github.com/jjovalle99/DSPy-Text2SQL) | |
| 67 | +| **DSPy PII Masking Demo by Eric Ness** | [Colab](https://colab.research.google.com/drive/1KZR1sGTp_RLWUJPAiK1FKPKI-Qn9neUm?usp=sharing) | |
| 68 | +| **DSPy on BIG-Bench Hard Example** | [Github](https://drchrislevy.github.io/posts/dspy/dspy.html) | |
| 69 | +| **Building a chess playing agent using DSPy** | [Github](https://medium.com/thoughts-on-machine-learning/building-a-chess-playing-agent-using-dspy-9b87c868f71e) | |
| 70 | +| **Ittia Research Fact Checking** | [Github](https://github.com/ittia-research/check) | |
| 71 | +| **Strategic Debate via Tree-of-Thought** | [Github](https://github.com/zbambergerNLP/strategic-debate-tot) | |
| 72 | +| **Sanskrit to English Translation App**| [Github](https://github.com/ganarajpr/sanskrit-translator-dspy) | |
| 73 | +| **DSPy for extracting features from PDFs on arXiv**| [Github](https://github.com/S1M0N38/dspy-arxiv) | |
| 74 | +| **DSPygen: DSPy in Ruby on Rails**| [Github](https://github.com/seanchatmangpt/dspygen) | |
| 75 | +| **DSPy Inspector**| [Github](https://github.com/Neoxelox/dspy-inspector) | |
| 76 | +| **DSPy with FastAPI**| [Github](https://github.com/diicellman/dspy-rag-fastapi) | |
| 77 | +| **DSPy for Indian Languages**| [Github](https://github.com/saifulhaq95/DSPy-Indic) | |
| 78 | +| **Hurricane: Blog Posts with Generative Feedback Loops!**| [Github](https://github.com/weaviate-tutorials/Hurricane) | |
| 79 | +| **RAG example using DSPy, Gradio, FastAPI, and Ollama**| [Github](https://github.com/diicellman/dspy-gradio-rag) | |
| 80 | +| **Synthetic Data Generation**| [Github](https://colab.research.google.com/drive/1CweVOu0qhTC0yOfW5QkLDRIKuAuWJKEr?usp=sharing) | |
| 81 | +| **Self Discover**| [Github](https://colab.research.google.com/drive/1GkAQKmw1XQgg5UNzzy8OncRe79V6pADB?usp=sharing) | |
| 82 | + |
| 83 | +TODO: This list in particular is highly incomplete. There are a couple dozen other good ones. |
| 84 | + |
| 85 | +## A Few Providers, Integrations, and related Blog Releases |
| 86 | + |
| 87 | +| **Name** | **Link** | |
| 88 | +|---|---| |
| 89 | +| **Databricks** | [Link](https://www.databricks.com/blog/dspy-databricks) | |
| 90 | +| **Zenbase** | [Link](https://zenbase.ai/) | |
| 91 | +| **LangWatch** | [Link](https://langwatch.ai/blog/introducing-dspy-visualizer) | |
| 92 | +| **Gradient** | [Link](https://gradient.ai/blog/achieving-gpt-4-level-performance-at-lower-cost-using-dspy) | |
| 93 | +| **Snowflake** | [Link](https://medium.com/snowflake/dspy-snowflake-140d6d947d73) | |
| 94 | +| **Langchain** | [Link](https://python.langchain.com/v0.2/docs/integrations/providers/dspy/) | |
| 95 | +| **Weaviate** | [Link](https://weaviate.io/blog/dspy-optimizers) | |
| 96 | +| **Qdrant** | [Link](https://qdrant.tech/documentation/frameworks/dspy/) | |
| 97 | +| **Weights & Biases Weave** | [Link](https://weave-docs.wandb.ai/guides/integrations/dspy/) | |
| 98 | +| **Milvus** | [Link](https://milvus.io/docs/integrate_with_dspy.md) | |
| 99 | +| **Neo4j** | [Link](https://neo4j.com/labs/genai-ecosystem/dspy/) | |
| 100 | +| **Lightning AI** | [Link](https://lightning.ai/lightning-ai/studios/dspy-programming-with-foundation-models) | |
| 101 | +| **Haystack** | [Link](https://towardsdatascience.com/automating-prompt-engineering-with-dspy-and-haystack-926a637a3f43) | |
| 102 | +| **Arize** | [Link](https://docs.arize.com/phoenix/tracing/integrations-tracing/dspy) | |
| 103 | +| **LlamaIndex** | [Link](https://github.com/stanfordnlp/dspy/blob/main/examples/llamaindex/dspy_llamaindex_rag.ipynb) | |
| 104 | +| **Langtrace** | [Link](https://docs.langtrace.ai/supported-integrations/llm-frameworks/dspy) | |
| 105 | +| **Langfuse** | [Link](https://langfuse.com/docs/integrations/dspy) | |
| 106 | + |
| 107 | +Credit: Some of these resources were originally compiled in the [Awesome DSPy](https://github.com/ganarajpr/awesome-dspy/tree/master) repo. |
0 commit comments