Skip to Content
基于 DSPy 的上下文工程 (Chinese Edition)
book

基于 DSPy 的上下文工程 (Chinese Edition)

by Mike Taylor
October 2026
346 pages
5h 1m
Chinese
O'Reilly Media, Inc.

Overview

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

AI 代理需要在恰当的时机获得恰当的上下文信息,才能发挥良好作用。输入过多会增加成本并降低准确性,而输入过少则会导致系统不稳定并产生“幻觉”。《DSPy 下的上下文工程》提出了一种实用且以评估为导向的方法,用于设计在扩展过程中仍能保持可靠、可预测且易于维护的 AI 系统。

AI工程师兼教育家迈克·泰勒(Mike Taylor)以清晰易懂的风格讲解了DSPy,展示了其模块化结构、可移植程序和内置优化器如何帮助团队摆脱凭空猜测的困境。 通过真实案例和分步指导,您将了解 DSPy 的签名、模块、数据集和指标如何协同工作,以解决随着模型变化和工作负载扩展而不断演变的上下文工程问题。

本书为人工智能工程师、数据科学家、机器学习从业者以及软件开发人员提供支持,帮助他们构建能够稳定运行于生产环境的人工智能代理、检索增强生成(RAG)系统以及多步骤推理工作流。

  • 理解上下文工程背后的核心理念及其重要性
  • 利用 DSPy 可维护、可重用的组件构建 LLM 管道
  • 应用 GEPA 和 MIPROv2 等基于评估的优化器,实现可量化的性能提升
  • 利用清晰的指标创建可重现的 RAG 和智能体工作流
  • 开发能够在不同服务提供商、模型更新及现实世界约束条件下保持稳健的AI系统
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian
Are You an Authentic Leader or an Authentic Jerk?

Are You an Authentic Leader or an Authentic Jerk?

Hannes Leroy, Michael A. Daniels, Kristin L. Cullen-Lester, Alexandra Gerbasi

Publisher Resources

ISBN: 0642572474331