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エージェント構築、アプリケーション開発のベストプラクティス

6章信頼性の向上

基盤モデルは本質的に確率的である。つまり、乱数的もしくは確率的な挙動を示す。したがって、これらのモデルを用いて構築された生成AIアプリケーションは、一貫性のない出力、不正確な事実、ハルシネーションに悩まされる可能性がある。本章では、これらの課題を緩和するための4つのパターンを紹介する。

審判としてのLLM[パターン17]は、出力をLLMを用いて体系的に評価して品質を判定する。直接プロンプトで評価する場合と、MLもしくはファインチューニングされたモデルを用いて評価する場合がある。リフレクション[パターン18]は、モデルが自身の出力を批評し、生成されたコンテンツを反復的に改良する。依存性注入[パターン19]は、コンポーネントのモック化を可能にすることで、テスト容易性と頑健性を促進する。最後に、プロンプト最適化[パターン20]は、入力プロンプトを改良するための構造化された手法を提供する。これによって、多様な入力分布に対して出力の信頼性を最大化する。

これらのパターンを組み合わせることで、生成AIアプリケーションの信頼性を高めるフレームワークを構成する。評価、自己修正、不確実性の定量化、モジュラー設計、および入力の最適化の機構を統合し、信頼性の高いシステムを構築し、AIアプリケーションが生成した出力に対するユーザの信頼を高める。

6.1 パターン17:審判としてのLLM

審判としてのLLMパターンは、詳細で多次元的なフィードバックを得るための手法だ。このフィードバックを用いて、モデルを比較し、改善を確認し、さらなる開発の方針を定めることができる。審判としてのLLMは完全に自動化された評価基準による評価と、人間による評価との間にあり、有望である。生成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

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

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

Piethein Strengholt, 村上 列

Publisher Resources

ISBN: 9784814401635Publisher Website