Skip to Content
生成AIデザインパターン ―AIエージェント構築、アプリケーション開発のベストプラクティス
book

生成AIデザインパターン ―AIエージェント構築、アプリケーション開発のベストプラクティス

by Valliappa Lakshmanan, Hannes Hapke, 中田 秀基
May 2026
Intermediate
520 pages
8h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from 生成AIデザインパターン ―AIエージェント構築、アプリケーション開発のベストプラクティス

5章モデルの機能を拡張する

LLMは膨大なデータを用いてパターンを認識することに優れている。次のトークンを統計的に予測することで、首尾一貫し、文脈に即したレスポンスを生成することができる。しかし、これは必ずしもLLMが基礎となる概念を純粋に理解しているということではない。基盤モデルの学習でカバーできていないタスクに関しては、実行できない場合もある。この章では、学習していないタスクを基盤モデルに教えるための4つのパターンについて説明する。

5.1 LLM推論の限界

基盤モデルは記号や単語をうまく操作できる。これは訓練データにある動作を汎化しているだけで、人間のように意味や論理的関係を理解しているわけではない。それでも多くのタスクを実行できるのは、基盤モデルが学習したタスクとそれらのタスクが類似しているからだ。

基盤モデルが苦手とするタスクを説明するのは難しい。そのようなタスクは、本書の一般的な読者には理解しにくいような、難解なタスクや業界特有のタスクだからだ。LLMの訓練データがうまく捉えられないタスクの例としては、投資信託の投資委員会向けのメモ作成や、社内調査の判断などがある。メモは社内の記録であり、調査もその企業固有のもので、公開情報ではないからだ。定義上、広く利用可能な情報源に記述されているタスクはすべてLLMでカバーされる。そこで、LLMの推論能力には限界があることを示すために、ここでは数学と推論の問題を用いる。ただし、本章のパターンは数学や推論の問題に対する解決方法ではなく、投資委員会のメモ作成や社内調査の判断といった問題に対する解決方法であることに注意してほしい。

5.1.1 既知の能力

多くの一般的な数学と推論の問題は、LLMの訓練データセットで十分にカバーされている。例えば、お好みの基盤モデルに次のように依頼してみよう。 ...

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

大規模データ管理 ―エンタープライズアーキテクチャのベストプラクティス

大規模データ管理 ―エンタープライズアーキテクチャのベストプラクティス

Piethein Strengholt, 村上 列

Publisher Resources

ISBN: 9784814401635Publisher Website