A curated list of awesome DSPy resources, projects, and other libraries. Inspired by the AI-generated research paper on the DSPy ecosystem.
DSPy is a framework from Stanford NLP for algorithmically optimizing language model (LM) prompts and weights, especially when LMs are used one or more times in a pipeline.
- stanfordnlp/dspy: The official GitHub repository for the DSPy framework.
- DSPy.ai: The official documentation website.
- GEPA (General-purpose Evolution Program for Agents): An advanced optimizer for DSPy from the original authors, enabling evolution of prompts and reasoning traces.
- davila7/DSPy-101: A comprehensive introductory course covering foundational concepts from Signatures to Optimizers.
- ten24bytes/dspy-demo: An exhaustive collection of over 30 tutorials in Jupyter notebooks and scripts, covering almost every feature of DSPy.
- gabrielvanderlei/DSPy-examples: A collection of concise and practical examples for common DSPy use cases.
- mbakgun/dspy-examples: A diverse set of examples showcasing patterns like parallel processing and typed JSON outputs.
- haasonsaas/dspy-0to1-guide: A comprehensive guide to getting started with DSPy.
- neoxelox/dspy-inspector: An essential Jupyter/VSCode widget for interactive inspection and visualization of DSPy program traces.
- seanchatmangpt/dspygen: A Ruby on Rails-style CLI for scaffolding new DSPy projects and modules quickly.
- GenseeAI/cognify: An AI agent and workflow auto-tuning framework that can optimize DSPy, LangChain, and LangGraph programs for quality, latency, and cost.
- Retrieval-Augmented Generation (RAG)
- ngshya/easyRAG: A blueprint for a complete, local RAG application using ColBERTv2, DSPy, and a Streamlit UI.
- vansh-khaneja/Chat-Multiple-Docs-Indexify: A RAG system for querying multiple PDFs using Indexify, DSPy, and Llama 3.
- Agentic Frameworks
- jmanhype/aidevos: An ambitious project to create an AI-driven autonomous DevOps system using a multi-agent framework built with DSPy.
- HendrikReh/dspy-multi-agent: A multi-agent system where research and writing agents collaborate to produce articles.
- Advanced Prompting & Structured Data
- haasonsaas/dspy-advanced-prompting: Reusable DSPy modules for state-of-the-art prompting techniques like "Manager-Style Prompts" and "Meta-Prompting".
- S1M0N38/dspy-arxiv: A practical project for extracting structured data from academic papers on arXiv.
- Observability & MLOps
- Scale3-Labs/dspy-examples: Well-structured examples demonstrating best practices and integration with the Langtrace observability tool.
- Vector Databases & Knowledge Graphs
- kuzudb/dspy-kuzu-demo: An example of using DSPy with the KuzuDB graph database for data enrichment.
- rachittshah/DSpy-KGs: Automated knowledge graph construction from text using DSPy and Neo4j.
- Web Frameworks
- dspy-gradio-rag: An example of building an interactive RAG web app with Gradio, FastAPI, and DSPy.
The DSPy paradigm of "programming, not prompting" has inspired native re-implementations in several other languages.
- TypeScript: ax-llm/ax - A framework bringing DSPy's core concepts to the TypeScript/JavaScript ecosystem with a focus on type safety and production-readiness.
- Elixir: nshkrdotcom/DSPex - A DSPy orchestrator in Elixir, leveraging the fault-tolerance and concurrency of the BEAM.
- Elixir: arthurcolle/dspy.ex - An idiomatic Elixir implementation of DSPy's core features, built on OTP principles for robust, concurrent systems.
- Go: selfreliantob/dspy-go - A native Go implementation designed for performance, static typing, and modularity.
- Ruby: dspy-rb - A production-ready Ruby gem with a focus on developer experience and deep integrations with observability platforms.
Contributions are welcome! Please open an issue or pull request to add more awesome DSPy resources.