dspy
Builds and optimizes language model programs with DSPy (Stanford NLP), using Signatures, modules (Predict, ChainOfThought, ReAct, ProgramOfThought) and optimizers (BootstrapFewShot, MIPRO, BootstrapFinetune). Use when replacing hand-written prompts with declarative signatures, when automatically tuning prompts against training data and a metric, when building multi-stage RAG pipelines or ReAct agents, when building classifiers or structured-output programs, or when saving and evaluating optimized LM programs across providers such as Anthropic, OpenAI, or Ollama. Not for quick prototypes or simple chains; use manual prompting or LangChain instead.
- Version
- 1.0.0
- License
- MIT
Pinned to revision df088027ff23, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/dspy/SKILL.md
- skills/dspy/references/common-patterns.md
- skills/dspy/references/examples.md
- skills/dspy/references/lm-provider-configuration.md
- skills/dspy/references/modules.md
- skills/dspy/references/optimizers.md
- skills/dspy/scripts/safe_arithmetic.py
Every link opens the file at its source, pinned to the revision this page describes.