prompt-engineering-dspy
使用声明式编程构建复杂 AI 系统,自动优化提示,用 DSPy 创建模块化 RAG 系统和智能体——DSPy 是 Stanford NLP 用于系统性 LM 编程的框架
机器翻译查看英文原文
Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming
适用对象:学习与科研。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- DSPy: Declarative Language Model Programming
- When to Use This Skill
- Installation
- Quick Start
- Basic Example: Question Answering
- Chain of Thought Reasoning
- Core Concepts
- 1. Signatures
Use DSPy when you need to: Build complex AI systems with multiple components and workflows Program LMs declaratively instead of manual prompt engineering Optimize prompts automatically using data-driven methods Create modular AI pipelines that are maintainable and portable Improve model outputs systematically with optimizers Build RAG systems, agents, or classifiers with better reliability GitHub Stars: 22,000+ | Created By: Stanford NLP Signatures define the structure of your AI task (inputs → outputs): When to use each: Inline: Quick prototyping, simple tasks Class: Complex tasks, type hints, better documentation Modules are reusable components that transform inputs to outputs: Basic prediction module: Generates reasoning steps before answering: Agent-like reasoning with tools: Generates and executes code for reasoning: Optimizers improve your modules automatically using training data: Learns from examples: Iteratively improves prompts: Creates datasets for model fine-tuning: | Feature | Manual Prompting | LangChain | DSPy | |---------|-----------------|-----------|------| | Prompt Engineering | Manual | Manual | Automatic | | Optimization | Trial & error | None | Data-driven | |
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/ai-research/prompt-engineering-dspy/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:43.362Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。