Skip to Content
图解大模型 : 生成式AI 原理与实战
book

图解大模型 : 生成式AI 原理与实战

by Jay Alammar, Maarten Grootendorst
May 2025
Intermediate to advanced
382 pages
10h 33m
Chinese
Posts & Telecom Press
Content preview from 图解大模型 : 生成式AI 原理与实战
高级文本生成技术与工具
185
7.4
 智能体
构建
LLM
系统
目前我们构建的系统均按照预设流程执行操作。
LLM
最具突破性的发展方向在于其自主决
策能力。这类能够自主规划行动及其序列的系统被称为智能体(
agent
),其核心在于利用
语言模型自主制定行动决策。
智能体系统整合了我们已掌握的各项技术(包括模型输入
/
输出、链式架构和记忆模块),
并通过两大核心组件实现功能扩展:
工具
tool
):赋予智能体完成自身无法独立处理的任务的能力。
智能体类型
agent type
):规划行动及工具使用策略的决策框架。
相较于传统链式架构,智能体展现出更强大的行为逻辑:可自主创建目标实现路径,具备
自我纠错能力,并能通过工具与现实世界进行交互。这些特性使得智能体能够完成超越单
LLM
能力边界的复杂任务。
例如,
LLM
在数学问题上的表现一直为人诟病,经常连简单的数学任务都无法正确解
13
。但当我们为其配备计算器工具时,它们的数学能力便得到显著提升。如图
7-14
所示,
智能体的核心原理在于不仅利用
LLM
理解用户查询,更赋予其自主选择调用工具的能力。
Let me use a calculator
to answer your question.
The answer is 12.2983
What is 47 / 12 × 3.14?
47 / 12 × 3.14 12.2983
正确答案
有工具
The answer is 7.34
What is 47 / 12 × 3.14?
错误答案
无工具
7-14:通过让
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

大模型应用开发极简入门 : 基于GPT-4 和ChatGPT(第2版)

大模型应用开发极简入门 : 基于GPT-4 和ChatGPT(第2版)

Olivier Caelen, Marie-Alice Blete
生成式人工智能可视化

生成式人工智能可视化

Priyanka Vergadia, Valliappa Lakshmanan

Publisher Resources

ISBN: 9787115670830