One-click install
npx skills add https://github.com/automatedigital/spark --skill dspy-automatedigital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/automatedigital/spark/tree/main/skills/mlops/research/dspy
Command: npx skills add https://github.com/automatedigital/spark --skill dspy-automatedigital

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 ad-hoc AI system building, enabling you to create reliable, maintainable AI pipelines that improve automatically over time.

Core Features & Use Cases

  • Declarative LM Programming: Define AI tasks with type-safe signatures instead of hand-writing prompts, making components portable and maintainable.
  • Automatic Prompt Optimization: Use data-driven teleprompters to systematically improve model performance without manual trial and error.
  • Modular AI Building Blocks: Pre-built modules for RAG systems, AI agents, classifiers, and multi-stage pipelines that can be composed for complex workflows.
  • Use Case: For example, build a customer support RAG system that retrieves relevant documentation and generates accurate responses, then optimize it with 50+ historical support ticket examples to reduce error rates by 30% without adjusting prompts manually.

Quick Start

Use the dspy skill to build a chain-of-thought question-answering module and optimize it with your existing FAQ dataset to improve answer accuracy for common user queries.

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 large language model workflows?

Automate prompt optimization by using data-driven teleprompters that systematically improve large language model performance without manual trial and error. You define AI tasks with type-safe signatures, and the framework automatically adjusts prompts to reduce error rates over time.

What is declarative LM programming and how does it handle multi-stage pipelines?

Declarative LM programming defines AI tasks using type-safe signatures instead of hand-writing prompts. It handles multi-stage pipelines by composing modular building blocks for RAG systems, AI agents, and classifiers, ensuring components remain portable and maintainable.

Can I build a RAG system for customer support without manual prompt engineering?

Yes, you can build a customer support RAG system that retrieves relevant documentation and generates accurate responses. By optimizing it with historical support ticket examples, the system improves automatically without adjusting prompts manually.

Does automatic prompt optimization work with existing datasets for text classifiers?

Automatic prompt optimization works with existing datasets by applying data-driven teleprompters. You optimize text classifiers and multi-stage pipelines using your historical data examples to systematically improve model accuracy and output validation.

What's the best way to maintain consistent structured output validation in AI agents?

Maintain consistent structured output validation by defining AI agents with type-safe signatures. This declarative approach replaces ad-hoc building with modular components, ensuring reliable and type-safe structured outputs across complex workflows.

When should I switch from manual prompt engineering to declarative AI system building?

Switch to declarative AI system building when manual prompt engineering becomes tedious and error-prone. If your complex AI workflows require reliable, maintainable pipelines that improve automatically over time, declarative LM programming provides the necessary modular composition.