dspy

Build complex AI systems with declarative language model programming.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/danmartinez78/echo-ghost-backup --skill dspy-danmartinez78
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/danmartinez78/echo-ghost-backup/tree/main/skills/mlops/research/dspy
Command: npx skills add https://github.com/danmartinez78/echo-ghost-backup --skill dspy-danmartinez78

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds complex AI systems by composing modular, declarative language-model programs that self-improve over time.

Core Features & Use Cases

  • Declarative LM programming for reliable, scalable AI systems
  • Modular pipelines with Signatures, Modules, and Optimizers
  • End-to-end workflows (RAG, agents, multi-step reasoning) with type safety
  • Use cases include building modular QA, retrieval-augmented systems, and agent-driven tasks
  • Works with multiple LM providers and optimization strategies

Quick Start

Create a simple QA pipeline by declaring a signature and a module, then run a test question.

Frequently Asked Questions about dspy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is declarative language model programming for AI pipelines?

Declarative language model programming builds complex AI systems by composing modular pipelines using signatures, modules, and optimizers that enforce structured outputs and self-improve over time.

How do I build a modular RAG system with type safety?

You can build a modular RAG system by declaring signatures and modules to construct end-to-end retrieval-augmented workflows, ensuring type safety and structured outputs across multiple LM providers.

Can I use declarative LM programming for multi-step agent tasks?

Yes, declarative LM programming supports agent-driven tasks and multi-step reasoning pipelines, allowing you to compose modular workflows that apply optimizers across various language model providers.

Does this approach work with multiple language model providers?

Yes, declarative LM programming works with multiple LM providers, allowing you to build and optimize scalable AI pipelines while maintaining modular architecture and structured outputs.

What is the best way to optimize multi-stage AI pipelines?

The best way to optimize multi-stage AI pipelines is using declarative optimizers that automatically improve modular language model programs, ensuring robust and maintainable AI tooling through self-improving workflows.