Skip to Content
実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き
book

実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

by Suhas Pai, 金本 勝吉, オライリー・ジャパン編集部
September 2025
Beginner to intermediate
400 pages
6h 4m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

13章デザインパターンとシステムアーキテクチャ

 本書ではこれまで、LLMをさまざまなタスクに適応させるための技術、たとえばコンテキスト内学習、ファインチューニング、RAG、外部ツールの利用などを紹介してきました。これらの技術は、ユースケースの性能要件を満たすために役立ちますが、LLMを用いたアプリケーションを本番環境にデプロイするには、コスト、レイテンシ、信頼性など、他にも多くの要件を満たす必要があります。これらの目標を達成するためには、多種多様なソフトウェア基盤や、それぞれに特化したコンポーネントが必要となります。

 この章では、実際に役立つアプリケーションを構成するような、本番レベルのLLMを用いたシステムを構築するための手法について説明します。まずは、複数のLLMを活用してコストと性能のバランスを取る、マルチLLMアーキテクチャ(Multi-LLM Architecture)について掘り下げます。次に、DSPyのようなソフトウェアフレームワークを活用し、LLMアプリケーション開発を従来のソフトウェア開発におけるプログラミングパラダイムと統合する方法についても紹介します。

 アプリケーションを構築するうえで、LLMを単なる独立したコンポーネントとして扱うだけでは、本番運用に適したシステムにはなりません。信頼性が高く、高速で、かつコスト効率に優れたLLMを用いたシステムを構築するには、複数のソフトウェアとモデルから構成されるシステムとしてLLMを扱う必要があります。これらのコンポーネントの組み合わせ方や接続方法は、システムアーキテクチャ(System Architecture)と呼ばれます。

 まずは、複数のLLMを組み合わせてタスクを解くマルチ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

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

Michael Albada, 鈴木 駿, 高山 洪銘, 山下 正浩
実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

Chris Sanders, 髙橋 基信, 宮本 久仁男, 岡 真由美
直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

Omar Sanseviero, Pedro Cuenca, Apolinário Passos, Jonathan Whitaker, 江川 崇

Publisher Resources

ISBN: 9784814401314Publisher Website