Skip to Content
LLMのプロンプトエンジニアリング ―GitHub Copilotを生んだ開発者が教える生成AIアプリケーション開発
book

LLMのプロンプトエンジニアリング ―GitHub Copilotを生んだ開発者が教える生成AIアプリケーション開発

by John Berryman, Albert Ziegler, 服部 佑樹, 佐藤 直生
May 2025
Intermediate to advanced
276 pages
4h
Japanese
O'Reilly Japan, Inc.
Content preview from LLMのプロンプトエンジニアリング ―GitHub Copilotを生んだ開発者が教える生成AIアプリケーション開発

8章会話型エージェント

「3章 チャット形式への移行」では、テキスト補完モデルからチャットモデルへの移行について説明しました。チャットモデル自体は、トレーニングで扱われた情報と、ユーザーがその場で伝えた情報のみを認識します。チャットモデルは、外部の世界にアクセスしてトレーニングデータに含まれていなかった情報を学んだり、ユーザーに代わって外部のアクションを実行したりすることはできません。

LLMコミュニティは、会話型エージェントを通じて、これらの制限を克服するために大きな前進を遂げつつあります。「エージェント」とは、エンティティが自主的、自律的な方法でタスクを完了し、目標を達成する能力です。本章で説明する会話型エージェントは、チャット(ユーザー、アシスタント間でやり取りされる会話)と同様の体験を提供しますが、アシスタントが実世界に手を差し伸べ、新しい情報を学習し、実世界の資産と対話する機能が追加されています。

本章では、LLMベースの会話型エージェントを構築するための最先端のアプローチを、いくつか紹介します。モデルがツールを使って外部世界に到達する方法、問題空間を通じてより適切に推論するようにモデルを条件付ける方法、長く複雑なやり取りを促進するために最適なコンテキストを収集する方法を探ります。本章の終わりまでに、あなたは、世界に出てあなたに代わってガイド付きタスクを実行することができる、独自の会話型エージェントを構築することができるようになるでしょう。

8.1 ツールの使用

言語モデルは単独で動作するため、モデルが達成できることは限られています。チャットアシスタントとの会話が魅力的なのは、ある意味でそれが世界のデジタル時代の流れを体現しているからです。幅広いトピックから何でも学ぶことができ、モデルは多様な考え方を引き出し、ブレインストーミングに役立ちます。もし、ハルシネーションを気にしないのであれば、モデルは素晴らしい家庭教師です。ただ、モデルにできないことの1つとして、「隠された」知識、つまりトレーニング中にモデルが利用できなかった情報にアクセスすることが挙げられます。 ...

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

実用 Git 第3版

実用 Git 第3版

Prem Kumar Ponuthorai, Jon Loeliger, 萬谷 暢崇, 長尾 高弘
入門 Kubernetes

入門 Kubernetes

Kelsey Hightower, Brendan Burns, Joe Beda, 松浦 隼人

Publisher Resources

ISBN: 9784814401130Publisher Website