本文へスキップ

質問応答と検索拡張

まず根拠を検索し、それに基づいて答える

入力テキストテキスト

本ページの本文は英語で提供されています。タイトルと導入は日本語化されています。

この能力とは何か

Takes a question and returns an answer. It has two forms: closed-book, answering from parameters alone, and open-book, retrieving relevant passages from an external corpus first. Retrieval-augmented generation belongs to the latter, keeping knowledge in an updatable external store and usually attaching citations. It differs from free generation by having an explicit question and a verifiable target answer.

技術的にどう実現するか

A RAG pipeline chunks documents into vectors in an index, encodes the question the same way and takes nearest neighbours, then pastes the retrieved passages with the question into a prompt so the model can answer with citations. Refinements include hybrid dense-plus-sparse retrieval, query rewriting before retrieval, and a reranker to pick the best passages. Closed-book answering relies purely on knowledge compressed during pre-training.

代表的な製品

14

Perplexity AI

Perplexity

検索しながら答え、どの答えにも出典が付く

3能力
アプリ フリーミアム
テキストテキスト
2022

Google DeepMind

NotebookLM

与えた資料だけを根拠に答え、出典を逐一示す

3能力
アプリ フリーミアム
テキスト表音声テキスト音声
2023

OpenAI

ChatGPT

大規模言語モデルを誰もが使える対話画面にした

4能力
アプリ フリーミアム
テキスト画像音声テキスト画像音声
2022

OpenAI

GPT-4o

ネイティブにマルチモーダルな汎用モデル。テキスト・画像・音声をひとつの入口で扱う

4能力
モデル クローズド
テキスト画像音声テキスト音声
2024

Google DeepMind

Gemini

検索・オフィス・マルチモーダルモデルを一つの対話入口に集約

4能力
アプリ フリーミアム
テキスト画像音声テキスト画像音声
2024

Cohere

Command R

検索拡張とツール呼び出しのために設計された商用モデル

4能力
モデル オープンウェイト
テキストテキスト
2024

AI21 Labs

Jamba

状態空間モデルと Transformer を混合したオープンウェイトモデル

4能力
モデル オープンウェイト
テキストテキスト
2024

Moonshot AI

Kimi

長い文脈の処理を得意とする中国語の対話アシスタント

3能力
モデル クローズド
テキストテキスト
2023

Tencent (Hunyuan)

Hunyuan

開放ウェイト版を含むテンセントの汎用モデル群

4能力
モデル オープンウェイト
テキスト画像テキスト
2023

Microsoft

Microsoft Copilot

対話型 AI を OS とオフィスソフトに組み込む

4能力
アプリ フリーミアム
テキスト画像音声テキスト画像
2023

ByteDance (Seed)

Doubao

バイトダンスの汎用対話モデルとアプリ

4能力
モデル クローズド
テキスト画像テキスト
2023

LangChain

LangChain

モデル・ツール・検索をつなぐ

3能力
ツール オープンソース
2022

Baidu

ERNIE

知識増強の事前学習から始まった中国語モデル、その初期の代表的版

3能力
モデル クローズド
テキストテキスト
2019

Pinecone

Pinecone

マネージドなベクトルDBと類似検索

2能力
インフラ クローズド
2019

関連する組織

代表的な用途

  • Enterprise knowledge bases and internal Q&A
  • Web-search assistants with citations
  • Document and contract interrogation
  • Support and technical self-service

どう評価するか

Exact Match
Share of answers identical to the reference
Answer F1
Token overlap with the reference, allowing partial credit
Retrieval hit rate and citation accuracy
Whether evidence was retrieved and citations actually support the claim

限界と難しさ

  • When the right passage is not retrieved, the model still answers confidently — hallucination in disguise
  • Multi-hop questions needing several documents break, answering only one link
  • Key evidence in the middle of a long context is the most likely to be ignored

背景にある概念

AI エンジニアリング・安全性・倫理

検索拡張生成初級

知識をパラメータに詰め込むより、外に置いて必要なときに引く —— 持ち込み可の試験のように

4関連
図解 2 · データ 1

自然言語処理と大規模言語モデル

アテンション機構中級

各位置が他のすべての位置を直接「見て」、関連度に応じて注意を動的に配分する

4関連
図解 1 · データ 1