dspy

Develop language model applications with declarative task definitions and automatic prompt optimization.

3|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/DarkArty07/Aether-Agents --skill dspy-darkarty07
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/DarkArty07/Aether-Agents/tree/main/home/skills/mlops/research/dspy
Command: npx skills add https://github.com/DarkArty07/Aether-Agents --skill dspy-darkarty07

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone work of manual prompt engineering and hardcoded AI workflows, enabling systematic, maintainable development of complex language model applications that perform consistently across different tasks and models.

Core Features & Use Cases

  • Declarative Task Definition: Define AI tasks with structured signatures instead of writing raw prompts, making pipelines modular, portable, and easy to debug.
  • Automatic Prompt Optimization: Use data-driven optimizers like BootstrapFewShot and MIPRO to improve model performance using labeled training data, no manual tuning required.
  • RAG and Agent Systems: Build reliable retrieval-augmented generation pipelines and tool-using agents with built-in modules like ChainOfThought and ReAct, plus production-ready patterns for error handling and monitoring.
  • Use Case: For a customer support team, use this Skill to build a RAG system that retrieves relevant documentation and generates accurate responses, then optimize it with 100+ labeled support tickets to improve answer accuracy by 30% or more.

Quick Start

Use the dspy skill to build a question-answering system that automatically optimizes its prompts using your labeled training data.

Frequently Asked Questions about dspy

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

FAQPage Schema
How do I automate prompt optimization for language model applications?▼

Automate prompt optimization by defining structured task signatures and applying data-driven optimizers like BootstrapFewShot or MIPRO. This replaces manual prompt tuning with systematic, data-driven optimization using labeled training data to improve model performance.

What is the best way to build retrieval-augmented generation pipelines without manual prompt engineering?▼

Build retrieval-augmented generation pipelines by defining declarative, modular tasks using built-in modules like ChainOfThought. This approach eliminates manual prompt engineering by structuring pipelines for reliable documentation retrieval and response generation.

Does declarative LM programming require hardcoded prompts for tool-using agents?▼

Declarative LM programming does not require hardcoded prompts for tool-using agents. You can build reliable agents using built-in modules like ReAct, applying automatic optimization and production-ready patterns for error handling instead of manual tuning.

Can I validate structured output from language models using Pydantic in DSPy?▼

You can validate structured output using Pydantic within declarative LM programming. This ensures consistent data extraction and type validation across multi-stage data processing pipelines without relying on fragile manual prompt adjustments.

When should I replace manual prompt engineering with automatic optimization?▼

Replace manual prompt engineering when developing complex, multi-stage language model pipelines that require consistent performance. Automatic optimization using teleprompters helps maintain and systematically improve tasks like text classification and retrieval-augmented generation.