-
内容大纲
生成式AI蕴藏着强大潜能,但在构建可靠应用或智能体之前,仍需解决其存在的一些不可忽视的局限性。值得庆幸的是,领域专家们已系统梳理出32个经过验证的设计模式,帮助你应对LLM(大语言模型)应用开发过程中可能遇到的幻觉现象、非确定性响应、知识截点等难题。
本书将研究成果与实战经验融汇成可落地的实践建议。每个模式描述一个问题,给出经过验证的解决方式,提供完整的代码示例,并分析设计取舍。
围绕LLM的局限性进行设计
确保生成的内容遵循特定的风格、语气或格式
平衡不同风险类型,同时最大限度地激发创造力
构建具备规划、自校正、行动及多智能体协作能力的智能体
组合各种模式,打造适用于多元场景的智能体应用 -
作者介绍
-
目录
Preface
1. Introduction
GenAI Design Patterns
Building on Foundational Models
Agentic AI
Fine-Grained Control
In-Context Learning
Post-Training
The Organization of the Rest of the Book
2. Controlling Content Style
Pattern 1: Logits Masking
Pattern 2: Grammar
Pattern 3: Style Transfer
Pattern 4: Reverse Neutralization
Pattern 5: Content Optimization
Summary
3. Adding Knowledge: Bass
Pattern 6: Basic RAG
Pattern 7: Semantic Indexing
Pattern 8: Indexing at Scale
Summary
4. Adding Knowledge: Syncopation
Pattern 9: Index-Aware Retrieval
Pattern 10: Node Postprocessing
Pattern 11: Trustworthy Generation
Pattern 12: Deep Search
Summary
5. Extending Model Capabilities
The Limits of LLM Reasoning
Pattern 13: Chain of Thought
Pattern 14: Tree of Thoughts (ToT)
Pattern 15: Adapter Tuning
Pattern 16: Evol-Instruct
Summary
6. Improving Reliability
Pattern 17: LLM-as-Judge
Pattern 18: Reflection
Pattern 19: Dependency Injection
Pattern 20: Prompt Optimization
Summary
7. Enabling Agents to Take Action
Pattern 21: Tool Calling
Pattern 22: Code Execution
Pattern 23: Multiagent Collaboration
Summary
8. Addressing Constraints
Pattern 24: Small Language Model
Pattern 25: Prompt Caching
Pattern 26: Inference Optimization
Pattern 27: Degradation Testing
Pattern 28: Long-Term Memory
Summary
9. Setting Safeguards
Pattern 29: Template Generation
Pattern 30: Assembled Reformat
Pattern 31: Self-Check
Pattern 32: Guardrails
Summary
10. Composable Agentic Workflows
Agentic Workflow
Summary
Index
同类热销排行榜
- C语言与程序设计教程(高等学校计算机类十二五规划教材)16
- 电机与拖动基础(教育部高等学校自动化专业教学指导分委员会规划工程应用型自动化专业系列教材)13.48
- 传感器与检测技术(第2版高职高专电子信息类系列教材)13.6
- ASP.NET项目开发实战(高职高专计算机项目任务驱动模式教材)15.2
- Access数据库实用教程(第2版十二五职业教育国家规划教材)14.72
- 信号与系统(第3版下普通高等教育九五国家级重点教材)15.08
- 电气控制与PLC(普通高等教育十二五电气信息类规划教材)17.2
- 数字电子技术基础(第2版)17.36
- VB程序设计及应用(第3版十二五职业教育国家规划教材)14.32
- Java Web从入门到精通(附光盘)/软件开发视频大讲堂27.92
推荐书目
-

孩子你慢慢来/人生三书 华人世界率性犀利的一枝笔,龙应台独家授权《孩子你慢慢来》20周年经典新版。她的《...
-

时间简史(插图版) 相对论、黑洞、弯曲空间……这些词给我们的感觉是艰深、晦涩、难以理解而且与我们的...
-

本质(精) 改革开放40年,恰如一部四部曲的年代大戏。技术突变、产品迭代、产业升级、资本对接...
[
