Skip to Content
直感 LLM ―ハンズオンで動かして学ぶ大規模言語モデル入門
book

直感 LLM ―ハンズオンで動かして学ぶ大規模言語モデル入門

by Jay Alammar, Maarten Grootendorst, 中山 光樹
June 2025
Intermediate to advanced
424 pages
7h 8m
Japanese
O'Reilly Japan, Inc.
Content preview from 直感 LLM ―ハンズオンで動かして学ぶ大規模言語モデル入門

8章セマンティック検索とRAG

検索エンジンは、産業界で最初に広く使われた言語モデルの応用例の1つです。2018年に発表された有名な論文「BERT: Pre-training of deep bidirectional transformers for language understanding」(https://oreil.ly/5NRQi)から数か月後、Googleはこの技術を使ってGoogle検索を強化したと発表し、「検索史上最大の飛躍の1つ」(https://oreil.ly/Bbnrd)だと述べています†1。一方、MicrosoftのBingも「今年の4月から、大規模なTransformerモデルを用いて、過去1年間で最大の品質向上をBingのユーザーに提供した」(https://oreil.ly/Tpylo)と発表しています。

[†1] 訳注:リンク先では、BERTを使ってクエリの意図をより深く理解し、ユーザーにより的確な検索結果を提供できるようになった例が挙げられている。Bingの例も同様に、ユーザーの意図を理解し、検索結果を改善した例に触れている。

言語モデルの産業界での成功は、これらのモデルが持つ高い能力と実用性を示しています。言語モデルを活用することで、地球上の何十億もの人々が信頼している、成熟し、よく整備されたシステムを劇的に改善できます。たとえば、検索エンジンにおいて言語モデルを活用することで、単なるキーワードの一致を超えたセマンティック検索が可能になります。セマンティック検索は、キーワードの一致だけでなく、検索クエリの背後にある文脈や意図を理解して検索を行う技術です。

一方で、生成型の言語モデルの普及により、多くのユーザーがこれらのモデルに対して事実に基づいた回答を期待するようになりました。しかし、これらのモデルは言語的には流暢に回答できるものの、誤った情報や古い情報を回答することがあります。この問題は「幻覚(ハルシネーション)」として知られています。幻覚を軽減するために、関連情報を検索して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

初めてのTypeScript ―型安全なJavaScriptでWeb開発を加速する

初めてのTypeScript ―型安全なJavaScriptでWeb開発を加速する

Josh Goldberg, 今村 謙士, 原 隆文
生成AIのプロンプトエンジニアリング ―信頼できる生成AIの出力を得るための普遍的な入力の原則

生成AIのプロンプトエンジニアリング ―信頼できる生成AIの出力を得るための普遍的な入力の原則

James Phoenix, Mike Taylor, 田村 広平, 大野 真一朗, 砂長谷 健, 土井 健, 大貫 峻平, 石山 将成
実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

Sowmya Vajjala, Bodhisattwa Majumder, Anuj Gupta, Harshit Surana, 中山 光樹

Publisher Resources

ISBN: 9784814401154Publisher Website