dspy

Compile declarative language model calls into self-improving pipelines with automated prompt optimization.

9|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/Cyapstaye/Adame_ver.open --skill dspy-cyapstaye
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/Cyapstaye/Adame_ver.open/tree/main/skills/mlops/research/dspy
Command: npx skills add https://github.com/Cyapstaye/Adame_ver.open --skill dspy-cyapstaye

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dspy, openai, anthropic, and includes references (resource) components.

What problem does it solve?

This Skill addresses the fragility and manual labor of traditional prompt engineering by providing a framework to program language models declaratively and optimize them automatically using data-driven methods.

Core Features & Use Cases

  • Declarative Programming: Define AI tasks using signatures (inputs and outputs) rather than brittle prompt templates.
  • Automatic Optimization: Use built-in teleprompters to systematically improve prompt quality and model performance based on your specific training data.
  • Modular Pipelines: Build complex, maintainable AI systems like RAG, agents, or multi-stage classifiers that are portable across different language models.

Quick Start

Use the dspy skill to compile a question-answering module by providing a signature and a set of training examples to the optimizer.

Frequently Asked Questions about dspy

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

FAQPage Schema
What is automated prompt optimization for language models?▼

Automated prompt optimization uses data-driven teleprompters to systematically improve language model performance, replacing fragile manual prompt engineering with declarative signatures compiled into self-improving pipelines.

How do I build modular RAG pipelines with declarative programming?▼

Build modular RAG pipelines by defining AI tasks using declarative input and output signatures rather than brittle templates, enabling portable, maintainable systems compiled by automated optimizers.

Can I compile multi-stage reasoning workflows across different language models?▼

Compile multi-stage reasoning workflows across different language models by defining declarative signatures, ensuring model-agnostic pipeline portability and type-safe structured output without rewriting core logic.

Does dspy work with OpenAI and Anthropic models for AI agent development?▼

dspy works with OpenAI and Anthropic models for AI agent development, allowing you to compile declarative language model calls into self-improving pipelines that maintain portability across providers.

What is the best way to replace brittle prompt templates in complex AI systems?▼

Replace brittle prompt templates in complex AI systems by using declarative programming signatures, which compile into self-improving pipelines that automatically optimize prompt quality based on training data.

How do I use teleprompters to systematically improve prompt quality?▼

Use built-in teleprompters to systematically improve prompt quality by providing a declarative signature and a set of training examples to the optimizer, compiling data-driven self-improving pipelines.