Skip to main content
AdOpenFree logoPromote your productReach more potential users and drive product growth and revenue.Advertise
Favicon of DSPy

DSPy

Free Listing

DSPy is a Python framework for building AI systems by expressing tasks as structured signatures instead of prompts, enabling maintainable, modular programs with modules and optimizers that tune prompts and weights.

Visit stanfordnlp/dspy

Overview

DSPy is a Python framework for building AI systems. Developers declare tasks as typed signatures and compose modules, then use optimizers to tune prompts and weights against a metric. The documentation covers tools, RAG, agents, multimodal fields, evaluation, and deployment topics.

Key Features

  • Structured signatures declare tasks as typed inputs and outputs instead of prompts.
  • Reusable modules such as Predict, ChainOfThought, and ReAct change execution strategy without rewriting the task.
  • Optimizers compile a program against a metric to improve output quality.
  • Programs can compose multiple signatures and modules using plain Python control flow.
  • Documented capabilities include tool use, RAG pipelines, agent loops, and image fields for multimodal tasks.

Use Cases

  • Building simple classifiers, sophisticated RAG pipelines, and agent loops.
  • Extracting structured information from emails, support tickets, or other text.
  • Creating tool-using agents with ReAct and function tools.
  • Handling multimodal tasks that use images as signature fields.

Getting Started

  • Install DSPy with pip install dspy.
  • Follow the Getting Started documentation to build a first program and expand signatures.

Deployment & Requirements

  • Requires Python 3.10 or newer.

Before You Adopt

  • License: MIT. Review its terms before using, modifying, or distributing the project.
  • Some optimization capabilities are explicitly labeled experimental.

Comments

Sign in to leave a comment.

More like DSPy

Favicon of EmDash

EmDash

Free ListingStars: 13.8K

Open source Astro CMS for humans and agents

Application Frameworks

EmDash is an open source, full-stack TypeScript CMS built on Astro from Cloudflare. It provides a typed schema, polished admin, and MCP server, REST API, and CLI for humans and AI agents to manage content.

Favicon of GDevelop

GDevelop

Free ListingStars: 27.6K

Open-source no-code engine for 2D, 3D and multiplayer games

Application Frameworks

GDevelop is an open-source, no-code, cross-platform game engine for creating 2D, 3D, and multiplayer games for mobile, desktop, and the web. It uses an event-based system and modular behaviors.

Favicon of Void

Void

Free ListingStars: 0.3K

Build with Vite. Deploy with Void.

Application Frameworks

Void is a CLI, platform, and full-stack SDK for building and deploying full-stack Vite apps on Cloudflare Workers, with typed APIs, databases, storage, AI, and one-command deployment.